]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/paramodulation/Makefile
ocaml 3.09 transition
[helm.git] / helm / ocaml / paramodulation / Makefile
index 9d30e7020d39fb9f1da56ec8dfbf1e6f6110b3d6..7a3dbf626cfd1ba945f8add6e28c1428998653da 100644 (file)
@@ -1,86 +1,52 @@
-BIN_DIR = /usr/local/bin
+PACKAGE = paramodulation
 
-TEST_REQUIRES = \
+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
+       helm-tactics \
+       helm-cic_disambiguation \
+       mysql
 
 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
+#       saturate_main.ml
+#      test_indexing.ml 
+
+
+include ../Makefile.common
 
-$(INTERFACE_FILES:%.mli=%.cmo): $(LIBRARIES)
-$(INTERFACE_FILES:%.mli=%.cmx): $(LIBRARIES_OPT)
 
-depend:
-       $(OCAMLDEP) $(DEPOBJS) > .depend
+paramodulation.cmo: $(IMPLEMENTATION_FILES:%.ml=%.cmo)
+       $(OCAMLC) -pack -o $@ $(IMPLEMENTATION_FILES:%.ml=%.cmo)
 
-saturation: $(TOPLEVELOBJS) $(LIBRARIES)
-       $(OCAMLC) -thread -linkpkg -o $@ $(TOPLEVELOBJS)
-saturation.opt: $(TOPLEVELOBJS:.cmo=.cmx) $(LIBRARIES_OPT)
-       $(OCAMLOPT) -thread -linkpkg -o $@ $(TOPLEVELOBJS:.cmo=.cmx)
+paramodulation.cmx: $(IMPLEMENTATION_FILES:%.ml=%.cmx)
+       $(OCAMLOPT) -pack -o $@ $(IMPLEMENTATION_FILES:%.ml=%.cmx)
 
-test_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 $<
+$(ARCHIVE): paramodulation.cmo $(LIBRARIES)
+       $(OCAMLC) $(OCAMLARCHIVEOPTIONS) -a -o $@ \
+               paramodulation.cmo
 
-$(TOPLEVELOBJS): $(LIBRARIES)
-$(TOPLEVELOBJS:.cmo=.cmx)): $(LIBRARIES_OPT)
+$(ARCHIVE_OPT): paramodulation.cmx $(LIBRARIES_OPT)
+       $(OCAMLOPT) $(OCAMLARCHIVEOPTIONS) -a -o $@ \
+               paramodulation.cmx
 
-clean:
-       rm -f *.cm[iox] *.o saturation{,.opt} regtest{,.opt} testlibrary{,.opt}
+PARAMOD_OBJS = $(IMPLEMENTATION_FILES:%.ml=%.cmo) \
+       saturate_main.cmo
+PARAMOD_OBJS_OPT = $(IMPLEMENTATION_FILES:%.ml=%.cmx) \
+       saturate_main.cmx
 
-ifneq ($(MAKECMDGOALS), depend)
-   include .depend   
-endif
+saturate: $(PARAMOD_OBJS) $(LIBRARIES)
+       $(OCAMLC) -thread -linkpkg -o $@ $(PARAMOD_OBJS)
 
+saturate.opt: $(PARAMOD_OBJS_OPT) $(LIBRARIES)
+       $(OCAMLOPT) -thread -linkpkg -o $@ $(PARAMOD_OBJS_OPT)