]> matita.cs.unibo.it Git - fireball-separation.git/blob - ocaml/Makefile
New interesting example
[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 problems.cmx
4
5 all: lambda4.out lambda4_test.out simple.out simple_test.out
6
7 run: lambda4_test.out
8         bash run
9
10 lambda4.out: $(UTILS) lambda4.cmx
11         $(OCAMLC) -o lambda4.out $(LIB) $^
12
13 lambda4_test.out: $(UTILS) lambda4.cmx test.ml
14         $(OCAMLC) -o lambda4_test.out $(LIB) $^
15
16 simple.out: $(UTILS) simple.cmx
17         $(OCAMLC) -o simple.out $(LIB) $^
18
19 simple_test.out: $(UTILS) simple.cmx simple_test.ml
20         $(OCAMLC) -o simple_test.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 *.o .depend log
30
31 .depend: *.ml *.mli
32         ocamldep *.ml *.mli > .depend
33
34 include .depend
35
36 .PHONY: clean all run