]> matita.cs.unibo.it Git - helm.git/blob - matitaB/components/content_pres/Makefile
grafite parser updated
[helm.git] / matitaB / components / content_pres / Makefile
1 PACKAGE = content_pres
2 PREDICATES =
3
4 INTERFACE_FILES =                \
5         cicNotationLexer.mli     \
6         smallLexer.mli   \
7         cicNotationParser.mli    \
8         box.mli                  \
9         content2presMatcher.mli  \
10         termContentPres.mli      \
11         boxPp.mli                \
12         cicNotationPres.mli      \
13         $(NULL)
14 IMPLEMENTATION_FILES =           \
15         $(INTERFACE_FILES:%.mli=%.ml) \
16
17 PKGS = -package "$(MATITA_REQUIRES)"
18
19 #CMOS = $(ML:%.ml=%.cmo)
20 #$(CMOS) : $(LIB_DEPS)
21
22 cicNotationPres.cmi: OCAMLOPTIONS += -rectypes
23 cicNotationPres.cmo: OCAMLOPTIONS += -rectypes
24 cicNotationPres.cmx: OCAMLOPTIONS += -rectypes
25
26 all:
27 clean:
28
29 LOCAL_LINKOPTS = -package helm-content_pres -linkpkg
30
31 cicNotationLexer.cmo: OCAMLC = $(OCAMLC_P4)
32 smallLexer.cmo: OCAMLC = $(OCAMLC_P4)
33 cicNotationParser.cmo: OCAMLC = $(OCAMLC_P4)
34 cicNotationLexer.cmx: OCAMLOPT = $(OCAMLOPT_P4)
35 smallLexer.cmx: OCAMLOPT = $(OCAMLOPT_P4)
36 cicNotationParser.cmx: OCAMLOPT = $(OCAMLOPT_P4)
37 cicNotationLexer.ml.annot: OCAMLC = $(OCAMLC_P4)
38 smallLexer.ml.annot: OCAMLC = $(OCAMLC_P4)
39 cicNotationParser.ml.annot: OCAMLC = $(OCAMLC_P4)
40
41 include ../../Makefile.defs
42 include ../Makefile.common
43
44 # <cross> cross compatibility among ocaml 3.09 and ocaml 3.08, to be removed as
45 # soon as we have ocaml 3.09 everywhere and "loc" occurrences are replaced by
46 # "_loc" occurrences
47 UTF8DIR := $(shell $(OCAMLFIND) query helm-syntax_extensions)
48 ULEXDIR := $(shell $(OCAMLFIND) query ulex08)
49 MY_SYNTAXOPTIONS = -pp "camlp5o -I $(UTF8DIR) -I $(ULEXDIR) pa_extend.cmo pa_ulex.cma pa_unicode_macro.cma -loc loc"
50 cicNotationLexer.cmo: SYNTAXOPTIONS = $(MY_SYNTAXOPTIONS)
51 smallLexer.cmo: SYNTAXOPTIONS = $(MY_SYNTAXOPTIONS)
52 cicNotationParser.cmo: SYNTAXOPTIONS = $(MY_SYNTAXOPTIONS)
53 cicNotationLexer.cmx: SYNTAXOPTIONS = $(MY_SYNTAXOPTIONS)
54 smallLexer.cmx: SYNTAXOPTIONS = $(MY_SYNTAXOPTIONS)
55 cicNotationParser.cmx: SYNTAXOPTIONS = $(MY_SYNTAXOPTIONS)
56 cicNotationLexer.ml.annot: SYNTAXOPTIONS = $(MY_SYNTAXOPTIONS)
57 smallLexer.ml.annot: SYNTAXOPTIONS = $(MY_SYNTAXOPTIONS)
58 cicNotationParser.ml.annot: SYNTAXOPTIONS = $(MY_SYNTAXOPTIONS)
59 depend: SYNTAXOPTIONS = $(MY_SYNTAXOPTIONS)
60 depend.opt: SYNTAXOPTIONS = $(MY_SYNTAXOPTIONS)
61
62 check: check.ml $(LIB_DEPS) $(CMOS)
63         $(H)echo "  OCAMLC $<"
64         $(H)$(OCAMLC) $(PKGS) -linkpkg -o $@ $(CMOS) check.ml
65
66
67 # </cross>
68