1 PACKAGE = syntax_extensions
3 MAKE_TABLE_PACKAGES = helm-xml
5 # modules which have both a .ml and a .mli
6 INTERFACE_FILES = utf8Macro.mli
7 IMPLEMENTATION_FILES = utf8MacroTable.ml $(INTERFACE_FILES:%.mli=%.ml)
8 EXTRA_OBJECTS_TO_INSTALL =
9 EXTRA_OBJECTS_TO_CLEAN =
11 all: syntax_extensions.cma pa_unicode_macro.cma profiling_macros.cma
13 make_table: make_table.ml
15 $(H)$(OCAMLFIND) ocamlc -rectypes -package $(MAKE_TABLE_PACKAGES) -linkpkg -o $@ $^
18 ./make_table $@ $@.txt
19 utf8MacroTable.cmo: utf8MacroTable.ml
21 $(H)@$(OCAMLFIND) ocamlc -c $<
23 pa_unicode_macro.cmo: pa_unicode_macro.ml utf8Macro.cmo
25 $(H)@$(OCAMLFIND) ocamlc -rectypes -package camlp5 -pp "camlp5o q_MLast.cmo pa_extend.cmo -loc loc" -c $<
26 pa_unicode_macro.cma: utf8MacroTable.cmo utf8Macro.cmo pa_unicode_macro.cmo
28 $(H)@$(OCAMLFIND) ocamlc -a -o $@ $^
30 profiling_macros.cmo: profiling_macros.ml
32 $(H)@$(OCAMLFIND) ocamlc -package camlp5 -pp "camlp5o -loc loc" -c $<
33 profiling_macros.cma:profiling_macros.cmo
35 $(H)@$(OCAMLFIND) ocamlc -a -o $@ $^
40 $(OCAMLFIND) ocamlc -package helm-utf8_macros -syntax camlp5o $< -o $@
43 distclean: extra_clean
47 STATS_EXCLUDE = utf8MacroTable.ml
49 include ../../Makefile.defs
50 include ../Makefile.common