OCAMLC = ocamlopt -g -rectypes LIB = unix.cmxa str.cmxa UTILS = parser.cmx console.cmx listx.cmx util.cmx pure.cmx num.cmx all: andrea.out andrea.out: $(UTILS) andrea8.ml $(OCAMLC) -o andrea.out $(LIB) $(UTILS) andrea8.ml %.cmi: %.mli $(OCAMLC) -c $< %.cmx: %.ml %.cmi $(OCAMLC) -c $< clean: rm -f *.cm* *.out *.o .depend log .depend: *.ml *.mli ocamldep *.ml *.mli > .depend include .depend .PHONY: clean all