OCAMLC = ocamlopt -g -rectypes
LIB = unix.cmxa str.cmxa
-UTILS = parser.cmx console.cmx listx.cmx util.cmx pure.cmx num.cmx
+UTILS = util.cmx console.cmx listx.cmx pure.cmx num.cmx parser.cmx
-all: a.out test.out test34.out
+all: a.out test4.out
-a.out: $(UTILS) lambda3.cmx lambda4.cmx problems.cmx
- $(OCAMLC) -o a.out $(LIB) $^
+run: test4.out
+ bash run
-test.out: $(UTILS) lambda3.cmx test1.ml
- $(OCAMLC) -o test.out $(LIB) $^
+a.out: $(UTILS) lambda4.cmx problems.cmx
+ $(OCAMLC) -o a.out $(LIB) $^
-test34.out: $(UTILS) lambda3.cmx lambda4.cmx test.ml
- $(OCAMLC) -o test34.out $(LIB) $^
+sat.out: $(UTILS) lambda4.cmx sat.ml
+ $(OCAMLC) -o sat.out $(LIB) $^
+#
+test4.out: $(UTILS) lambda4.cmx test.ml
+ $(OCAMLC) -o test4.out $(LIB) $^
%.cmi: %.mli
$(OCAMLC) -c $<
$(OCAMLC) -c $<
clean:
- rm -f *.cm* *.out .depend log
+ rm -f *.cm* *.out *.o .depend log
.depend: *.ml *.mli
ocamldep *.ml *.mli > .depend
include .depend
-.PHONY: clean all
+.PHONY: clean all run