]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/cic_proof_checking/Makefile
ported debian stuff to ocaml 3.08
[helm.git] / helm / ocaml / cic_proof_checking / Makefile
index 97bd462b5e8deac388c3180b7af3d922602c5aa2..61d7d5002c7e52f9bcb559f44a7ccc9fbe6796bd 100644 (file)
@@ -1,14 +1,30 @@
+
 PACKAGE = cic_proof_checking
-REQUIRES = helm-cic
+REQUIRES = helm-cic helm-logger helm-getter
 PREDICATES =
 
-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
+REDUCTION_IMPLEMENTATION = cicReductionMachine.ml
+
+INTERFACE_FILES = \
+       cicLogger.mli \
+       cicEnvironment.mli cicPp.mli cicSubstitution.mli \
+       cicMiniReduction.mli cicReductionNaif.mli cicReduction.mli \
+       cicTypeChecker.mli
+IMPLEMENTATION_FILES = $(INTERFACE_FILES:%.mli=%.ml)
 
-OBJECTS = cicSubstitution.cmo cicEnvironment.cmo cicPp.cmo \
-          cicMiniReduction.cmo cicReduction.cmo cicTypeChecker.cmo \
-          cicCooking.cmo
+# 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
+