BIN_DIR = /usr/local/bin REQUIRES = helm-cic_proof_checking http PREDICATES = OCAMLOPTIONS = -package "$(REQUIRES)" -predicates "$(PREDICATES)" OCAMLC = ocamlfind ocamlc $(OCAMLOPTIONS) -g OCAMLOPT = ocamlfind ocamlopt $(OCAMLOPTIONS) OCAMLDEP = ocamldep LIBRARIES = $(shell ocamlfind query -recursive -predicates "byte $(PREDICATES)" -format "%d/%a" $(REQUIRES)) LIBRARIES_OPT = $(shell ocamlfind query -recursive -predicates "native $(PREDICATES)" -format "%d/%a" $(REQUIRES)) all: $(PROOFCHECKEROBJS) proofChecker opt: $(PROOFCHECKEROBJS:.cmo=.cmx) proofChecker.opt DEPOBJS = proofChecker.ml PROOFCHECKEROBJS = proofChecker.cmo depend: $(OCAMLDEP) $(DEPOBJS) > .depend proofChecker: $(PROOFCHECKEROBJS) $(LIBRARIES) $(OCAMLC) -linkpkg -o proofChecker $(PROOFCHECKEROBJS) proofChecker.opt: $(PROOFCHECKEROBJS:.cmo=.cmx) $(LIBRARIES_OPT) $(OCAMLOPT) -linkpkg -o proofChecker.opt $(PROOFCHECKEROBJS:.cmo=.cmx) .SUFFIXES: .ml .mli .cmo .cmi .cmx .ml.cmo: $(LIBRARIES) $(OCAMLC) -c $< .mli.cmi: $(LIBRARIES) $(OCAMLC) -c $< .ml.cmx: $(LIBRARIES_OPT) $(OCAMLOPT) -c $< clean: rm -f *.cm[iox] *.o proofChecker proofChecker.opt install: cp proofChecker proofChecker.opt $(BIN_DIR) uninstall: rm -f $(BIN_DIR)/proofChecker $(BIN_DIR)/proofChecker.opt .PHONY: install uninstall clean include .depend