3 REQUIRES = mysql helm-metadata
6 IMPLEMENTATION_FILES = $(INTERFACE_FILES:%.mli=%.ml)
7 EXTRA_OBJECTS_TO_INSTALL =
8 EXTRA_OBJECTS_TO_CLEAN = \
9 table_creator table_creator.opt table_destructor table_destructor.opt
11 all: table_creator table_destructor
13 opt: table_creator.opt table_destructor.opt
16 table_creator: table_creator.ml
18 $(H)$(OCAMLFIND) ocamlc \
19 -thread -package mysql,helm-metadata -linkpkg -o $@ $<
21 table_destructor: table_creator
24 table_creator.opt: table_creator.ml
25 $(H)echo " OCAMLOPT $<"
26 $(H)$(OCAMLFIND) ocamlopt \
27 -thread -package mysql,helm-metadata -linkpkg -o $@ $<
29 table_destructor.opt: table_creator.opt
33 $(H)rm -f *.cm[iox] *.a *.o
34 $(H)rm -f table_creator table_creator.opt \
35 table_destructor table_destructor.opt
39 $(H)ocamldep table_creator.ml > .depend
41 $(H)echo " OCAMLDEP -native"
42 $(H)ocamldep -native table_creator.ml > .depend
45 include ../../../Makefile.defs