]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/components/metadata/table_creator/Makefile
- renamed ocaml/ to components/
[helm.git] / helm / software / components / metadata / table_creator / Makefile
diff --git a/helm/software/components/metadata/table_creator/Makefile b/helm/software/components/metadata/table_creator/Makefile
new file mode 100644 (file)
index 0000000..c54e52d
--- /dev/null
@@ -0,0 +1,35 @@
+REQUIRES = mysql helm-metadata
+
+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
+       @echo -n
+opt: table_creator.opt table_destructor.opt
+       @echo -n
+
+table_creator: table_creator.ml ../metadata.cma
+       @echo "    OCAMLC $<"
+       @$(OCAMLFIND) ocamlc \
+               -thread -package mysql,helm-metadata -linkpkg -o $@ $<
+
+table_destructor: table_creator
+       @ln -f $< $@
+
+table_creator.opt: table_creator.ml ../metadata.cmxa
+       @echo "    OCAMLOPT $<"
+       @$(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
+include ../../../Makefile.defs