]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/metadata/table_creator/Makefile
test branch
[helm.git] / helm / ocaml / metadata / table_creator / Makefile
diff --git a/helm/ocaml/metadata/table_creator/Makefile b/helm/ocaml/metadata/table_creator/Makefile
new file mode 100644 (file)
index 0000000..cb8ab76
--- /dev/null
@@ -0,0 +1,31 @@
+REQUIRES = mysql helm-metadata
+OCAMLFIND = ocamlfind
+
+INTERFACE_FILES = 
+IMPLEMENTATION_FILES = $(INTERFACE_FILES:%.mli=%.ml) 
+EXTRA_OBJECTS_TO_INSTALL =
+EXTRA_OBJECTS_TO_CLEAN = \
+       table_creator table_creator.opt table_destructor table_destructor.opt
+
+all: table_creator table_destructor
+opt: table_creator.opt table_destructor.opt
+
+table_creator: table_creator.ml ../metadata.cma
+       $(OCAMLFIND) ocamlc \
+               -thread -package mysql,helm-metadata -linkpkg -o $@ $<
+
+table_destructor: table_creator
+       ln -f $< $@
+
+table_creator.opt: table_creator.ml ../metadata.cmxa
+       $(OCAMLFIND) ocamlopt \
+               -thread -package mysql,helm-metadata -linkpkg -o $@ $<
+
+table_destructor.opt: table_creator.opt
+       ln  -f $< $@
+
+clean:
+       rm -f *.cm[iox] *.a *.o
+       rm -f table_creator table_creator.opt table_destructor table_destructor.opt
+
+include .depend