]> matita.cs.unibo.it Git - helm.git/blob - helm/gTopLevel/Makefile
b2680c27b1027a0685f561caf473a98fa40ab947
[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 \
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           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                ring.cmo fourier.cmo fourierR.cmo proofEngine.cmo \
33                doubleTypeInference.cmo cic2acic.cmo cic2Xml.cmo \
34                logicalOperations.cmo sequentPp.cmo mQueryGenerator.cmo \
35                    gTopLevel.cmo
36
37 depend:
38         $(OCAMLDEP) $(DEPOBJS) > .depend
39
40 gTopLevel: $(TOPLEVELOBJS) $(LIBRARIES)
41         $(OCAMLC) -linkpkg -o gTopLevel $(TOPLEVELOBJS)
42
43 gTopLevel.opt: $(TOPLEVELOBJS:.cmo=.cmx) $(LIBRARIES_OPT)
44         $(OCAMLOPT) -linkpkg -o gTopLevel.opt $(TOPLEVELOBJS:.cmo=.cmx)
45
46 .SUFFIXES: .ml .mli .cmo .cmi .cmx
47 .ml.cmo: $(LIBRARIES)
48         $(OCAMLC) -c $<
49 .mli.cmi: $(LIBRARIES)
50         $(OCAMLC) -c $<
51 .ml.cmx: $(LIBRARIES_OPT)
52         $(OCAMLOPT) -c $<
53
54 clean:
55         rm -f *.cm[iox] *.o gTopLevel gTopLevel.opt
56
57 install:
58         cp gTopLevel gTopLevel.opt $(BIN_DIR)
59
60 uninstall:
61         rm -f $(BIN_DIR)/gTopLevel $(BIN_DIR)/gTopLevel.opt
62
63 .PHONY: install uninstall clean
64
65 include .depend