]> matita.cs.unibo.it Git - helm.git/blob - helm/gTopLevel/Makefile
mQueryLevels2.mli added in Makefile.
[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 = "gnome,init"
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           tacticals.ml tacticals.mli reductionTactics.ml reductionTactics.mli \
21           primitiveTactics.ml primitiveTactics.mli variousTactics.ml variousTactics.mli \
22           ring.ml ring.mli fourier.ml fourierR.ml fourierR.mli\
23           proofEngine.ml proofEngine.mli \
24           doubleTypeInference.ml doubleTypeInference.mli cic2acic.ml \
25           cic2acic.mli cic2Xml.ml cic2Xml.mli logicalOperations.ml \
26           logicalOperations.mli sequentPp.ml sequentPp.mli mQueryGenerator.mli \
27           mQueryLevels.ml mQueryLevels2.mli mQueryLevels2.ml mQueryGenerator.ml gTopLevel.ml
28
29 TOPLEVELOBJS = xml2Gdome.cmo proofEngineTypes.cmo proofEngineHelpers.cmo \
30                proofEngineReduction.cmo proofEngineStructuralRules.cmo \
31                tacticals.cmo reductionTactics.cmo primitiveTactics.cmo \
32                variousTactics.cmo ring.cmo fourier.cmo fourierR.cmo \
33                proofEngine.cmo doubleTypeInference.cmo cic2acic.cmo \
34                cic2Xml.cmo logicalOperations.cmo sequentPp.cmo \
35                mQueryLevels.cmo mQueryLevels2.cmo mQueryGenerator.cmo \
36                gTopLevel.cmo
37
38 depend:
39         $(OCAMLDEP) $(DEPOBJS) > .depend
40
41 gTopLevel: $(TOPLEVELOBJS) $(LIBRARIES)
42         $(OCAMLC) -linkpkg -o gTopLevel $(TOPLEVELOBJS)
43
44 gTopLevel.opt: $(TOPLEVELOBJS:.cmo=.cmx) $(LIBRARIES_OPT)
45         $(OCAMLOPT) -linkpkg -o gTopLevel.opt $(TOPLEVELOBJS:.cmo=.cmx)
46
47 .SUFFIXES: .ml .mli .cmo .cmi .cmx
48 .ml.cmo: $(LIBRARIES)
49         $(OCAMLC) -c $<
50 .mli.cmi: $(LIBRARIES)
51         $(OCAMLC) -c $<
52 .ml.cmx: $(LIBRARIES_OPT)
53         $(OCAMLOPT) -c $<
54
55 clean:
56         rm -f *.cm[iox] *.o gTopLevel gTopLevel.opt
57
58 install:
59         cp gTopLevel gTopLevel.opt $(BIN_DIR)
60
61 uninstall:
62         rm -f $(BIN_DIR)/gTopLevel $(BIN_DIR)/gTopLevel.opt
63
64 .PHONY: install uninstall clean
65
66 include .depend