1 BIN_DIR = /usr/local/bin
2 #helm-tactics threads hbugs-client mathml-editor
3 REQUIRES = lablgtkmathview helm-cic_textual_parser helm-tex_cic_textual_parser \
4 helm-cic_proof_checking helm-xml gdome2-xslt helm-cic_unification \
5 helm-mathql helm-mathql_interpreter helm-mathql_generator \
6 helm-tactics threads mathml-editor \
7 helm-cic_transformations
8 PREDICATES = "gnome,init,glade"
9 OCAMLOPTIONS = -package "$(REQUIRES)" -predicates "$(PREDICATES)" -pp camlp4o
11 OCAMLC = $(OCAMLFIND) ocamlc -thread $(OCAMLOPTIONS)
12 OCAMLOPT = $(OCAMLFIND) ocamlopt -thread $(OCAMLOPTIONS)
13 OCAMLDEP = ocamldep -pp camlp4o
15 LIBRARIES = $(shell $(OCAMLFIND) query -recursive -predicates "byte $(PREDICATES)" -format "%d/%a" $(REQUIRES))
16 LIBRARIES_OPT = $(shell $(OCAMLFIND) query -recursive -predicates "native $(PREDICATES)" -format "%d/%a" $(REQUIRES))
19 opt: styles gTopLevel.opt
22 echo $(MAKE) -C ../hbugs/ start
24 echo $(MAKE) -C ../hbugs/ stop
26 # invokeTactics.mli hbugs.mli
28 proofEngine.mli logicalOperations.mli disambiguate.mli \
29 termEditor.mli texTermEditor.mli xmlDiff.mli termViewer.mli \
32 DEPOBJS = $(INTERFACE_FILES) $(INTERFACE_FILES:%.mli=%.ml) gTopLevel.ml
34 TOPLEVELOBJS = $(INTERFACE_FILES:%.mli=%.cmo) gTopLevel.cmo
36 $(INTERFACE_FILES:%.mli=%.cmo): $(LIBRARIES)
37 $(INTERFACE_FILES:%.mli=%.cmx): $(LIBRARIES_OPT)
40 @echo "***********************************************************************"
41 @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
42 @echo "***********************************************************************"
44 (cd styles && for i in ../stylesheets/*.xsl ; do ln -s $$i; done)
45 (cd styles && for i in ../stylesheets/generated/*.xsl ; do ln -s $$i; done)
46 (cd styles && rm rootcontent.xsl && ln -s ../rootcontent.xsl)
49 $(OCAMLDEP) $(DEPOBJS) > .depend
51 gTopLevel: $(TOPLEVELOBJS) $(LIBRARIES)
52 $(OCAMLC) -linkpkg -o gTopLevel $(TOPLEVELOBJS)
54 gTopLevel.opt: $(TOPLEVELOBJS:.cmo=.cmx) $(LIBRARIES_OPT)
55 $(OCAMLOPT) -linkpkg -o gTopLevel.opt $(TOPLEVELOBJS:.cmo=.cmx)
57 .SUFFIXES: .ml .mli .cmo .cmi .cmx
65 $(TOPLEVELOBJS): $(LIBRARIES)
66 $(TOPLEVELOBJS:.cmo=.cmx)): $(LIBRARIES_OPT)
69 rm -f *.cm[iox] *.o gTopLevel gTopLevel.opt
72 cp gTopLevel gTopLevel.opt $(BIN_DIR)
75 rm -f $(BIN_DIR)/gTopLevel $(BIN_DIR)/gTopLevel.opt
77 .PHONY: install uninstall clean
79 ifneq ($(MAKECMDGOALS), depend)