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
5 PREDICATES = "gnome,init"
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 tacticals.ml tacticals.mli reductionTactics.ml reductionTactics.mli \
21 primitiveTactics.ml primitiveTactics.mli variousTactics.ml variousTactics.mli \
22 ring.ml ring.mli fourier.ml fourierR.ml fourierR.mli\
23 proofEngine.ml proofEngine.mli \
24 doubleTypeInference.ml doubleTypeInference.mli cic2acic.ml \
25 cic2acic.mli cic2Xml.ml cic2Xml.mli logicalOperations.ml \
26 logicalOperations.mli sequentPp.ml sequentPp.mli mQueryGenerator.mli \
27 mQueryLevels.ml mQueryGenerator.ml gTopLevel.ml
29 TOPLEVELOBJS = xml2Gdome.cmo proofEngineTypes.cmo proofEngineHelpers.cmo \
30 proofEngineReduction.cmo proofEngineStructuralRules.cmo \
31 tacticals.cmo reductionTactics.cmo primitiveTactics.cmo \
33 ring.cmo fourier.cmo fourierR.cmo proofEngine.cmo \
34 doubleTypeInference.cmo cic2acic.cmo cic2Xml.cmo \
35 logicalOperations.cmo sequentPp.cmo \
36 mQueryLevels.cmo mQueryGenerator.cmo gTopLevel.cmo
39 $(OCAMLDEP) $(DEPOBJS) > .depend
41 gTopLevel: $(TOPLEVELOBJS) $(LIBRARIES)
42 $(OCAMLC) -linkpkg -o gTopLevel $(TOPLEVELOBJS)
44 gTopLevel.opt: $(TOPLEVELOBJS:.cmo=.cmx) $(LIBRARIES_OPT)
45 $(OCAMLOPT) -linkpkg -o gTopLevel.opt $(TOPLEVELOBJS:.cmo=.cmx)
47 .SUFFIXES: .ml .mli .cmo .cmi .cmx
50 .mli.cmi: $(LIBRARIES)
52 .ml.cmx: $(LIBRARIES_OPT)
56 rm -f *.cm[iox] *.o gTopLevel gTopLevel.opt
59 cp gTopLevel gTopLevel.opt $(BIN_DIR)
62 rm -f $(BIN_DIR)/gTopLevel $(BIN_DIR)/gTopLevel.opt
64 .PHONY: install uninstall clean