]> matita.cs.unibo.it Git - fireball-separation.git/blob - ocaml/Makefile
46242b1546576e0a85503491d3e874b5f42c3ba1
[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: FORCE test4.out
9         bash run
10
11 FORCE:
12
13 a.out: $(UTILS) lambda4.cmx problems.cmx
14         $(OCAMLC) -o a.out $(LIB) $^
15
16 # test.out: $(UTILS) lambda3.cmx test1.ml
17 #       $(OCAMLC) -o test.out $(LIB) $^
18 #
19 test4.out: $(UTILS) lambda4.cmx test.ml
20         $(OCAMLC) -o test4.out $(LIB) $^
21
22 %.cmi: %.mli
23         $(OCAMLC) -c $<
24
25 %.cmx: %.ml %.cmi
26         $(OCAMLC) -c $<
27
28 clean:
29         rm -f *.cm* *.out .depend log
30
31 .depend: *.ml *.mli
32         ocamldep *.ml *.mli > .depend
33
34 include .depend
35
36 .PHONY: clean all run