]> matita.cs.unibo.it Git - helm.git/blob - helm/ocaml/grafite/Makefile
1. metadata are no longer stored in .moo files.
[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         grafiteMarshal.mli      \
9         $(NULL)
10 IMPLEMENTATION_FILES =          \
11         grafiteAst.ml           \
12         $(INTERFACE_FILES:%.mli=%.ml)
13
14 all: test_parser print_grammar test_dep
15 clean: clean_tests
16
17 # <cross> cross compatibility among ocaml 3.09 and ocaml 3.08, to be removed as
18 # soon as we have ocaml 3.09 everywhere and "loc" occurrences are replaced by
19 # "_loc" occurrences
20 MY_SYNTAXOPTIONS = -pp "camlp4o -I $(UTF8DIR) -I $(ULEXDIR) pa_extend.cmo pa_ulex.cma pa_unicode_macro.cma -loc loc"
21 grafiteParser.cmo: SYNTAXOPTIONS = $(MY_SYNTAXOPTIONS)
22 grafiteParser.cmx: SYNTAXOPTIONS = $(MY_SYNTAXOPTIONS)
23 depend: SYNTAXOPTIONS = $(MY_SYNTAXOPTIONS)
24 # </cross>
25 #
26 grafiteParser.cmo: OCAMLC = $(OCAMLC_P4)
27 grafiteParser.cmx: OCAMLOPT = $(OCAMLOPT_P4)
28
29 clean_tests:
30         rm -f test_parser{,.opt} test_dep{,.opt} print_grammar{,.opt}
31
32 LOCAL_LINKOPTS = -package helm-grafite -linkpkg
33 test: test_parser print_grammar test_dep
34 test_parser: test_parser.ml $(PACKAGE).cma
35         $(OCAMLC) $(LOCAL_LINKOPTS) -o $@ $<
36 print_grammar: print_grammar.ml $(PACKAGE).cma
37         $(OCAMLC) $(LOCAL_LINKOPTS) -o $@ $<
38 test_dep: test_dep.ml $(PACKAGE).cma
39         $(OCAMLC) $(LOCAL_LINKOPTS) -o $@ $<
40
41 include ../Makefile.common
42
43 # <cross> cross compatibility among ocaml 3.09 and ocaml 3.08, to be removed as
44 # soon as we have ocaml 3.09 everywhere and "loc" occurrences are replaced by
45 # "_loc" occurrences
46 UTF8DIR := $(shell $(OCAMLFIND) query helm-utf8_macros)
47 ULEXDIR := $(shell $(OCAMLFIND) query ulex)
48 MY_SYNTAXOPTIONS = -pp "camlp4o -I $(UTF8DIR) -I $(ULEXDIR) pa_extend.cmo pa_ulex.cma pa_unicode_macro.cma -loc loc"
49 cicNotationLexer.cmo: SYNTAXOPTIONS = $(MY_SYNTAXOPTIONS)
50 cicNotationParser.cmo: SYNTAXOPTIONS = $(MY_SYNTAXOPTIONS)
51 cicNotationLexer.cmx: SYNTAXOPTIONS = $(MY_SYNTAXOPTIONS)
52 cicNotationParser.cmx: SYNTAXOPTIONS = $(MY_SYNTAXOPTIONS)
53 cicNotationLexer.ml.annot: SYNTAXOPTIONS = $(MY_SYNTAXOPTIONS)
54 cicNotationParser.ml.annot: SYNTAXOPTIONS = $(MY_SYNTAXOPTIONS)
55 depend: SYNTAXOPTIONS = $(MY_SYNTAXOPTIONS)
56 # </cross>
57