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 xml2Gdome.mli proofEngineTypes.ml proofEngineHelpers.ml \
18 proofEngineReduction.ml proofEngineReduction.mli \
19 proofEngineStructuralRules.ml proofEngineStructuralRules.mli \
20 primitiveTactics.ml primitiveTactics.mli ring.ml ring.mli \
21 proofEngine.ml proofEngine.mli \
22 doubleTypeInference.ml doubleTypeInference.mli cic2acic.ml \
23 cic2acic.mli cic2Xml.ml cic2Xml.mli logicalOperations.ml \
24 logicalOperations.mli sequentPp.ml sequentPp.mli mQueryGenerator.mli \
25 mQueryGenerator.ml gTopLevel.ml
27 TOPLEVELOBJS = xml2Gdome.cmo proofEngineTypes.cmo proofEngineHelpers.cmo \
28 proofEngineReduction.cmo proofEngineStructuralRules.cmo \
29 primitiveTactics.cmo ring.cmo proofEngine.cmo \
30 doubleTypeInference.cmo cic2acic.cmo cic2Xml.cmo \
31 logicalOperations.cmo sequentPp.cmo mQueryGenerator.cmo \
35 $(OCAMLDEP) $(DEPOBJS) > .depend
37 gTopLevel: $(TOPLEVELOBJS) $(LIBRARIES)
38 $(OCAMLC) -linkpkg -o gTopLevel $(TOPLEVELOBJS)
40 gTopLevel.opt: $(TOPLEVELOBJS:.cmo=.cmx) $(LIBRARIES_OPT)
41 $(OCAMLOPT) -linkpkg -o gTopLevel.opt $(TOPLEVELOBJS:.cmo=.cmx)
43 .SUFFIXES: .ml .mli .cmo .cmi .cmx
46 .mli.cmi: $(LIBRARIES)
48 .ml.cmx: $(LIBRARIES_OPT)
52 rm -f *.cm[iox] *.o gTopLevel gTopLevel.opt
55 cp gTopLevel gTopLevel.opt $(BIN_DIR)
58 rm -f $(BIN_DIR)/gTopLevel $(BIN_DIR)/gTopLevel.opt
60 .PHONY: install uninstall clean