]> matita.cs.unibo.it Git - helm.git/blob - helm/ocaml/cic_notation/Makefile
fixed missing -syntax when using ocamlopt
[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         ulex                    \
9         $(NULL)
10 INTERFACE_FILES = \
11         cicNotationLexer.mli    \
12         cicNotationParser.mli   \
13         $(NULL)
14 IMPLEMENTATION_FILES = \
15         cicNotationPt.ml        \
16         $(patsubst %.mli, %.ml, $(INTERFACE_FILES))     \
17         $(NULL)
18
19 all:
20
21 LOCAL_LINKOPTS = -package helm-cic_notation -linkpkg
22 test: test_lexer test_parser
23 test_lexer: test_lexer.ml $(PACKAGE).cma
24         $(OCAMLC) $(LOCAL_LINKOPTS) -o $@ $<
25 test_parser: test_parser.ml $(PACKAGE).cma
26         $(OCAMLC) $(LOCAL_LINKOPTS) -o $@ $<
27
28 cicNotationLexer.cmo: OCAMLC = $(OCAMLC_P4)
29 cicNotationParser.cmo: OCAMLC = $(OCAMLC_P4)
30 cicNotationLexer.cmx: OCAMLOPT = $(OCAMLOPT_P4)
31 cicNotationParser.cmx: OCAMLOPT = $(OCAMLOPT_P4)
32
33 clean: extra_clean
34 distclean: extra_clean
35         rm -f macro_table.dump
36 extra_clean:
37         rm -f test_lexer test_parser
38
39 include ../Makefile.common
40 OCAMLARCHIVEOPTIONS += -linkall
41
42 disambiguateTypes.cmi: disambiguateTypes.mli
43         $(OCAMLC) -c -rectypes $<
44 disambiguateTypes.cmo: disambiguateTypes.ml disambiguateTypes.cmi
45         $(OCAMLC) -c -rectypes $<
46 disambiguateTypes.cmx: disambiguateTypes.ml disambiguateTypes.cmi
47         $(OCAMLOPT) -c -rectypes $<
48
49 cicNotationParser.expanded.ml: cicNotationParser.ml
50         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'  $< > $@