BIN_DIR = /usr/local/bin TEST_REQUIRES = \ helm-registry \ helm-tactics \ helm-cic_transformations \ helm-cic_textual_parser2 REQUIRES = $(TEST_REQUIRES) OCAMLOPTIONS = \ -package "$(REQUIRES)" -predicates "$(PREDICATES)" #-pp camlp4o -thread OCAMLFIND = ocamlfind OCAMLDEBUGOPTIONS = -g OCAMLC = $(OCAMLFIND) ocamlc $(OCAMLDEBUGOPTIONS) $(OCAMLOPTIONS) OCAMLOPT = $(OCAMLFIND) ocamlopt $(OCAMLOPTIONS) OCAMLDEP = $(OCAMLFIND) ocamldep #-pp camlp4o OCAMLDEBUG = wowcamldebug LIBRARIES = $(shell $(OCAMLFIND) query -recursive -predicates "byte $(PREDICATES)" -format "%d/%a" $(REQUIRES)) LIBRARIES_OPT = $(shell $(OCAMLFIND) query -recursive -predicates "native $(PREDICATES)" -format "%d/%a" $(REQUIRES)) TEST_LIBRARIES = $(shell $(OCAMLFIND) query -recursive -predicates "byte $(PREDICATES)" -format "%d/%a" $(TEST_REQUIRES)) TEST_LIBRARIES_OPT = $(shell $(OCAMLFIND) query -recursive -predicates "native $(PREDICATES)" -format "%d/%a" $(TEST_REQUIRES)) all: saturation opt: saturation.opt INTERFACE_FILES = \ utils.mli \ inference.mli DEPOBJS = \ $(INTERFACE_FILES) $(INTERFACE_FILES:%.mli=%.ml) \ path_indexing.ml \ indexing.ml \ saturation.ml \ test_path_indexing.ml TOPLEVELOBJS = $(INTERFACE_FILES:%.mli=%.cmo) \ path_indexing.cmo \ indexing.cmo \ saturation.cmo TESTOBJS = $(INTERFACE_FILES:%.mli=%.cmo) \ path_indexing.cmo \ test_path_indexing.cmo # REGTESTOBJS = $(TESTOBJS) regtest.cmo # TESTLIBOBJS = $(TESTOBJS) testlibrary.cmo $(INTERFACE_FILES:%.mli=%.cmo): $(LIBRARIES) $(INTERFACE_FILES:%.mli=%.cmx): $(LIBRARIES_OPT) depend: $(OCAMLDEP) $(DEPOBJS) > .depend saturation: $(TOPLEVELOBJS) $(LIBRARIES) $(OCAMLC) -thread -linkpkg -o $@ $(TOPLEVELOBJS) saturation.opt: $(TOPLEVELOBJS:.cmo=.cmx) $(LIBRARIES_OPT) $(OCAMLOPT) -thread -linkpkg -o $@ $(TOPLEVELOBJS:.cmo=.cmx) test_path_indexing: $(TESTOBJS) $(TEST_LIBRARIES) $(OCAMLC) -linkpkg -o $@ $(TESTOBJS) .SUFFIXES: .ml .mli .cmo .cmi .cmx .ml.cmo: $(OCAMLC) -c $< .mli.cmi: $(OCAMLC) -c $< .ml.cmx: $(OCAMLOPT) -c $< $(TOPLEVELOBJS): $(LIBRARIES) $(TOPLEVELOBJS:.cmo=.cmx)): $(LIBRARIES_OPT) clean: rm -f *.cm[iox] *.o saturation{,.opt} regtest{,.opt} testlibrary{,.opt} ifneq ($(MAKECMDGOALS), depend) include .depend endif