table_creator: table_creator.ml
$(H)echo " OCAMLC $<"
$(H)$(OCAMLFIND) ocamlc \
- -thread -package mysql,helm-metadata -linkpkg -o $@ $<
+ -thread -package mysql,helm-metadata -linkpkg -rectypes -o $@ $<
table_destructor: table_creator
$(H)ln -f $< $@
table_creator.opt: table_creator.ml
$(H)echo " OCAMLOPT $<"
$(H)$(OCAMLFIND) ocamlopt \
- -thread -package mysql,helm-metadata -linkpkg -o $@ $<
+ -thread -package mysql,helm-metadata -linkpkg -rectypes -o $@ $<
table_destructor.opt: table_creator.opt
$(H)ln -f $< $@
$(H)ocamldep table_creator.ml > .depend
depend.opt:
$(H)echo " OCAMLDEP -native"
- $(H)ocamldep -native table_creator.ml > .depend
+ $(H)ocamldep -native table_creator.ml > .depend.opt
+
+ifeq ($(MAKECMDGOALS),)
+ include .depend
+endif
+
+ifeq ($(MAKECMDGOALS), all)
+ include .depend
+endif
+
+ifeq ($(MAKECMDGOALS), opt)
+ include .depend.opt
+endif
-include .depend
include ../../../Makefile.defs