X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=ocaml%2FMakefile;fp=ocaml%2FMakefile;h=3310c6e6e827a3511fb647d35743c195e6cf5ac6;hb=e4aa4a66dd0a4946607245a0f43eab803f2770c4;hp=0000000000000000000000000000000000000000;hpb=224041e8fb94c0e8a1d3616e6dd91ec6a21cf49b;p=fireball-separation.git diff --git a/ocaml/Makefile b/ocaml/Makefile new file mode 100644 index 0000000..3310c6e --- /dev/null +++ b/ocaml/Makefile @@ -0,0 +1,36 @@ +OCAMLC = ocamlopt -g -rectypes +LIB = unix.cmxa str.cmxa +UTILS = parser.cmx console.cmx listx.cmx util.cmx pure.cmx num.cmx + +all: a.out test.out test34.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) $^ + +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 + +#test2.out: $(UTILS) lambda3.ml test2.ml andrea +# ocamlc -o test2.out $(LIB) $(UTILS) lambda3.ml andrea4.ml test2.ml + +%.cmi: %.mli + $(OCAMLC) -c $< + +%.cmx: %.ml %.cmi + $(OCAMLC) -c $< + +clean: + rm -f *.cm* *.out .depend log + +.depend: *.ml *.mli + ocamldep *.ml *.mli > .depend + +include .depend + +.PHONY: clean all