]> matita.cs.unibo.it Git - helm.git/blob - helm/ocaml/cic_notation/Makefile
ocaml 3.09 transition
[helm.git] / helm / ocaml / cic_notation / Makefile
1
2 PACKAGE = cic_notation
3 NULL =
4 REQUIRES = \
5         helm-cic                \
6         helm-utf8_macros        \
7         camlp4.gramlib          \
8         helm-cic_proof_checking \
9         ulex                    \
10         $(NULL)
11 INTERFACE_FILES = \
12         renderingAttrs.mli      \
13         cicNotationUtil.mli     \
14         cicNotationTag.mli      \
15         cicNotationLexer.mli    \
16         cicNotationEnv.mli      \
17         cicNotationPp.mli       \
18         grafiteAstPp.mli        \
19         cicNotationMatcher.mli  \
20         cicNotationFwd.mli      \
21         cicNotationRew.mli      \
22         cicNotationParser.mli   \
23         grafiteParser.mli       \
24         mpresentation.mli       \
25         box.mli                 \
26         cicNotationPres.mli     \
27         boxPp.mli               \
28         cicNotation.mli         \
29         $(NULL)
30 IMPLEMENTATION_FILES = \
31         cicNotationPt.ml        \
32         grafiteAst.ml           \
33         $(patsubst %.mli, %.ml, $(INTERFACE_FILES))     \
34         $(NULL)
35
36 all: test_lexer test_parser test_dep print_grammar
37
38 LOCAL_LINKOPTS = -package helm-cic_notation -linkpkg
39 test: test_lexer test_parser test_dep
40 test_lexer: test_lexer.ml $(PACKAGE).cma
41         $(OCAMLC) $(LOCAL_LINKOPTS) -o $@ $<
42 test_parser: REQUIRES += helm-cic_omdoc
43 test_parser: test_parser.ml $(PACKAGE).cma
44         $(OCAMLC) $(LOCAL_LINKOPTS) -o $@ $<
45 test_dep: test_dep.ml $(PACKAGE).cma
46         $(OCAMLC) $(LOCAL_LINKOPTS) -o $@ $<
47 print_grammar: print_grammar.ml $(PACKAGE).cma
48         $(OCAMLC) $(LOCAL_LINKOPTS) -o $@ $<
49
50 cicNotationLexer.cmo: OCAMLC = $(OCAMLC_P4)
51 cicNotationParser.cmo: OCAMLC = $(OCAMLC_P4)
52 grafiteParser.cmo: OCAMLC = $(OCAMLC_P4)
53 cicNotationLexer.cmx: OCAMLOPT = $(OCAMLOPT_P4)
54 cicNotationParser.cmx: OCAMLOPT = $(OCAMLOPT_P4)
55 grafiteParser.cmx: OCAMLOPT = $(OCAMLOPT_P4)
56 cicNotationParser.ml.annot: OCAMLC = $(OCAMLC_P4)
57 grafiteParser.ml.annot: OCAMLC = $(OCAMLC_P4)
58 cicNotationLexer.ml.annot: OCAMLC = $(OCAMLC_P4)
59 cicNotationPres.cmi: OCAMLOPTIONS += -rectypes
60 cicNotationPres.cmo: OCAMLOPTIONS += -rectypes
61 cicNotationPres.cmx: OCAMLOPTIONS += -rectypes
62
63 clean: extra_clean
64 distclean: extra_clean
65         rm -f macro_table.dump
66 extra_clean:
67         rm -f test_lexer test_parser
68
69 include ../Makefile.common
70 OCAMLARCHIVEOPTIONS += -linkall
71
72 cicNotationParser.expanded.ml: cicNotationParser.ml
73         camlp4 -nolib '-I' '/usr/lib/ocaml/3.08.3/' '-I' '/home/zack/helm/ocaml/urimanager' '-I' '/usr/lib/ocaml/3.08.3/pcre' '-I' '/usr/lib/ocaml/3.08.3/' '-I' '/usr/lib/ocaml/3.08.3/netstring' '-I' '/usr/lib/ocaml/3.08.3/pxp-engine' '-I' '/usr/lib/ocaml/3.08.3/pxp-lex-utf8' '-I' '/usr/lib/ocaml/3.08.3/pxp-lex-iso88591' '-I' '/usr/lib/ocaml/3.08.3/pxp-lex-iso885915' '-I' '/usr/lib/ocaml/3.08.3/http' '-I' '/home/zacchiro/helm/ocaml/pxp' '-I' '/usr/lib/ocaml/3.08.3/zip' '-I' '/usr/lib/ocaml/3.08.3/expat' '-I' '/home/zacchiro/helm/ocaml/xml' '-I' '/home/zack/helm/ocaml/cic' '-I' '/usr/lib/ocaml/3.08.3/camlp4' '-I' '/home/zack/helm/ocaml/utf8_macros' '-I' '/usr/lib/ocaml/3.08.3/camlp4' '-I' '/usr/lib/ocaml/3.08.3/ulex' 'pa_o.cmo' 'pa_op.cmo' 'pr_o.cmo' 'pa_extend.cmo' 'pa_unicode_macro.cma' 'pa_ulex.cma'  $< > $@
74