]> matita.cs.unibo.it Git - helm.git/blob - components/binaries/utilities/Makefile
more work for the release
[helm.git] / components / binaries / utilities / Makefile
1 H=@
2
3 UTILITIES = create_environment parse_library list_uris
4 UTILITIES_OPT = $(patsubst %,%.opt,$(UTILITIES))
5 LINKOPTS = -linkpkg -thread
6 LIBS = helm-cic_proof_checking
7 OCAMLC = $(OCAMLFIND) ocamlc $(LINKOPTS) -package $(LIBS)
8 OCAMLOPT = $(OCAMLFIND) opt $(LINKOPTS) -package $(LIBS)
9 all: $(UTILITIES)
10         $(H)echo -n
11 opt: $(UTILITIES_OPT)
12         $(H)echo -n
13 %: %.ml
14         $(H)echo "    OCAMLC $<"
15         $(H)$(OCAMLC) -o $@ $<
16 %.opt: %.ml
17         $(H)echo "    OCAMLOPT $<"
18         $(H)$(OCAMLOPT) -o $@ $<
19 clean:
20         rm -f $(UTILITIES) $(UTILITIES_OPT) *.cm[iox] *.o
21 depend: 
22         $(H)echo "  OCAMLDEP"
23         $(H)ocamldep extractor.ml extractor_manager.ml > .depend
24 depend.opt: 
25         $(H)echo "  OCAMLDEP -native"
26         $(H)ocamldep -native extractor.ml extractor_manager.ml > .depend
27
28 include ../../../Makefile.defs
29