X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Fcic_disambiguation%2FMakefile;h=932008160ac3e0ab045b91a608322e23782ce34c;hb=b4a7a577a04c56a68b6d79d06fdb925ff0bbd331;hp=ec24a4f4d6610ae3a9ba43d471b4b06b2bd9c07c;hpb=0d853dfc19b683f5d37741df405a2db721f7221a;p=helm.git diff --git a/helm/ocaml/cic_disambiguation/Makefile b/helm/ocaml/cic_disambiguation/Makefile index ec24a4f4d..932008160 100644 --- a/helm/ocaml/cic_disambiguation/Makefile +++ b/helm/ocaml/cic_disambiguation/Makefile @@ -1,13 +1,15 @@ PACKAGE = cic_textual_parser2 REQUIRES = \ - helm-tactics helm-logger helm-cic_unification helm-cic_transformations \ - ulex pxp camlp4.gramlib + helm-tactics helm-logger helm-cic_unification helm-cic_transformations helm-pxp \ + ulex camlp4.gramlib NOTATIONS = logic arit tex +# NOTATIONS = logic arit INTERFACE_FILES = \ disambiguateTypes.mli \ disambiguateChoices.mli \ - macro.mli \ + macro_table.mli \ + cicTextualParser2Macro.mli \ cicTextualLexer2.mli \ cicTextualParser2.mli \ disambiguate.mli @@ -18,18 +20,22 @@ IMPLEMENTATION_FILES = \ ULEXDIR := $(shell ocamlfind query ulex) LEXER_P4_OPTS = -I $(ULEXDIR) pa_ulex.cma -PARSER_P4_OPTS = pa_extend.cmo ./macro.cmo ./pa_unicode_macro.cmo +PARSER_P4_OPTS = \ + pa_extend.cmo \ + ./macro_table.cmo \ + ./cicTextualParser2Macro.cmo \ + ./pa_unicode_macro.cmo PA_P4_OPTS = q_MLast.cmo pa_extend.cmo all: cicTextualLexer2.cmo: cicTextualLexer2.ml $(OCAMLC) -pp "camlp4o $(LEXER_P4_OPTS)" -c $< -cicTextualParser2.cmo: cicTextualParser2.ml macro.cmo pa_unicode_macro.cmo +cicTextualParser2.cmo: cicTextualParser2.ml cicTextualParser2Macro.cmo pa_unicode_macro.cmo $(OCAMLC) -pp "camlp4o $(PARSER_P4_OPTS)" -c $< cicTextualLexer2.cmx: cicTextualLexer2.ml $(OCAMLOPT) -pp "camlp4o $(LEXER_P4_OPTS)" -c $< -cicTextualParser2.cmx: cicTextualParser2.ml macro.cmo pa_unicode_macro.cmo +cicTextualParser2.cmx: cicTextualParser2.ml cicTextualParser2Macro.cmo pa_unicode_macro.cmo $(OCAMLOPT) -pp "camlp4o $(PARSER_P4_OPTS)" -c $< %_notation.cmo: %_notation.ml cicTextualParser2.cmo @@ -37,9 +43,9 @@ cicTextualParser2.cmx: cicTextualParser2.ml macro.cmo pa_unicode_macro.cmo %_notation.cmx: %_notation.ml cicTextualParser2.cmx $(OCAMLOPT) -pp "camlp4o $(PARSER_P4_OPTS)" -c $< -pa_unicode_macro.cmo: pa_unicode_macro.ml macro.cmo +pa_unicode_macro.cmo: pa_unicode_macro.ml cicTextualParser2Macro.cmo $(OCAMLC) -pp "camlp4o $(PA_P4_OPTS)" -c $< -pa_unicode_macro.cmx: pa_unicode_macro.ml macro.cmx +pa_unicode_macro.cmx: pa_unicode_macro.ml cicTextualParser2Macro.cmx $(OCAMLOPT) -pp "camlp4o $(PA_P4_OPTS)" -c $< LOCAL_LINKOPTS = -linkpkg $(PACKAGE).cma @@ -49,11 +55,12 @@ test_lexer: test_lexer.ml $(PACKAGE).cma test_parser: test_parser.ml $(PACKAGE).cma $(OCAMLC) $(LOCAL_LINKOPTS) -o $@ $< make_table: make_table.ml - $(OCAMLC) -linkpkg -o $@ $< + $(OCAMLFIND) ocamlc -package helm-pxp -linkpkg -o $@ $^ -.PHONY: macro_table.dump -macro_table.dump: make_table +macro_table.ml: make_table ./make_table $@ +macro_table.cmo: macro_table.ml + $(OCAMLFIND) ocamlc -c $< clean: extra_clean distclean: extra_clean @@ -62,9 +69,10 @@ extra_clean: rm -f test_lexer test_parser make_table include ../Makefile.common +OCAMLARCHIVEOPTIONS += -linkall .PHONY: depend -depend: macro.cmi macro.cmo pa_unicode_macro.cmi pa_unicode_macro.cmo +depend: cicTextualParser2Macro.cmi cicTextualParser2Macro.cmo pa_unicode_macro.cmi pa_unicode_macro.cmo $(OCAMLDEP) -pp "camlp4o $(PARSER_P4_OPTS) $(LEXER_P4_OPTS)" $(INTERFACE_FILES) $(IMPLEMENTATION_FILES) > .depend disambiguateTypes.cmi: disambiguateTypes.mli