]> matita.cs.unibo.it Git - helm.git/blob - helm/gTopLevel/Makefile
First committed version that (may) use the MathML editor to enter formulas.
[helm.git] / helm / gTopLevel / Makefile
1 BIN_DIR = /usr/local/bin
2 REQUIRES = lablgtkmathview helm-cic_textual_parser helm-tex_cic_textual_parser \
3            helm-cic_proof_checking helm-xml gdome2-xslt helm-cic_unification \
4            helm-tactics helm-mathql helm-mathql_interpreter \
5            helm-mquery_generator threads hbugs-client
6 PREDICATES = "gnome,init,glade"
7 OCAMLOPTIONS = -package "$(REQUIRES)" -predicates "$(PREDICATES)" -pp camlp4o \
8                -I /home/claudio/miohelm/helm/DEVEL/mathml_editor/ocaml
9 OCAMLFIND = ocamlfind
10 OCAMLC = $(OCAMLFIND) ocamlc -thread $(OCAMLOPTIONS)
11 OCAMLOPT = $(OCAMLFIND) ocamlopt -thread $(OCAMLOPTIONS)
12 OCAMLDEP = ocamldep -pp camlp4o
13
14 LIBRARIES = $(shell ocamlfind query -recursive -predicates "byte $(PREDICATES)" -format "%d/%a" $(REQUIRES))
15 LIBRARIES_OPT = $(shell ocamlfind query -recursive -predicates "native $(PREDICATES)" -format "%d/%a" $(REQUIRES))
16
17 all: gTopLevel
18 opt: gTopLevel.opt
19
20 DEPOBJS = \
21         xml2Gdome.ml xml2Gdome.mli proofEngine.ml proofEngine.mli \
22         doubleTypeInference.ml doubleTypeInference.mli cic2acic.ml cic2acic.mli\
23         cic2Xml.ml cic2Xml.mli logicalOperations.ml logicalOperations.mli \
24         sequentPp.ml sequentPp.mli mQueryGenerator.mli mQueryLevels.ml \
25         mQueryLevels2.mli mQueryLevels2.ml mQueryGenerator.ml misc.ml misc.mli \
26         disambiguate.ml disambiguate.mli termEditor.ml termEditor.mli \
27         texTermEditor.ml texTermEditor.mli applyStylesheets.ml \
28         applyStylesheets.mli termViewer.ml termViewer.mli invokeTactics.ml \
29         invokeTactics.mli hbugs.ml hbugs.mli gTopLevel.ml
30
31 TOPLEVELOBJS = \
32         xml2Gdome.cmo doubleTypeInference.cmo cic2acic.cmo cic2Xml.cmo \
33         proofEngine.cmo logicalOperations.cmo sequentPp.cmo \
34         mQueryLevels2.cmo misc.cmo disambiguate.cmo \
35         termEditor.cmo texTermEditor.cmo applyStylesheets.cmo termViewer.cmo \
36         invokeTactics.cmo hbugs.cmo gTopLevel.cmo
37
38 depend:
39         $(OCAMLDEP) $(DEPOBJS) > .depend
40
41 gTopLevel: $(TOPLEVELOBJS) $(LIBRARIES)
42         $(OCAMLC) -linkpkg -o gTopLevel /home/claudio/miohelm/helm/DEVEL/mathml_editor/src/.libs/libeditex.a mlmathml-editor.cma $(TOPLEVELOBJS)
43
44 gTopLevel.opt: $(TOPLEVELOBJS:.cmo=.cmx) $(LIBRARIES_OPT)
45         $(OCAMLOPT) -linkpkg -o gTopLevel.opt /home/claudio/miohelm/helm/DEVEL/mathml_editor/src/.libs/libeditex.a mlmathml-editor.cmxa $(TOPLEVELOBJS:.cmo=.cmx)
46
47 .SUFFIXES: .ml .mli .cmo .cmi .cmx
48 .ml.cmo:
49         $(OCAMLC) -c $<
50 .mli.cmi:
51         $(OCAMLC) -c $<
52 .ml.cmx:
53         $(OCAMLOPT) -c $<
54
55 $(TOPLEVELOBJS): $(LIBRARIES)
56 $(TOPLEVELOBJS:.cmo=.cmx)): $(LIBRARIES_OPT)
57
58 clean:
59         rm -f *.cm[iox] *.o gTopLevel gTopLevel.opt
60
61 install:
62         cp gTopLevel gTopLevel.opt $(BIN_DIR)
63
64 uninstall:
65         rm -f $(BIN_DIR)/gTopLevel $(BIN_DIR)/gTopLevel.opt
66
67 .PHONY: install uninstall clean
68
69 ifneq ($(MAKECMDGOALS), depend)
70    include .depend   
71 endif