3 all: extractor extractor_manager
5 opt: extractor.opt extractor_manager.opt
9 rm -f *.cm[ixo] *.[ao] extractor extractor.opt *.err *.out extractor_manager extractor_manager.opt
11 extractor: extractor.ml
13 $(H)$(OCAMLFIND) ocamlc \
14 -thread -package mysql,helm-metadata,helm-library -linkpkg -rectypes -o $@ $<
16 extractor.opt: extractor.ml
17 $(H)echo " OCAMLOPT $<"
18 $(H)$(OCAMLFIND) ocamlopt \
19 -thread -package mysql,helm-metadata,helm-library -linkpkg -rectypes -o $@ $<
21 extractor_manager: extractor_manager.ml
23 $(H)$(OCAMLFIND) ocamlc \
24 -thread -package mysql,helm-metadata,helm-library -linkpkg -rectypes -o $@ $<
26 extractor_manager.opt: extractor_manager.ml
27 $(H)echo " OCAMLOPT $<"
28 $(H)$(OCAMLFIND) ocamlopt \
29 -thread -package mysql,helm-metadata,helm-library -linkpkg -rectypes -o $@ $<
31 export: extractor.opt extractor_manager.opt
34 ./extractor_manager.opt 1>export.out 2>export.err
38 $(H)ocamldep extractor.ml extractor_manager.ml > .depend
40 $(H)echo " OCAMLDEP -native"
41 $(H)ocamldep -native extractor.ml extractor_manager.ml > .depend.opt
43 ifeq ($(MAKECMDGOALS),)
47 ifeq ($(MAKECMDGOALS), all)
51 ifeq ($(MAKECMDGOALS), opt)
55 include ../../../Makefile.defs