]> matita.cs.unibo.it Git - fireball-separation.git/blob - ocaml/Makefile
Code clean-up
[fireball-separation.git] / ocaml / Makefile
1 OCAMLC = ocamlopt -g -rectypes
2 LIB = unix.cmxa str.cmxa
3 UTILS = util.cmx console.cmx listx.cmx pure.cmx num.cmx parser.cmx
4
5 all: a.out test4.out
6
7 run: test4.out
8         bash run
9
10 a.out: $(UTILS) lambda4.cmx problems.cmx
11         $(OCAMLC) -o a.out $(LIB) $^
12
13 test4.out: $(UTILS) lambda4.cmx test.ml
14         $(OCAMLC) -o test4.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 *.o .depend log
24
25 .depend: *.ml *.mli
26         ocamldep *.ml *.mli > .depend
27
28 include .depend
29
30 .PHONY: clean all run