X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Fcic_notation%2FMakefile;h=8a168568f804172e4fc28923ab3291eea6f8a0fa;hb=a6dd077a2b3e4d0c4395c2ee4cc2e1b6d10ab963;hp=9fa417ef550ff73f061c7d12c8b08337c90ef505;hpb=31d7f139796d6597915cd430baf37552dc26511c;p=helm.git diff --git a/helm/ocaml/cic_notation/Makefile b/helm/ocaml/cic_notation/Makefile index 9fa417ef5..8a168568f 100644 --- a/helm/ocaml/cic_notation/Makefile +++ b/helm/ocaml/cic_notation/Makefile @@ -1,30 +1,23 @@ PACKAGE = cic_notation -REQUIRES = \ - helm-utf8_macros \ - ulex NULL = +REQUIRES = \ + helm-cic \ + helm-utf8_macros \ + camlp4.gramlib \ + ulex \ + $(NULL) INTERFACE_FILES = \ cicNotationLexer.mli \ cicNotationParser.mli \ $(NULL) IMPLEMENTATION_FILES = \ + cicNotationPt.ml \ $(patsubst %.mli, %.ml, $(INTERFACE_FILES)) \ $(NULL) all: -cicNotationLexer.cmo: cicNotationLexer.ml cicNotationLexer.cmi - $(OCAMLC_P4) -c $< -cicNotationLexer.cmx: cicNotationLexer.ml cicNotationLexer.cmi - $(OCAMLOPT_P4) -c $< -cicNotationParser.cmo: REQUIRES = helm-utf8_macros camlp4.gramlib -cicNotationParser.cmo: cicNotationParser.ml cicNotationParser.cmi cicNotationLexer.cmi - $(OCAMLC_P4) -c $< -cicNotationParser.cmx: REQUIRES = helm-utf8_macros camlp4.gramlib -cicNotationParser.cmx: cicNotationParser.ml cicNotationParser.cmi cicNotationLexer.cmi - $(OCAMLOPT_P4) -c $< - LOCAL_LINKOPTS = -package helm-cic_notation -linkpkg test: test_lexer test_parser test_lexer: test_lexer.ml $(PACKAGE).cma @@ -32,6 +25,11 @@ test_lexer: test_lexer.ml $(PACKAGE).cma test_parser: test_parser.ml $(PACKAGE).cma $(OCAMLC) $(LOCAL_LINKOPTS) -o $@ $< +cicNotationLexer.cmo: OCAMLC = $(OCAMLC_P4) +cicNotationParser.cmo: OCAMLC = $(OCAMLC_P4) +cicNotationLexer.cmx: OCAMLC = $(OCAMLC_P4) +cicNotationParser.cmx: OCAMLC = $(OCAMLC_P4) + clean: extra_clean distclean: extra_clean rm -f macro_table.dump @@ -48,3 +46,5 @@ disambiguateTypes.cmo: disambiguateTypes.ml disambiguateTypes.cmi disambiguateTypes.cmx: disambiguateTypes.ml disambiguateTypes.cmi $(OCAMLOPT) -c -rectypes $< +cicNotationParser.expanded.ml: cicNotationParser.ml + 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' $< > $@