]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/searchEngine/Makefile
- reimplemented basic features using the helm-metadata library instead
[helm.git] / helm / searchEngine / Makefile
index 519629b5490057442363c1f62194fc91eb4619c1..b0836f5b06a147f98e2d70a91f0f681d6f026323 100644 (file)
@@ -1,29 +1,40 @@
-REQUIRES = http helm-cic_textual_parser2 helm-cic_proof_checking \
-           helm-xml gdome2-xslt helm-cic_unification helm-mathql \
-           helm-mathql_interpreter helm-mathql_generator helm-logger \
-           helm-tex_cic_textual_parser helm-tactics
-OCAMLOPTIONS = -thread -package "$(REQUIRES)" -pp camlp4o -I ../gTopLevel
+REQUIRES = http dbi.mysql helm-cic_textual_parser2 helm-logger helm-tactics
+OCAMLOPTIONS = -thread -package "$(REQUIRES)" -pp camlp4o
 OCAMLC = ocamlfind ocamlc $(OCAMLOPTIONS)
 OCAMLOPT = ocamlfind ocamlopt $(OCAMLOPTIONS)
+OCAMLDEP = ocamlfind ocamldep -package "$(REQUIRES)" -pp camlp4o
 
-GTOPLEVEL_MODULES = oldDisambiguate disambiguatingParser
-MODULES =
+MODULES = mooglePp
+SRCS = $(patsubst %,%.ml,$(MODULES)) $(patsubst %,%.mli,$(MODULES)) \
+       searchEngine.ml
 CMOS = $(patsubst %,%.cmo,$(MODULES))
 CMXS = $(patsubst %,%.cmx,$(MODULES))
-LIBRARIES =    $(patsubst %,../gTopLevel/%.cmo,$(GTOPLEVEL_MODULES))
-LIBRARIES_OPT =        $(patsubst %,../gTopLevel/%.cmx,$(GTOPLEVEL_MODULES))
 
 all: byte
 world: byte opt
 byte: searchEngine
 opt: searchEngine.opt
 
-searchEngine: $(LIBRARIES) $(CMOS) searchEngine.ml
+%.cmi: %.mli
+       $(OCAMLC) -c $<
+%.cmo %.cmi: %.ml
+       $(OCAMLC) -c $<
+%.cmx: %.ml
+       $(OCAMLOPT) -c $<
+
+searchEngine: $(CMOS) searchEngine.ml
        $(OCAMLC) -linkpkg -o $@ $^
-searchEngine.opt: $(LIBRARIES_OPT) $(CMXS) searchEngine.ml
+searchEngine.opt: $(CMXS) searchEngine.ml
        $(OCAMLOPT) -linkpkg -o $@ $^
 
 clean:
        rm -f *.cm[aiox] *.o searchEngine{,.opt}
 
+.PHONY: depend
+depend:
+       $(OCAMLDEP) $(SRCS) > .depend
+
 .PHONY: all opt clean
+
+include .depend
+