1 PACKAGE = grafite_parser
5 dependenciesParser.mli \
8 grafiteDisambiguator.mli \
9 grafiteDisambiguate.mli \
12 IMPLEMENTATION_FILES = $(INTERFACE_FILES:%.mli=%.ml)
14 all: test_parser print_grammar test_dep
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
20 UTF8DIR = $(shell $(OCAMLFIND) query helm-syntax_extensions)
21 ULEXDIR = $(shell $(OCAMLFIND) query ulex08)
22 MY_SYNTAXOPTIONS = -pp "camlp5o -I $(UTF8DIR) -I $(ULEXDIR) pa_extend.cmo pa_ulex.cma pa_unicode_macro.cma -loc loc"
23 grafiteParser.cmo: SYNTAXOPTIONS = $(MY_SYNTAXOPTIONS)
24 grafiteParser.cmx: SYNTAXOPTIONS = $(MY_SYNTAXOPTIONS)
25 depend: SYNTAXOPTIONS = $(MY_SYNTAXOPTIONS)
26 depend.opt: SYNTAXOPTIONS = $(MY_SYNTAXOPTIONS)
29 grafiteParser.cmo: OCAMLC = $(OCAMLC_P4)
30 grafiteParser.cmx: OCAMLOPT = $(OCAMLOPT_P4)
33 rm -f test_parser{,.opt} test_dep{,.opt} print_grammar{,.opt}
35 LOCAL_LINKOPTS = -package helm-$(PACKAGE) -linkpkg
36 test: test_parser print_grammar test_dep
37 test_parser: test_parser.ml $(PACKAGE).cma
39 @$(OCAMLC) $(LOCAL_LINKOPTS) -o $@ $<
40 print_grammar: print_grammar.ml $(PACKAGE).cma
42 @$(OCAMLC) $(LOCAL_LINKOPTS) -o $@ $<
43 test_dep: test_dep.ml $(PACKAGE).cma
45 @$(OCAMLC) $(LOCAL_LINKOPTS) -o $@ $<
47 include ../../Makefile.defs
48 include ../Makefile.common