-BIN_DIR = /usr/local/bin
+PACKAGE = cic_proof_checking
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
+REDUCTION_IMPLEMENTATION = cicReductionMachine.ml
-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
+INTERFACE_FILES = \
+ cicLogger.mli cicEnvironment.mli cicPp.mli cicSubstitution.mli \
+ cicMiniReduction.mli cicReductionNaif.mli cicReduction.mli \
+ cicTypeChecker.mli
+IMPLEMENTATION_FILES = $(INTERFACE_FILES:%.mli=%.ml)
-depend:
- $(OCAMLDEP) $(DEPOBJS) > .depend
+# 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 =
-.SUFFIXES: .ml .mli .cmo .cmi .cmx
-.ml.cmo:
- $(OCAMLC) -c $<
-.mli.cmi:
- $(OCAMLC) -c $<
-.ml.cmx:
- $(OCAMLOPT) -c $<
+include ../Makefile.common
-clean:
- rm -f *.cm[iox]
+cicReduction.ml: $(REDUCTION_IMPLEMENTATION)
+ if ! [ -f $@ ]; then \
+ echo "Using $< for $@"; \
+ ln -s $< $@; \
+ else \
+ true; \
+ fi
-install:
- #cp
-
-uninstall:
- #rm -f
-
-.PHONY: install uninstall clean
-
-include .depend