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