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