]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/annotationHelper/Makefile
First release of cicAnnotationHelper in CVS.
[helm.git] / helm / annotationHelper / Makefile
diff --git a/helm/annotationHelper/Makefile b/helm/annotationHelper/Makefile
new file mode 100644 (file)
index 0000000..5c7de7b
--- /dev/null
@@ -0,0 +1,44 @@
+BIN_DIR = /usr/local/bin
+REQUIRES = lablgtkmathview helm-cic_annotations_cache
+PREDICATES =
+OCAMLOPTIONS = -package "$(REQUIRES)" -predicates "$(PREDICATES)"
+OCAMLC = ocamlfind ocamlc $(OCAMLOPTIONS)
+OCAMLOPT = ocamlfind ocamlopt $(OCAMLOPTIONS)
+OCAMLDEP = ocamldep
+
+all: cicAnnotationHelper
+opt: cicAnnotationHelper.opt
+
+DEPOBJS = cicAnnotationHelper.ml
+
+CICANNOTATIONHELPEROBJS = cicAnnotationHelper.cmo
+
+depend:
+       $(OCAMLDEP) $(DEPOBJS) > .depend
+
+cicAnnotationHelper: $(CICANNOTATIONHELPEROBJS)
+       $(OCAMLC)  -linkpkg -o cicAnnotationHelper $(CICANNOTATIONHELPEROBJS)
+
+cicAnnotationHelper.opt: $(CICANNOTATIONHELPEROBJS:.cmo=.cmx)
+       $(OCAMLOPT) -linkpkg -o cicAnnotationHelper.opt $(CICANNOTATIONHELPEROBJS:.cmo=.cmx)
+
+.SUFFIXES: .ml .mli .cmo .cmi .cmx
+.ml.cmo:
+       $(OCAMLC) -c $<
+.mli.cmi:
+       $(OCAMLC) -c $<
+.ml.cmx:
+       $(OCAMLOPT) -c $<
+
+clean:
+       rm -f *.cm[iox] *.o cicAnnotationHelper cicAnnotationHelper.opt
+
+install:
+       cp cicAnnotationHelper cicAnnotationHelper.opt $(BIN_DIR)
+
+uninstall:
+       rm -f $(BIN_DIR)/cicAnnotationHelper $(BIN_DIR)/cicAnnotationHelper.opt
+
+.PHONY: install uninstall clean
+
+include .depend