X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2FMakefile.common;h=7a4727c769b0b1f4ae0dc0ebdd53e21f06a25030;hb=e9b09b14538f770b9e65083c24e3e9cf487df648;hp=59b35aa7371348377d34bd9d6b4735169b708165;hpb=f438e9b0c8e43a66c56b17adeb8793042d0aade1;p=helm.git diff --git a/helm/software/components/Makefile.common b/helm/software/components/Makefile.common index 59b35aa73..7a4727c76 100644 --- a/helm/software/components/Makefile.common +++ b/helm/software/components/Makefile.common @@ -11,10 +11,16 @@ H=@ # $OCAMLFIND must be set to a meaningful vaule, including OCAMLPATH= -PREPROCOPTIONS = -pp camlp4o -SYNTAXOPTIONS = -syntax camlp4o +ifeq ($(ANNOT),true) + ANNOTOPTION = -dtypes +else + ANNOTOPTION = +endif + +PREPROCOPTIONS = -pp camlp5o +SYNTAXOPTIONS = -syntax camlp5o PREREQ = -OCAMLOPTIONS = -package "$(REQUIRES)" -predicates "$(PREDICATES)" -thread +OCAMLOPTIONS = -package "$(REQUIRES)" -predicates "$(PREDICATES)" -thread -rectypes $(ANNOTOPTION) OCAMLDEBUGOPTIONS = -g #OCAML_PROF=p -p a OCAMLARCHIVEOPTIONS = @@ -22,7 +28,7 @@ REQUIRES := $(shell $(OCAMLFIND) -query -format '%(requires)' helm-$(PACKAGE)) OCAMLC = $(OCAMLFIND) ocamlc$(OCAML_PROF) $(OCAMLDEBUGOPTIONS) $(OCAMLOPTIONS) $(PREPROCOPTIONS) #OCAMLOPT_DEBUG_FLAGS = -p OCAMLOPT = $(OCAMLFIND) opt $(OCAMLOPTIONS) $(PREPROCOPTIONS) $(OCAMLOPT_DEBUG_FLAGS) -OCAMLDEP = $(OCAMLFIND) ocamldep -package "camlp4 $(CAMLP4REQUIRES)" $(SYNTAXOPTIONS) $(OCAMLDEPOPTIONS) +OCAMLDEP = $(OCAMLFIND) ocamldep -package "camlp5 $(CAMLP5REQUIRES)" $(SYNTAXOPTIONS) $(OCAMLDEPOPTIONS) OCAMLLEX = ocamllex OCAMLYACC = ocamlyacc