]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/gTopLevel/topLevel/Makefile
mathQL modified, stderr corrected to stdout im mathql_interpreter,
[helm.git] / helm / gTopLevel / topLevel / Makefile
diff --git a/helm/gTopLevel/topLevel/Makefile b/helm/gTopLevel/topLevel/Makefile
new file mode 100644 (file)
index 0000000..e0af8f6
--- /dev/null
@@ -0,0 +1,47 @@
+BIN_DIR = /usr/local/bin
+REQUIRES = helm-cic_textual_parser helm-cic_proof_checking helm-mathql helm-mathql_interpreter
+PREDICATES =
+OCAMLOPTIONS = -I .. -package "$(REQUIRES)" -predicates "$(PREDICATES)"
+OCAMLC = ocamlfind ocamlc $(OCAMLOPTIONS)
+OCAMLOPT = ocamlfind ocamlopt $(OCAMLOPTIONS)
+OCAMLDEP = ocamldep
+
+LIBRARIES = $(shell ocamlfind query -recursive -predicates "byte $(PREDICATES)" -format "%d/%a" $(REQUIRES))
+LIBRARIES_OPT = $(shell ocamlfind query -recursive -predicates "native $(PREDICATES)" -format "%d/%a" $(REQUIRES))
+
+all: topLevel
+opt: topLevel.opt
+
+DEPOBJS = topLevel.ml
+
+TOPLEVELOBJS = ../mQueryGenerator.cmo topLevel.cmo
+
+depend:
+       $(OCAMLDEP) $(DEPOBJS) > .depend
+
+topLevel: $(TOPLEVELOBJS) $(LIBRARIES)
+       $(OCAMLC)  -linkpkg -o topLevel $(TOPLEVELOBJS)
+
+topLevel.opt: $(TOPLEVELOBJS:.cmo=.cmx) $(LIBRARIES_OPT)
+       $(OCAMLOPT) -linkpkg -o topLevel.opt $(TOPLEVELOBJS:.cmo=.cmx)
+
+.SUFFIXES: .ml .mli .cmo .cmi .cmx
+.ml.cmo: $(LIBRARIES)
+       $(OCAMLC) -c $<
+.mli.cmi: $(LIBRARIES)
+       $(OCAMLC) -c $<
+.ml.cmx: $(LIBRARIES_OPT)
+       $(OCAMLOPT) -c $<
+
+clean:
+       rm -f *.cm[iox] *.o topLevel topLevel.opt
+
+install:
+       cp topLevel topLevel.opt $(BIN_DIR)
+
+uninstall:
+       rm -f $(BIN_DIR)/topLevel $(BIN_DIR)/topLevel.opt
+
+.PHONY: install uninstall clean
+
+include .depend