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