]> matita.cs.unibo.it Git - fireball-separation.git/blob - ocaml/Makefile
701d50ac0dfd5a9cc6c5912bc729dc6cce7f4a39
[fireball-separation.git] / ocaml / Makefile
1 OCAMLC = ocamlopt -g -rectypes
2 LIB = unix.cmxa str.cmxa
3 UTILS = util.cmx console.cmx parser.cmx
4
5 all: andrea.out
6
7 andrea.out: $(UTILS) andrea.ml
8         $(OCAMLC) -o andrea.out $(LIB) $(UTILS) andrea.ml
9
10 %.cmi: %.mli
11         $(OCAMLC) -c $<
12
13 %.cmx: %.ml %.cmi
14         $(OCAMLC) -c $<
15
16 clean:
17         rm -f *.cm* *.out *.o .depend log
18
19 .depend: *.ml *.mli
20         ocamldep *.ml *.mli > .depend
21
22 include .depend
23
24 .PHONY: clean all run