]> matita.cs.unibo.it Git - fireball-separation.git/blob - ocaml/Makefile
3310c6e6e827a3511fb647d35743c195e6cf5ac6
[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 andrea.out: $(UTILS) a.out andrea6.ml
17         $(OCAMLC) -o andrea.out $(LIB) $(UTILS) andrea6.ml
18
19 #test2.out: $(UTILS) lambda3.ml test2.ml andrea
20 #       ocamlc -o test2.out $(LIB) $(UTILS) lambda3.ml andrea4.ml test2.ml
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