X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2FsearchEngine%2FMakefile;h=2ae59df911656519f35efb5d880ec56672a44c1b;hb=4167cea65ca58897d1a3dbb81ff95de5074700cc;hp=e7b9555e418a6bab87dc4e75f416c285f46fce12;hpb=9d04d8c478c68127fade09c220e983adbf492c15;p=helm.git diff --git a/helm/searchEngine/Makefile b/helm/searchEngine/Makefile index e7b9555e4..2ae59df91 100644 --- a/helm/searchEngine/Makefile +++ b/helm/searchEngine/Makefile @@ -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 +