]> matita.cs.unibo.it Git - helm.git/blob - helm/ocaml/grafite/Makefile
Reshaped structure of ocaml/ libraries.
[helm.git] / helm / ocaml / grafite / Makefile
1 PACKAGE = grafite
2 PREDICATES =
3
4 INTERFACE_FILES =               \
5         grafiteAstPp.mli        \
6         grafiteParser.mli       \
7         cicNotation.mli         \
8         $(NULL)
9 IMPLEMENTATION_FILES =          \
10         grafiteAst.ml           \
11         $(INTERFACE_FILES:%.mli=%.ml)
12
13 all: test_parser print_grammar test_dep
14 clean: clean_tests
15
16 grafiteParser.cmo: OCAMLC = $(OCAMLC_P4)
17 grafiteParser.cmx: OCAMLOPT = $(OCAMLOPT_P4)
18
19 clean_tests:
20         rm -f test_parser{,.opt} test_dep{,.opt} print_grammar{,.opt}
21
22 LOCAL_LINKOPTS = -package helm-grafite -linkpkg
23 test: test_parser print_grammar test_dep
24 test_parser: test_parser.ml $(PACKAGE).cma
25         $(OCAMLC) $(LOCAL_LINKOPTS) -o $@ $<
26 print_grammar: print_grammar.ml $(PACKAGE).cma
27         $(OCAMLC) $(LOCAL_LINKOPTS) -o $@ $<
28 test_dep: test_dep.ml $(PACKAGE).cma
29         $(OCAMLC) $(LOCAL_LINKOPTS) -o $@ $<
30
31 include ../Makefile.common