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