]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/searchEngine/Makefile
ocaml 3.09 transition
[helm.git] / helm / searchEngine / Makefile
index e7b9555e418a6bab87dc4e75f416c285f46fce12..2ae59df911656519f35efb5d880ec56672a44c1b 100644 (file)
@@ -1,28 +1,45 @@
-REQUIRES = http helm-cic_textual_parser helm-cic_proof_checking \
-           helm-xml gdome2-xslt helm-cic_unification helm-mathql \
-           helm-mathql_interpreter helm-mathql_generator
-OCAMLOPTIONS = -package "$(REQUIRES)" -pp camlp4o -I ../gTopLevel
+REQUIRES = http 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 = disambiguate
-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
+all: byte html
 world: byte opt
 byte: searchEngine
-opt: searchEngine.opt
+opt: searchEngine.opt html
 
-searchEngine: $(LIBRARIES) $(CMOS) searchEngine.ml
+.PHONY: html
+html:
+       make -C html/
+
+%.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:
+       make -C html/ clean
        rm -f *.cm[aiox] *.o searchEngine{,.opt}
 
+.PHONY: depend
+depend:
+       $(OCAMLDEP) $(SRCS) > .depend
+
 .PHONY: all opt clean
+
+include .depend
+