]> matita.cs.unibo.it Git - helm.git/blob - helm/metadata/create2/touch/Makefile
Version 1.2.1beta => 1.2.1
[helm.git] / helm / metadata / create2 / touch / Makefile
1 OCAMLOPTIONS = -package netstring -package netclient -package pxp
2
3 OCAMLDEP = ocamldep
4 OCAMLFIND = ocamlfind
5 OCAMLC = $(OCAMLFIND) ocamlc $(OCAMLOPTIONS)
6 OCAMLOPT = $(OCAMLFIND) ocamlopt $(OCAMLOPTIONS)
7
8 all: touch
9 opt: touch.opt
10
11 DEPOBJS = csc_pxp_reader.ml configuration.ml \
12           clientHTTP.ml clientHTTP.mli cic.ml deannotate.ml \
13           uriManager.ml uriManager.mli getter.ml getter.mli \
14           pxpUriResolver.ml cicParser3.ml cicParser3.mli \
15           cicParser2.ml cicParser2.mli cicParser.ml \
16           cicParser.mli touch.ml
17
18 TOUCHOBJS = csc_pxp_reader.cmo configuration.cmo \
19             clientHTTP.cmo cic.cmo deannotate.cmo \
20             uriManager.cmo getter.cmo pxpUriResolver.ml \
21             cicParser3.cmo cicParser2.cmo cicParser.cmo \
22             touch.cmo
23
24 depend:
25         $(OCAMLDEP) $(DEPOBJS) > .depend
26
27 touch: $(TOUCHOBJS)
28         $(OCAMLC) -linkpkg -o touch $(TOUCHOBJS)
29
30 touch.opt: $(TOUCHOBJS:.cmo=.cmx)
31         $(OCAMLOPT) -linkpkg -o touch.opt $(TOUCHOBJS:.cmo=.cmx)
32
33 .SUFFIXES: .ml .mli .cmo .cmi .cmx
34 .ml.cmo:
35         $(OCAMLC) -c $<
36 .mli.cmi:
37         $(OCAMLC) -c $<
38 .ml.cmx:
39         $(OCAMLOPT) -c $<
40
41 clean:
42         rm -f *.cm[iox] *.o touch touch.opt
43
44 .PHONY: clean
45
46 include .depend