X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;ds=sidebyside;f=helm%2Focaml%2Fparamodulation%2FMakefile;h=ff724fa6c900fb048e92083ae0ac0f1871450e5e;hb=afa05d30f20de12e031c3e5c3e5c33c19c42a7d8;hp=9d30e7020d39fb9f1da56ec8dfbf1e6f6110b3d6;hpb=c9d7e6a946744890def5b5471c93b4dbd78c4ac9;p=helm.git diff --git a/helm/ocaml/paramodulation/Makefile b/helm/ocaml/paramodulation/Makefile index 9d30e7020..ff724fa6c 100644 --- a/helm/ocaml/paramodulation/Makefile +++ b/helm/ocaml/paramodulation/Makefile @@ -1,86 +1,38 @@ -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 +PACKAGE = paramodulation INTERFACE_FILES = \ utils.mli \ inference.mli -DEPOBJS = \ - $(INTERFACE_FILES) $(INTERFACE_FILES:%.mli=%.ml) \ +IMPLEMENTATION_FILES = $(INTERFACE_FILES:%.mli=%.ml) \ trie.ml \ path_indexing.ml \ discrimination_tree.ml \ - test_indexing.ml \ indexing.ml \ saturation.ml -TOPLEVELOBJS = $(INTERFACE_FILES:%.mli=%.cmo) \ - trie.cmo \ - path_indexing.cmo \ - discrimination_tree.cmo \ - indexing.cmo \ - saturation.cmo -TESTOBJS = $(INTERFACE_FILES:%.mli=%.cmo) \ - trie.cmo \ - path_indexing.cmo \ - discrimination_tree.cmo \ - test_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 +include ../Makefile.common -saturation: $(TOPLEVELOBJS) $(LIBRARIES) - $(OCAMLC) -thread -linkpkg -o $@ $(TOPLEVELOBJS) -saturation.opt: $(TOPLEVELOBJS:.cmo=.cmx) $(LIBRARIES_OPT) - $(OCAMLOPT) -thread -linkpkg -o $@ $(TOPLEVELOBJS:.cmo=.cmx) +paramodulation.cmo: $(IMPLEMENTATION_FILES:%.ml=%.cmo) + $(OCAMLC) -pack -o $@ $(IMPLEMENTATION_FILES:%.ml=%.cmo) -test_indexing: $(TESTOBJS) $(TEST_LIBRARIES) - $(OCAMLC) -linkpkg -o $@ $(TESTOBJS) +paramodulation.cmx: $(IMPLEMENTATION_FILES:%.ml=%.cmx) + $(OCAMLOPT) -pack -o $@ $(IMPLEMENTATION_FILES:%.ml=%.cmx) -.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) +$(ARCHIVE): paramodulation.cmo $(LIBRARIES) + $(OCAMLC) $(OCAMLARCHIVEOPTIONS) -a -o $@ \ + paramodulation.cmo -clean: - rm -f *.cm[iox] *.o saturation{,.opt} regtest{,.opt} testlibrary{,.opt} +$(ARCHIVE_OPT): paramodulation.cmx $(LIBRARIES_OPT) + $(OCAMLOPT) $(OCAMLARCHIVEOPTIONS) -a -o $@ \ + paramodulation.cmx -ifneq ($(MAKECMDGOALS), depend) - include .depend -endif +PARAMOD_OBJS = $(IMPLEMENTATION_FILES:%.ml=%.cmo) +PARAMOD_OBJS_OPT = $(IMPLEMENTATION_FILES:%.ml=%.cmx) +LOCALLINKOPTS = -package helm-cic_disambiguation,helm-content_pres,helm-grafite +saturate: saturate_main.ml $(PARAMOD_OBJS) $(LIBRARIES) + $(OCAMLC) $(LOCALLINKOPTS) -thread -linkpkg -o $@ $(PARAMOD_OBJS) $< +saturate.opt: saturate_main.ml $(PARAMOD_OBJS_OPT) $(LIBRARIES) + $(OCAMLOPT) $(LOCALLINKOPTS) -thread -linkpkg -o $@ $(PARAMOD_OBJS_OPT) $<