]> matita.cs.unibo.it Git - fireball-separation.git/blob - ocaml/Makefile
Remove FORCE option in Makefile
[fireball-separation.git] / ocaml / Makefile
1 OCAMLC = ocamlopt -g -rectypes
2 LIB = unix.cmxa str.cmxa
3 UTILS = parser.cmx console.cmx listx.cmx util.cmx pure.cmx num.cmx
4
5 all: a.out test4.out
6         # test.out
7
8 run: test4.out
9         bash run
10
11 a.out: $(UTILS) lambda4.cmx problems.cmx
12         $(OCAMLC) -o a.out $(LIB) $^
13
14 # test.out: $(UTILS) lambda3.cmx test1.ml
15 #       $(OCAMLC) -o test.out $(LIB) $^
16 #
17 test4.out: $(UTILS) lambda4.cmx test.ml
18         $(OCAMLC) -o test4.out $(LIB) $^
19
20 %.cmi: %.mli
21         $(OCAMLC) -c $<
22
23 %.cmx: %.ml %.cmi
24         $(OCAMLC) -c $<
25
26 clean:
27         rm -f *.cm* *.out *.o .depend log
28
29 .depend: *.ml *.mli
30         ocamldep *.ml *.mli > .depend
31
32 include .depend
33
34 .PHONY: clean all run