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 cic2Xml.ml \
18 doubleTypeInference.ml doubleTypeInference.mli cic2acic.ml \
19 cic2acic.mli logicalOperations.ml sequentPp.ml mquery.mli \
20 mquery.ml gTopLevel.ml
22 TOPLEVELOBJS = xml2Gdome.cmo proofEngineReduction.cmo proofEngine.cmo \
23 cic2Xml.cmo doubleTypeInference.cmo cic2acic.cmo \
24 logicalOperations.cmo sequentPp.cmo mquery.cmo gTopLevel.cmo
27 $(OCAMLDEP) $(DEPOBJS) > .depend
29 gTopLevel: $(TOPLEVELOBJS) $(LIBRARIES)
30 $(OCAMLC) -linkpkg -o gTopLevel $(TOPLEVELOBJS)
32 gTopLevel.opt: $(TOPLEVELOBJS:.cmo=.cmx) $(LIBRARIES_OPT)
33 $(OCAMLOPT) -linkpkg -o gTopLevel.opt $(TOPLEVELOBJS:.cmo=.cmx)
35 .SUFFIXES: .ml .mli .cmo .cmi .cmx
38 .mli.cmi: $(LIBRARIES)
40 .ml.cmx: $(LIBRARIES_OPT)
44 rm -f *.cm[iox] *.o gTopLevel gTopLevel.opt
47 cp gTopLevel gTopLevel.opt $(BIN_DIR)
50 rm -f $(BIN_DIR)/gTopLevel $(BIN_DIR)/gTopLevel.opt
52 .PHONY: install uninstall clean