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
6 OCAMLOPTIONS = -package "$(REQUIRES)" -predicates "$(PREDICATES)" -pp camlp4o
7 OCAMLC = ocamlfind ocamlc $(OCAMLOPTIONS)
8 OCAMLOPT = ocamlfind ocamlopt $(OCAMLOPTIONS)
9 OCAMLDEP = ocamldep -pp camlp4o
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))
17 DEPOBJS = xml2Gdome.ml proofEngineReduction.ml proofEngine.ml \
18 doubleTypeInference.ml doubleTypeInference.mli cic2acic.ml \
19 cic2Xml.ml cic2acic.mli logicalOperations.ml sequentPp.ml \
20 mQueryGenerator.mli mQueryGenerator.ml gTopLevel.ml
22 TOPLEVELOBJS = xml2Gdome.cmo proofEngineReduction.cmo proofEngine.cmo \
23 doubleTypeInference.cmo cic2acic.cmo cic2Xml.cmo \
24 logicalOperations.cmo sequentPp.cmo mQueryGenerator.cmo \
28 $(OCAMLDEP) $(DEPOBJS) > .depend
30 gTopLevel: $(TOPLEVELOBJS) $(LIBRARIES)
31 $(OCAMLC) -linkpkg -o gTopLevel $(TOPLEVELOBJS)
33 gTopLevel.opt: $(TOPLEVELOBJS:.cmo=.cmx) $(LIBRARIES_OPT)
34 $(OCAMLOPT) -linkpkg -o gTopLevel.opt $(TOPLEVELOBJS:.cmo=.cmx)
36 .SUFFIXES: .ml .mli .cmo .cmi .cmx
39 .mli.cmi: $(LIBRARIES)
41 .ml.cmx: $(LIBRARIES_OPT)
45 rm -f *.cm[iox] *.o gTopLevel gTopLevel.opt
48 cp gTopLevel gTopLevel.opt $(BIN_DIR)
51 rm -f $(BIN_DIR)/gTopLevel $(BIN_DIR)/gTopLevel.opt
53 .PHONY: install uninstall clean