]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/grafite/Makefile
Reshaped structure of ocaml/ libraries.
[helm.git] / helm / ocaml / grafite / Makefile
diff --git a/helm/ocaml/grafite/Makefile b/helm/ocaml/grafite/Makefile
new file mode 100644 (file)
index 0000000..f7cbc9d
--- /dev/null
@@ -0,0 +1,31 @@
+PACKAGE = grafite
+PREDICATES =
+
+INTERFACE_FILES =              \
+       grafiteAstPp.mli        \
+       grafiteParser.mli       \
+       cicNotation.mli         \
+       $(NULL)
+IMPLEMENTATION_FILES =         \
+       grafiteAst.ml           \
+       $(INTERFACE_FILES:%.mli=%.ml)
+
+all: test_parser print_grammar test_dep
+clean: clean_tests
+
+grafiteParser.cmo: OCAMLC = $(OCAMLC_P4)
+grafiteParser.cmx: OCAMLOPT = $(OCAMLOPT_P4)
+
+clean_tests:
+       rm -f test_parser{,.opt} test_dep{,.opt} print_grammar{,.opt}
+
+LOCAL_LINKOPTS = -package helm-grafite -linkpkg
+test: test_parser print_grammar test_dep
+test_parser: test_parser.ml $(PACKAGE).cma
+       $(OCAMLC) $(LOCAL_LINKOPTS) -o $@ $<
+print_grammar: print_grammar.ml $(PACKAGE).cma
+       $(OCAMLC) $(LOCAL_LINKOPTS) -o $@ $<
+test_dep: test_dep.ml $(PACKAGE).cma
+       $(OCAMLC) $(LOCAL_LINKOPTS) -o $@ $<
+
+include ../Makefile.common