X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Fcic_proof_checking%2FMakefile;h=61d7d5002c7e52f9bcb559f44a7ccc9fbe6796bd;hb=0c6a5aadb1a7746681a8e26fc0b009f847c10557;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..61d7d5002 100644 --- a/helm/ocaml/cic_proof_checking/Makefile +++ b/helm/ocaml/cic_proof_checking/Makefile @@ -1,41 +1,30 @@ -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 +PACKAGE = cic_proof_checking +REQUIRES = helm-cic helm-logger helm-getter +PREDICATES = -.SUFFIXES: .ml .mli .cmo .cmi .cmx -.ml.cmo: - $(OCAMLC) -c $< -.mli.cmi: - $(OCAMLC) -c $< -.ml.cmx: - $(OCAMLOPT) -c $< +REDUCTION_IMPLEMENTATION = cicReductionMachine.ml -clean: - rm -f *.cm[iox] +INTERFACE_FILES = \ + cicLogger.mli \ + cicEnvironment.mli cicPp.mli cicSubstitution.mli \ + cicMiniReduction.mli cicReductionNaif.mli cicReduction.mli \ + cicTypeChecker.mli +IMPLEMENTATION_FILES = $(INTERFACE_FILES:%.mli=%.ml) -install: - #cp +# 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 = -uninstall: - #rm -f +include ../Makefile.common -.PHONY: install uninstall clean +cicReduction.ml: $(REDUCTION_IMPLEMENTATION) + if ! [ -f $@ ]; then \ + echo "Using $< for $@"; \ + ln -s $< $@; \ + else \ + true; \ + fi -include .depend