X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=ocaml%2FMakefile;h=430f1596fa5f6c5c529f15c4a32c3350276913c9;hb=b67b37f44b44a1bfe844e765d9ea45d16734c32b;hp=3310c6e6e827a3511fb647d35743c195e6cf5ac6;hpb=e4aa4a66dd0a4946607245a0f43eab803f2770c4;p=fireball-separation.git diff --git a/ocaml/Makefile b/ocaml/Makefile index 3310c6e..430f159 100644 --- a/ocaml/Makefile +++ b/ocaml/Makefile @@ -1,23 +1,21 @@ 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 + # test.out -a.out: $(UTILS) lambda3.cmx lambda4.cmx problems.cmx - $(OCAMLC) -o a.out $(LIB) $^ - -test.out: $(UTILS) lambda3.cmx test1.ml - $(OCAMLC) -o test.out $(LIB) $^ +run: test4.out + bash run -test34.out: $(UTILS) lambda3.cmx lambda4.cmx test.ml - $(OCAMLC) -o test34.out $(LIB) $^ - -andrea.out: $(UTILS) a.out andrea6.ml - $(OCAMLC) -o andrea.out $(LIB) $(UTILS) andrea6.ml +a.out: $(UTILS) lambda4.cmx problems.cmx + $(OCAMLC) -o a.out $(LIB) $^ -#test2.out: $(UTILS) lambda3.ml test2.ml andrea -# ocamlc -o test2.out $(LIB) $(UTILS) lambda3.ml andrea4.ml test2.ml +# test.out: $(UTILS) lambda3.cmx test1.ml +# $(OCAMLC) -o test.out $(LIB) $^ +# +test4.out: $(UTILS) lambda4.cmx test.ml + $(OCAMLC) -o test4.out $(LIB) $^ %.cmi: %.mli $(OCAMLC) -c $< @@ -26,11 +24,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