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
5 all: lambda4.out lambda4_test.out simple.out simple_test.out
10 lambda4.out: $(UTILS) lambda4.cmx
11 $(OCAMLC) -o lambda4.out $(LIB) $^
13 lambda4_test.out: $(UTILS) lambda4.cmx test.ml
14 $(OCAMLC) -o lambda4_test.out $(LIB) $^
16 simple.out: $(UTILS) simple.cmx
17 $(OCAMLC) -o simple.out $(LIB) $^
19 simple_test.out: $(UTILS) simple.cmx simple_test.ml
20 $(OCAMLC) -o simple_test.out $(LIB) $^
29 rm -f *.cm* *.out *.o .depend log
32 ocamldep *.ml *.mli > .depend