-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (36 loc) · 1.09 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
functional:
rm -rf _build
rm -f functional imperative lacaml
mkdir _build
cp src/interface/* _build
cp src/ops/float.ml _build
cp src/functional/matrix_math.ml _build
cp src/functional/float_tests.ml _build
cd _build && ocamlfind ocamlopt unix.cmxa -S -inline 20 -o functional ops.mli matrix.mli matrix_math.ml float.ml float_tests.ml
cp _build/functional .
imperative:
rm -rf _build
rm -f functional imperative lacaml
mkdir _build
cp src/interface/* _build
cp src/ops/float.ml _build
cp src/imperative/matrix_math.ml _build
cp src/imperative/float_tests.ml _build
cd _build && ocamlfind ocamlopt unix.cmxa -S -unsafe -inline 20 -o imperative ops.mli matrix.mli matrix_math.ml float.ml float_tests.ml
cp _build/imperative .
lacaml:
rm -rf _build
rm -f functional imperative lacaml
mkdir _build
cp src/lacaml/* _build
cd _build && ocamlfind ocamlopt -linkpkg -package lacaml -S -o lacaml mult_mv.ml
cp _build/lacaml .
c:
rm -rf _build
rm -f functional imperative lacaml
mkdir _build
cp src/c/* _build
cd _build && gcc -c -S *.c
clean:
rm -rf _build
rm -f functional imperative lacaml