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-mathql helm-mathql_interpreter helm-mathql_generator \
5 helm-tactics threads hbugs-client mathml-editor \
6 helm-cic_transformations
7 PREDICATES = "gnome,init,glade"
8 OCAMLOPTIONS = -package "$(REQUIRES)" -predicates "$(PREDICATES)" -pp camlp4o
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))
18 opt: styles gTopLevel.opt
21 proofEngine.ml proofEngine.mli eta_fixing.ml eta_fixing.mli \
22 content2cic.ml content2cic.mli logicalOperations.ml \
23 logicalOperations.mli disambiguate.ml disambiguate.mli termEditor.ml \
24 termEditor.mli texTermEditor.ml texTermEditor.mli termViewer.ml \
25 termViewer.mli invokeTactics.ml invokeTactics.mli hbugs.ml hbugs.mli \
29 eta_fixing.cmo content2cic.cmo \
30 proofEngine.cmo logicalOperations.cmo \
31 disambiguate.cmo termEditor.cmo texTermEditor.cmo termViewer.cmo \
32 invokeTactics.cmo hbugs.cmo gTopLevel.cmo
35 @echo "***********************************************************************"
36 @if [ -d stylesheets -a -d meta_stylesheets ] ; then echo -e "* stylesheets and metastylesheets found: *\\n* I will create the request hyperlinks in styles *" ; else echo -e "* stylesheets or meta_stylesheets not found: *\\n* you should check-out the two directories from the MoWGLI repository *" ; exit -1 ; fi
37 @echo "***********************************************************************"
39 (cd styles && for i in ../stylesheets/*.xsl ; do ln -s $$i; done)
40 (cd styles && for i in ../stylesheets/generated/*.xsl ; do ln -s $$i; done)
41 (cd styles && rm rootcontent.xsl && ln -s ../rootcontent.xsl)
44 $(OCAMLDEP) $(DEPOBJS) > .depend
46 gTopLevel: $(TOPLEVELOBJS) $(LIBRARIES)
47 $(OCAMLC) -linkpkg -o gTopLevel $(TOPLEVELOBJS)
49 gTopLevel.opt: $(TOPLEVELOBJS:.cmo=.cmx) $(LIBRARIES_OPT)
50 $(OCAMLOPT) -linkpkg -o gTopLevel.opt $(TOPLEVELOBJS:.cmo=.cmx)
52 .SUFFIXES: .ml .mli .cmo .cmi .cmx
60 $(TOPLEVELOBJS): $(LIBRARIES)
61 $(TOPLEVELOBJS:.cmo=.cmx)): $(LIBRARIES_OPT)
64 rm -f *.cm[iox] *.o gTopLevel gTopLevel.opt
67 cp gTopLevel gTopLevel.opt $(BIN_DIR)
70 rm -f $(BIN_DIR)/gTopLevel $(BIN_DIR)/gTopLevel.opt
72 .PHONY: install uninstall clean
74 ifneq ($(MAKECMDGOALS), depend)