]> matita.cs.unibo.it Git - helm.git/blob - helm/gTopLevel/Makefile
untested version of mQueryGenerator (was mquery part 2)
[helm.git] / helm / gTopLevel / Makefile
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 =
6 OCAMLOPTIONS = -package "$(REQUIRES)" -predicates "$(PREDICATES)" -pp camlp4o
7 OCAMLC = ocamlfind ocamlc $(OCAMLOPTIONS)
8 OCAMLOPT = ocamlfind ocamlopt $(OCAMLOPTIONS)
9 OCAMLDEP = ocamldep -pp camlp4o
10
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))
13
14 all: gTopLevel
15 opt: gTopLevel.opt
16
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
21
22 TOPLEVELOBJS = xml2Gdome.cmo proofEngineReduction.cmo proofEngine.cmo \
23                doubleTypeInference.cmo cic2acic.cmo cic2Xml.cmo \
24                logicalOperations.cmo sequentPp.cmo mQueryGenerator.cmo \
25                gTopLevel.cmo
26
27 depend:
28         $(OCAMLDEP) $(DEPOBJS) > .depend
29
30 gTopLevel: $(TOPLEVELOBJS) $(LIBRARIES)
31         $(OCAMLC) -linkpkg -o gTopLevel $(TOPLEVELOBJS)
32
33 gTopLevel.opt: $(TOPLEVELOBJS:.cmo=.cmx) $(LIBRARIES_OPT)
34         $(OCAMLOPT) -linkpkg -o gTopLevel.opt $(TOPLEVELOBJS:.cmo=.cmx)
35
36 .SUFFIXES: .ml .mli .cmo .cmi .cmx
37 .ml.cmo: $(LIBRARIES)
38         $(OCAMLC) -c $<
39 .mli.cmi: $(LIBRARIES)
40         $(OCAMLC) -c $<
41 .ml.cmx: $(LIBRARIES_OPT)
42         $(OCAMLOPT) -c $<
43
44 clean:
45         rm -f *.cm[iox] *.o gTopLevel gTopLevel.opt
46
47 install:
48         cp gTopLevel gTopLevel.opt $(BIN_DIR)
49
50 uninstall:
51         rm -f $(BIN_DIR)/gTopLevel $(BIN_DIR)/gTopLevel.opt
52
53 .PHONY: install uninstall clean
54
55 include .depend