]> matita.cs.unibo.it Git - helm.git/blob - helm/ocaml/cic_notation/Makefile
21c9a4e8c60d734e41bef88cfa18bcab3ea86aa3
[helm.git] / helm / ocaml / cic_notation / Makefile
1
2 PACKAGE = cic_notation
3 NULL =
4 INTERFACE_FILES = \
5         renderingAttrs.mli      \
6         cicNotationUtil.mli     \
7         cicNotationTag.mli      \
8         cicNotationLexer.mli    \
9         cicNotationEnv.mli      \
10         cicNotationPp.mli       \
11         grafiteAstPp.mli        \
12         cicNotationMatcher.mli  \
13         cicNotationFwd.mli      \
14         cicNotationRew.mli      \
15         cicNotationParser.mli   \
16         grafiteParser.mli       \
17         mpresentation.mli       \
18         box.mli                 \
19         cicNotationPres.mli     \
20         boxPp.mli               \
21         cicNotation.mli         \
22         $(NULL)
23 IMPLEMENTATION_FILES = \
24         cicNotationPt.ml        \
25         grafiteAst.ml           \
26         $(patsubst %.mli, %.ml, $(INTERFACE_FILES))     \
27         $(NULL)
28
29 all: test_lexer test_parser test_dep print_grammar
30
31 LOCAL_LINKOPTS = -package helm-cic_notation -linkpkg
32 test: test_lexer test_parser test_dep
33 test_lexer: test_lexer.ml $(PACKAGE).cma
34         $(OCAMLC) $(LOCAL_LINKOPTS) -o $@ $<
35 test_parser: REQUIRES += helm-cic_omdoc
36 test_parser: test_parser.ml $(PACKAGE).cma
37         $(OCAMLC) $(LOCAL_LINKOPTS) -o $@ $<
38 test_dep: test_dep.ml $(PACKAGE).cma
39         $(OCAMLC) $(LOCAL_LINKOPTS) -o $@ $<
40 print_grammar: print_grammar.ml $(PACKAGE).cma
41         $(OCAMLC) $(LOCAL_LINKOPTS) -o $@ $<
42
43 cicNotationLexer.cmo: OCAMLC = $(OCAMLC_P4)
44 cicNotationParser.cmo: OCAMLC = $(OCAMLC_P4)
45 grafiteParser.cmo: OCAMLC = $(OCAMLC_P4)
46 cicNotationLexer.cmx: OCAMLOPT = $(OCAMLOPT_P4)
47 cicNotationParser.cmx: OCAMLOPT = $(OCAMLOPT_P4)
48 grafiteParser.cmx: OCAMLOPT = $(OCAMLOPT_P4)
49 cicNotationParser.ml.annot: OCAMLC = $(OCAMLC_P4)
50 grafiteParser.ml.annot: OCAMLC = $(OCAMLC_P4)
51 cicNotationLexer.ml.annot: OCAMLC = $(OCAMLC_P4)
52 cicNotationPres.cmi: OCAMLOPTIONS += -rectypes
53 cicNotationPres.cmo: OCAMLOPTIONS += -rectypes
54 cicNotationPres.cmx: OCAMLOPTIONS += -rectypes
55
56 clean: extra_clean
57 distclean: extra_clean
58         rm -f macro_table.dump
59 extra_clean:
60         rm -f test_lexer test_parser
61
62 include ../Makefile.common
63 OCAMLARCHIVEOPTIONS += -linkall
64
65 cicNotationParser.expanded.ml: cicNotationParser.ml
66         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'  $< > $@
67