]> matita.cs.unibo.it Git - fireball-separation.git/blob - ocaml/Makefile
Moved andrea's stuff to its branch
[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 test.out test34.out
6
7 a.out: $(UTILS) lambda3.cmx lambda4.cmx problems.cmx
8         $(OCAMLC) -o a.out $(LIB) $^
9
10 test.out: $(UTILS) lambda3.cmx test1.ml
11         $(OCAMLC) -o test.out $(LIB) $^
12
13 test34.out: $(UTILS) lambda3.cmx lambda4.cmx test.ml
14         $(OCAMLC) -o test34.out $(LIB) $^
15
16 %.cmi: %.mli
17         $(OCAMLC) -c $<
18
19 %.cmx: %.ml %.cmi
20         $(OCAMLC) -c $<
21
22 clean:
23         rm -f *.cm* *.out .depend log
24
25 .depend: *.ml *.mli
26         ocamldep *.ml *.mli > .depend
27
28 include .depend
29
30 .PHONY: clean all