]> matita.cs.unibo.it Git - helm.git/blob - daemons/proofChecker/Makefile
half ported to the "new" module organization.
[helm.git] / daemons / proofChecker / Makefile
1 BIN_DIR = /usr/local/bin
2 REQUIRES = helm-cic_proof_checking http
3 PREDICATES =
4 OCAMLOPTIONS = -package "$(REQUIRES)" -predicates "$(PREDICATES)" -thread
5 OCAMLFIND = OCAMLPATH=../../components/METAS/ ocamlfind
6 OCAMLC = $(OCAMLFIND) ocamlc $(OCAMLOPTIONS) -g
7 OCAMLOPT = $(OCAMLFIND) ocamlopt $(OCAMLOPTIONS)
8 OCAMLDEP = ocamldep
9
10 LIBRARIES = $(shell $(OCAMLFIND) query -recursive -predicates "byte $(PREDICATES)" -format "%d/%a" $(REQUIRES))
11 LIBRARIES_OPT = $(shell $(OCAMLFIND) query -recursive -predicates "native $(PREDICATES)" -format "%d/%a" $(REQUIRES))
12
13 all: $(PROOFCHECKEROBJS) proofChecker
14 opt: $(PROOFCHECKEROBJS:.cmo=.cmx) proofChecker.opt
15
16 DEPOBJS = proofChecker.ml
17
18 PROOFCHECKEROBJS = proofChecker.cmo
19
20 depend:
21         $(OCAMLDEP) $(DEPOBJS) > .depend
22
23 proofChecker: $(PROOFCHECKEROBJS) $(LIBRARIES)
24         $(OCAMLC)  -linkpkg -o proofChecker $(PROOFCHECKEROBJS)
25
26 proofChecker.opt: $(PROOFCHECKEROBJS:.cmo=.cmx) $(LIBRARIES_OPT)
27         $(OCAMLOPT) -linkpkg -o proofChecker.opt $(PROOFCHECKEROBJS:.cmo=.cmx)
28
29 .SUFFIXES: .ml .mli .cmo .cmi .cmx
30 .ml.cmo: $(LIBRARIES)
31         $(OCAMLC) -c $<
32 .mli.cmi: $(LIBRARIES)
33         $(OCAMLC) -c $<
34 .ml.cmx: $(LIBRARIES_OPT)
35         $(OCAMLOPT) -c $<
36
37 clean:
38         rm -f *.cm[iox] *.o proofChecker proofChecker.opt
39
40 install:
41         cp proofChecker proofChecker.opt $(BIN_DIR)
42
43 uninstall:
44         rm -f $(BIN_DIR)/proofChecker $(BIN_DIR)/proofChecker.opt
45
46 .PHONY: install uninstall clean
47
48 include .depend