X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=daemons%2FproofChecker%2FMakefile;h=4be11212f2609333a94bb3c493513d443b375e94;hb=f056ae150cb1879f4300e5b91089d06a94499f22;hp=af48d0a5d1e941ec7d45a6831a6192fdb5be17c4;hpb=8feb1cda5703daa4371c556593bab63514423a58;p=helm.git diff --git a/daemons/proofChecker/Makefile b/daemons/proofChecker/Makefile index af48d0a5d..4be11212f 100644 --- a/daemons/proofChecker/Makefile +++ b/daemons/proofChecker/Makefile @@ -2,12 +2,17 @@ BIN_DIR = /usr/local/bin REQUIRES = helm-cic_proof_checking http PREDICATES = OCAMLOPTIONS = -package "$(REQUIRES)" -predicates "$(PREDICATES)" -thread -OCAMLC = ocamlfind ocamlc $(OCAMLOPTIONS) -g -OCAMLOPT = ocamlfind ocamlopt $(OCAMLOPTIONS) +ifeq ($(origin OCAMLPATH), undefined) +OCAMLFIND = OCAMLPATH=../../components/METAS ocamlfind +else +OCAMLFIND = ocamlfind +endif +OCAMLC = $(OCAMLFIND) ocamlc $(OCAMLOPTIONS) -g +OCAMLOPT = $(OCAMLFIND) ocamlopt $(OCAMLOPTIONS) OCAMLDEP = ocamldep -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)) +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)) all: $(PROOFCHECKEROBJS) proofChecker opt: $(PROOFCHECKEROBJS:.cmo=.cmx) proofChecker.opt