]> matita.cs.unibo.it Git - fireball-separation.git/blobdiff - ocaml/Makefile
New interesting example
[fireball-separation.git] / ocaml / Makefile
index 3310c6e6e827a3511fb647d35743c195e6cf5ac6..5ce48854de212e6b571afaf74dbb37adaa9c97f6 100644 (file)
@@ -1,23 +1,23 @@
 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 problems.cmx
 
-all: a.out test.out test34.out
+all: lambda4.out lambda4_test.out simple.out simple_test.out
 
-a.out: $(UTILS) lambda3.cmx lambda4.cmx problems.cmx
-       $(OCAMLC) -o a.out $(LIB) $^
+run: lambda4_test.out
+       bash run
 
-test.out: $(UTILS) lambda3.cmx test1.ml
-       $(OCAMLC) -o test.out $(LIB) $^
+lambda4.out: $(UTILS) lambda4.cmx
+       $(OCAMLC) -o lambda4.out $(LIB) $^
 
-test34.out: $(UTILS) lambda3.cmx lambda4.cmx test.ml
-       $(OCAMLC) -o test34.out $(LIB) $^
+lambda4_test.out: $(UTILS) lambda4.cmx test.ml
+       $(OCAMLC) -o lambda4_test.out $(LIB) $^
 
-andrea.out: $(UTILS) a.out andrea6.ml
-       $(OCAMLC) -o andrea.out $(LIB) $(UTILS) andrea6.ml
+simple.out: $(UTILS) simple.cmx
+       $(OCAMLC) -o simple.out $(LIB) $^
 
-#test2.out: $(UTILS) lambda3.ml test2.ml andrea
-#      ocamlc -o test2.out $(LIB) $(UTILS) lambda3.ml andrea4.ml test2.ml
+simple_test.out: $(UTILS) simple.cmx simple_test.ml
+       $(OCAMLC) -o simple_test.out $(LIB) $^
 
 %.cmi: %.mli
        $(OCAMLC) -c $<
@@ -26,11 +26,11 @@ andrea.out: $(UTILS) a.out andrea6.ml
        $(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