]> matita.cs.unibo.it Git - helm.git/blob - helm/ocaml/cic_notation/Makefile
snapshot (first working implementation of parttern matching from level 2
[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         cicNotationUtil.mli     \
13         cicNotationTag.mli      \
14         cicNotationLexer.mli    \
15         cicNotationEnv.mli      \
16         cicNotationPp.mli       \
17         cicNotationFwd.mli      \
18         cicNotationRew.mli      \
19         cicNotationParser.mli   \
20         $(NULL)
21 IMPLEMENTATION_FILES = \
22         cicNotationPt.ml        \
23         $(patsubst %.mli, %.ml, $(INTERFACE_FILES))     \
24         $(NULL)
25
26 all:
27
28 LOCAL_LINKOPTS = -package helm-cic_notation -linkpkg
29 test: test_lexer test_parser
30 test_lexer: test_lexer.ml $(PACKAGE).cma
31         $(OCAMLC) $(LOCAL_LINKOPTS) -o $@ $<
32 test_parser: REQUIRES += helm-cic_omdoc
33 test_parser: test_parser.ml $(PACKAGE).cma
34         $(OCAMLC) $(LOCAL_LINKOPTS) -o $@ $<
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 cicNotationParser.ml.annot: OCAMLC = $(OCAMLC_P4)
41 cicNotationLexer.ml.annot: OCAMLC = $(OCAMLC_P4)
42
43 clean: extra_clean
44 distclean: extra_clean
45         rm -f macro_table.dump
46 extra_clean:
47         rm -f test_lexer test_parser
48
49 include ../Makefile.common
50 OCAMLARCHIVEOPTIONS += -linkall
51
52 cicNotationParser.expanded.ml: cicNotationParser.ml
53         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'  $< > $@
54