1 OCAMLC = ocamlopt -g -rectypes
2 LIB = unix.cmxa str.cmxa
3 UTILS = parser.cmx console.cmx listx.cmx util.cmx pure.cmx num.cmx
5 all: a.out test.out test34.out
7 a.out: $(UTILS) lambda3.cmx lambda4.cmx problems.cmx
8 $(OCAMLC) -o a.out $(LIB) $^
10 test.out: $(UTILS) lambda3.cmx test1.ml
11 $(OCAMLC) -o test.out $(LIB) $^
13 test34.out: $(UTILS) lambda3.cmx lambda4.cmx test.ml
14 $(OCAMLC) -o test34.out $(LIB) $^
16 andrea.out: $(UTILS) a.out andrea7.ml
17 $(OCAMLC) -o andrea.out $(LIB) $(UTILS) andrea7.ml
19 #test2.out: $(UTILS) lambda3.ml test2.ml andrea
20 # ocamlc -o test2.out $(LIB) $(UTILS) lambda3.ml andrea4.ml test2.ml
29 rm -f *.cm* *.out .depend log
32 ocamldep *.ml *.mli > .depend