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 primitiveTactics.ml primitiveTactics.mli tacticals.ml tacticals.mli \
21 ring.ml ring.mli fourier.ml fourierR.ml fourierR.mli\
22 proofEngine.ml proofEngine.mli \
23 doubleTypeInference.ml doubleTypeInference.mli cic2acic.ml \
24 cic2acic.mli cic2Xml.ml cic2Xml.mli logicalOperations.ml \
25 logicalOperations.mli sequentPp.ml sequentPp.mli mQueryGenerator.mli \
26 mQueryGenerator.ml gTopLevel.ml
28 TOPLEVELOBJS = xml2Gdome.cmo proofEngineTypes.cmo proofEngineHelpers.cmo \
29 proofEngineReduction.cmo proofEngineStructuralRules.cmo \
30 primitiveTactics.cmo tacticals.cmo ring.cmo \
31 fourier.cmo fourierR.cmo proofEngine.cmo \
32 doubleTypeInference.cmo cic2acic.cmo cic2Xml.cmo \
33 logicalOperations.cmo sequentPp.cmo mQueryGenerator.cmo \
37 $(OCAMLDEP) $(DEPOBJS) > .depend
39 gTopLevel: $(TOPLEVELOBJS) $(LIBRARIES)
40 $(OCAMLC) -linkpkg -o gTopLevel $(TOPLEVELOBJS)
42 gTopLevel.opt: $(TOPLEVELOBJS:.cmo=.cmx) $(LIBRARIES_OPT)
43 $(OCAMLOPT) -linkpkg -o gTopLevel.opt $(TOPLEVELOBJS:.cmo=.cmx)
45 .SUFFIXES: .ml .mli .cmo .cmi .cmx
48 .mli.cmi: $(LIBRARIES)
50 .ml.cmx: $(LIBRARIES_OPT)
54 rm -f *.cm[iox] *.o gTopLevel gTopLevel.opt
57 cp gTopLevel gTopLevel.opt $(BIN_DIR)
60 rm -f $(BIN_DIR)/gTopLevel $(BIN_DIR)/gTopLevel.opt
62 .PHONY: install uninstall clean