]> matita.cs.unibo.it Git - helm.git/blob - helm/annotationHelper/Makefile
First release of cicAnnotationHelper in CVS.
[helm.git] / helm / annotationHelper / Makefile
1 BIN_DIR = /usr/local/bin
2 REQUIRES = lablgtkmathview helm-cic_annotations_cache
3 PREDICATES =
4 OCAMLOPTIONS = -package "$(REQUIRES)" -predicates "$(PREDICATES)"
5 OCAMLC = ocamlfind ocamlc $(OCAMLOPTIONS)
6 OCAMLOPT = ocamlfind ocamlopt $(OCAMLOPTIONS)
7 OCAMLDEP = ocamldep
8
9 all: cicAnnotationHelper
10 opt: cicAnnotationHelper.opt
11
12 DEPOBJS = cicAnnotationHelper.ml
13
14 CICANNOTATIONHELPEROBJS = cicAnnotationHelper.cmo
15
16 depend:
17         $(OCAMLDEP) $(DEPOBJS) > .depend
18
19 cicAnnotationHelper: $(CICANNOTATIONHELPEROBJS)
20         $(OCAMLC)  -linkpkg -o cicAnnotationHelper $(CICANNOTATIONHELPEROBJS)
21
22 cicAnnotationHelper.opt: $(CICANNOTATIONHELPEROBJS:.cmo=.cmx)
23         $(OCAMLOPT) -linkpkg -o cicAnnotationHelper.opt $(CICANNOTATIONHELPEROBJS:.cmo=.cmx)
24
25 .SUFFIXES: .ml .mli .cmo .cmi .cmx
26 .ml.cmo:
27         $(OCAMLC) -c $<
28 .mli.cmi:
29         $(OCAMLC) -c $<
30 .ml.cmx:
31         $(OCAMLOPT) -c $<
32
33 clean:
34         rm -f *.cm[iox] *.o cicAnnotationHelper cicAnnotationHelper.opt
35
36 install:
37         cp cicAnnotationHelper cicAnnotationHelper.opt $(BIN_DIR)
38
39 uninstall:
40         rm -f $(BIN_DIR)/cicAnnotationHelper $(BIN_DIR)/cicAnnotationHelper.opt
41
42 .PHONY: install uninstall clean
43
44 include .depend