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
10 OCAMLC = $(OCAMLFIND) ocamlc -thread $(OCAMLOPTIONS)
11 OCAMLOPT = $(OCAMLFIND) ocamlopt -thread $(OCAMLOPTIONS)
12 OCAMLDEP = ocamldep -pp camlp4o
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))
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
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
39 $(OCAMLDEP) $(DEPOBJS) > .depend
41 gTopLevel: $(TOPLEVELOBJS) $(LIBRARIES)
42 $(OCAMLC) -linkpkg -o gTopLevel /home/claudio/miohelm/helm/DEVEL/mathml_editor/src/.libs/libeditex.a mlmathml-editor.cma $(TOPLEVELOBJS)
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)
47 .SUFFIXES: .ml .mli .cmo .cmi .cmx
55 $(TOPLEVELOBJS): $(LIBRARIES)
56 $(TOPLEVELOBJS:.cmo=.cmx)): $(LIBRARIES_OPT)
59 rm -f *.cm[iox] *.o gTopLevel gTopLevel.opt
62 cp gTopLevel gTopLevel.opt $(BIN_DIR)
65 rm -f $(BIN_DIR)/gTopLevel $(BIN_DIR)/gTopLevel.opt
67 .PHONY: install uninstall clean
69 ifneq ($(MAKECMDGOALS), depend)