]> matita.cs.unibo.it Git - helm.git/blob - helm/metadata/create2/mk_forward/Makefile
- added common stylesheet
[helm.git] / helm / metadata / create2 / mk_forward / Makefile
1 REQUIRES = helm-xml helm-cic_proof_checking
2 PREDICATES = miniReduction
3 OCAMLOPTIONS = -package "$(REQUIRES)" -predicates "$(PREDICATES)" -pp camlp4o
4 OCAMLDEP = ocamldep
5 OCAMLFIND = ocamlfind
6 OCAMLC = $(OCAMLFIND) ocamlc $(OCAMLOPTIONS)
7 OCAMLOPT = $(OCAMLFIND) ocamlopt $(OCAMLOPTIONS)
8
9 LIBRARIES = $(shell ocamlfind query -recursive -predicates "byte $(PREDICATES)" -format "%d/%a" $(REQUIRES))
10 LIBRARIES_OPT = $(shell ocamlfind query -recursive -predicates "native $(PREDICATES)" -format "%d/%a" $(REQUIRES))
11
12 all: mk_forward
13 opt: mk_forward.opt
14
15 DEPOBJS = mk_forward.ml
16
17 MKFORWARDOBJS = mk_forward.cmo
18
19 depend:
20         $(OCAMLDEP) $(DEPOBJS) > .depend
21
22 mk_forward: $(MKFORWARDOBJS) $(LIBRARIES)
23         $(OCAMLC) -linkpkg -o mk_forward $(MKFORWARDOBJS)
24
25 mk_forward.opt: $(MKFORWARDOBJS:.cmo=.cmx) $(LIBRARIES_OPT)
26         $(OCAMLOPT) -linkpkg -o mk_forward.opt $(MKFORWARDOBJS:.cmo=.cmx)
27
28 .SUFFIXES: .ml .mli .cmo .cmi .cmx
29 .ml.cmo: $(LIBRARIES)
30         $(OCAMLC) -c $<
31 .mli.cmi: $(LIBRARIES)
32         $(OCAMLC) -c $<
33 .ml.cmx: $(LIBRARIES_OPT)
34         $(OCAMLOPT) -c $<
35
36 clean:
37         rm -f *.cm[iox] *.o mk_forward mk_forward.opt
38
39 .PHONY: clean
40
41 include .depend