]> matita.cs.unibo.it Git - helm.git/blob - helm/gTopLevel/Makefile
debian version "-8"
[helm.git] / helm / gTopLevel / Makefile
1 BIN_DIR = /usr/local/bin
2 REQUIRES = lablgtkmathview helm-cic_textual_parser helm-cic_proof_checking \
3            helm-xml gdome2-xslt helm-cic_unification helm-mathql \
4            helm-mathql_interpreter
5 PREDICATES =
6 OCAMLOPTIONS = -package "$(REQUIRES)" -predicates "$(PREDICATES)" -pp camlp4o
7 OCAMLC = ocamlfind ocamlc $(OCAMLOPTIONS)
8 OCAMLOPT = ocamlfind ocamlopt $(OCAMLOPTIONS)
9 OCAMLDEP = ocamldep -pp camlp4o
10
11 LIBRARIES = $(shell ocamlfind query -recursive -predicates "byte $(PREDICATES)" -format "%d/%a" $(REQUIRES))
12 LIBRARIES_OPT = $(shell ocamlfind query -recursive -predicates "native $(PREDICATES)" -format "%d/%a" $(REQUIRES))
13
14 all: gTopLevel
15 opt: gTopLevel.opt
16
17 DEPOBJS = xml2Gdome.ml xml2Gdome.mli proofEngineTypes.ml proofEngineHelpers.ml \
18           proofEngineReduction.ml proofEngineReduction.mli \
19           proofEngineStructuralRules.ml proofEngineStructuralRules.mli \
20           primitiveTactics.ml primitiveTactics.mli ring.ml ring.mli \
21           proofEngine.ml proofEngine.mli \
22           doubleTypeInference.ml doubleTypeInference.mli cic2acic.ml \
23           cic2acic.mli cic2Xml.ml cic2Xml.mli logicalOperations.ml \
24           logicalOperations.mli sequentPp.ml sequentPp.mli mQueryGenerator.mli \
25           mQueryGenerator.ml gTopLevel.ml
26
27 TOPLEVELOBJS = xml2Gdome.cmo proofEngineTypes.cmo proofEngineHelpers.cmo \
28                            proofEngineReduction.cmo proofEngineStructuralRules.cmo \
29                            primitiveTactics.cmo ring.cmo proofEngine.cmo \
30                doubleTypeInference.cmo cic2acic.cmo cic2Xml.cmo \
31                logicalOperations.cmo sequentPp.cmo mQueryGenerator.cmo \
32                    gTopLevel.cmo
33
34 depend:
35         $(OCAMLDEP) $(DEPOBJS) > .depend
36
37 gTopLevel: $(TOPLEVELOBJS) $(LIBRARIES)
38         $(OCAMLC) -linkpkg -o gTopLevel $(TOPLEVELOBJS)
39
40 gTopLevel.opt: $(TOPLEVELOBJS:.cmo=.cmx) $(LIBRARIES_OPT)
41         $(OCAMLOPT) -linkpkg -o gTopLevel.opt $(TOPLEVELOBJS:.cmo=.cmx)
42
43 .SUFFIXES: .ml .mli .cmo .cmi .cmx
44 .ml.cmo: $(LIBRARIES)
45         $(OCAMLC) -c $<
46 .mli.cmi: $(LIBRARIES)
47         $(OCAMLC) -c $<
48 .ml.cmx: $(LIBRARIES_OPT)
49         $(OCAMLOPT) -c $<
50
51 clean:
52         rm -f *.cm[iox] *.o gTopLevel gTopLevel.opt
53
54 install:
55         cp gTopLevel gTopLevel.opt $(BIN_DIR)
56
57 uninstall:
58         rm -f $(BIN_DIR)/gTopLevel $(BIN_DIR)/gTopLevel.opt
59
60 .PHONY: install uninstall clean
61
62 include .depend