X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Fcic_proof_checking%2FMakefile;h=4d56f5b2599e3e49de3fd926302c2360ae9f0ffc;hb=4cb4d286a1fdcb150c2848a9d21ac3486906c317;hp=61ba3b55d85557d5e9851fe184a41c17338fbf34;hpb=5a92117eeff70048d29e91ba24e113155d956e1b;p=helm.git diff --git a/helm/ocaml/cic_proof_checking/Makefile b/helm/ocaml/cic_proof_checking/Makefile index 61ba3b55d..4d56f5b25 100644 --- a/helm/ocaml/cic_proof_checking/Makefile +++ b/helm/ocaml/cic_proof_checking/Makefile @@ -1,41 +1,36 @@ -BIN_DIR = /usr/local/bin -REQUIRES = helm-cic -PREDICATES = -OCAMLOPTIONS = -package "$(REQUIRES)" -predicates "$(PREDICATES)" -OCAMLC = ocamlfind ocamlc $(OCAMLOPTIONS) -OCAMLOPT = ocamlfind ocamlopt $(OCAMLOPTIONS) -OCAMLDEP = ocamldep - -all: cicSubstitution.cmo cicEnvironment.cmo cicPp.cmo cicMiniReduction.cmo \ - cicReduction.cmo cicTypeChecker.cmo cicCooking.cmo -opt: cicSubstitution.cmx cicEnvironment.cmx cicPp.cmx cicMiniReduction.cmx \ - cicReduction.cmx cicTypeChecker.cmx cicCooking.cmx - -DEPOBJS = cicPp.mli cicPp.ml cicEnvironment.mli cicEnvironment.ml \ - cicSubstitution.mli cicSubstitution.ml cicReduction.mli \ - cicReduction.ml cicTypeChecker.mli cicTypeChecker.ml \ - cicCooking.mli cicCooking.ml cicMinireduction.mli cicMiniReduction.ml - -depend: - $(OCAMLDEP) $(DEPOBJS) > .depend -.SUFFIXES: .ml .mli .cmo .cmi .cmx -.ml.cmo: - $(OCAMLC) -c $< -.mli.cmi: - $(OCAMLC) -c $< -.ml.cmx: - $(OCAMLOPT) -c $< - -clean: - rm -f *.cm[iox] - -install: - #cp - -uninstall: - #rm -f +PACKAGE = cic_proof_checking +REQUIRES = helm-cic helm-logger helm-getter helm-xml pxp +PREDICATES = -.PHONY: install uninstall clean +REDUCTION_IMPLEMENTATION = cicReductionMachine.ml + +INTERFACE_FILES = \ + cicLogger.mli \ + cicEnvironment.mli \ + cicPp.mli \ + cicUnivUtils.mli \ + cicSubstitution.mli \ + cicMiniReduction.mli \ + cicReductionNaif.mli \ + cicReduction.mli \ + cicTypeChecker.mli \ + cicElim.mli +IMPLEMENTATION_FILES = $(INTERFACE_FILES:%.mli=%.ml) + +# Metadata tools only need zeta-reduction +EXTRA_OBJECTS_TO_INSTALL = \ + cicSubstitution.cmo cicSubstitution.cmx cicSubstitution.o \ + cicMiniReduction.cmo cicMiniReduction.cmx cicMiniReduction.o +EXTRA_OBJECTS_TO_CLEAN = + +include ../Makefile.common + +cicReduction.ml: $(REDUCTION_IMPLEMENTATION) + if ! [ -f $@ ]; then \ + echo "Using $< for $@"; \ + ln -s $< $@; \ + else \ + true; \ + fi -include .depend