]> matita.cs.unibo.it Git - fireball-separation.git/blob - ocaml/Makefile
b76514c9ca2351a7205d2f4145c355dcb3ea5653
[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: simple.out simple_test.out
6
7 simple.out: $(UTILS) simple.cmx
8         $(OCAMLC) -o simple.out $(LIB) $^
9
10 simple_test.out: $(UTILS) simple.cmx simple_test.ml
11         $(OCAMLC) -o simple_test.out $(LIB) $^
12
13 %.cmi: %.mli
14         $(OCAMLC) -c $<
15
16 %.cmx: %.ml %.cmi
17         $(OCAMLC) -c $<
18
19 clean:
20         rm -f *.cm* *.out *.o .depend log
21
22 .depend: *.ml *.mli
23         ocamldep *.ml *.mli > .depend
24
25 include .depend
26
27 .PHONY: clean all run