OCAMLC = ocamlopt -g -rectypes LIB = unix.cmxa str.cmxa UTILS = util.cmx console.cmx listx.cmx pure.cmx num.cmx parser.cmx all: a.out test4.out run: test4.out bash run a.out: $(UTILS) lambda4.cmx problems.cmx $(OCAMLC) -o a.out $(LIB) $^ test4.out: $(UTILS) lambda4.cmx test.ml $(OCAMLC) -o test4.out $(LIB) $^ %.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 run