X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Fcic_disambiguation%2FMakefile;h=1c80b4e0af8a9113d22340a400cfc7de6831a335;hb=4167cea65ca58897d1a3dbb81ff95de5074700cc;hp=11da724694d4c626a927c63a14fd930108aacb1b;hpb=aba014724c9ad08f80944ec3021c9fa3826dca4a;p=helm.git diff --git a/helm/ocaml/cic_disambiguation/Makefile b/helm/ocaml/cic_disambiguation/Makefile index 11da72469..1c80b4e0a 100644 --- a/helm/ocaml/cic_disambiguation/Makefile +++ b/helm/ocaml/cic_disambiguation/Makefile @@ -1,61 +1,32 @@ -PACKAGE = cic_textual_parser2 +PACKAGE = cic_disambiguation REQUIRES = \ - ulex pxp helm-tactics helm-cic helm-logger helm-cic_unification \ - camlp4.gramlib -NOTATIONS = logic arit -INTERFACE_FILES = \ - ast.mli pp.mli macro.mli lexer.mli disambiguate.mli parser.mli \ - disambiguate_types.mli + helm-tactics helm-logger helm-cic_unification helm-cic_notation \ + helm-utf8_macros \ + ulex +NOTATIONS = number +INTERFACE_FILES = \ + disambiguateTypes.mli \ + disambiguateChoices.mli \ + disambiguatePp.mli \ + disambiguate.mli IMPLEMENTATION_FILES = \ - pp.ml macro.ml lexer.ml disambiguate_struct.ml parser.ml \ - disambiguate.ml \ - $(patsubst %,%_notation.ml,$(NOTATIONS)) \ - -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 -PA_P4_OPTS = q_MLast.cmo pa_extend.cmo + $(patsubst %.mli, %.ml, $(INTERFACE_FILES)) \ + $(patsubst %,%_notation.ml,$(NOTATIONS)) all: -lexer.cmo: lexer.ml - $(OCAMLC) -pp "camlp4o $(LEXER_P4_OPTS)" -c $< -parser.cmo: parser.ml macro.cmo pa_unicode_macro.cmo - $(OCAMLC) -pp "camlp4o $(PARSER_P4_OPTS)" -c $< - -%_notation.cmo: %_notation.ml parser.cmo - $(OCAMLC) -pp "camlp4o $(PARSER_P4_OPTS)" -c $< - -pa_unicode_macro.cmo: pa_unicode_macro.ml macro.cmo - $(OCAMLC) -pp "camlp4o $(PA_P4_OPTS)" -c $< - -LOCAL_LINKOPTS = -linkpkg $(PACKAGE).cma -test: test_lexer test_parser -test_lexer: test_lexer.ml $(PACKAGE).cma - $(OCAMLC) $(LOCAL_LINKOPTS) -o $@ $< -test_parser: test_parser.ml $(PACKAGE).cma - $(OCAMLC) $(LOCAL_LINKOPTS) -o $@ $< -make_table: make_table.ml - $(OCAMLC) -linkpkg -o $@ $< - -.PHONY: macro_table.dump -macro_table.dump: make_table - ./make_table $@ - -clean: extra_clean -distclean: extra_clean +clean: +distclean: rm -f macro_table.dump -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 - $(OCAMLDEP) -pp "camlp4o $(PARSER_P4_OPTS) $(LEXER_P4_OPTS)" $(INTERFACE_FILES) $(IMPLEMENTATION_FILES) > .depend - -disambiguate_types.cmi: disambiguate_types.mli +disambiguateTypes.cmi: disambiguateTypes.mli + $(OCAMLC) -c -rectypes $< +disambiguateTypes.cmo: disambiguateTypes.ml disambiguateTypes.cmi $(OCAMLC) -c -rectypes $< +disambiguateTypes.cmx: disambiguateTypes.ml disambiguateTypes.cmi + $(OCAMLOPT) -c -rectypes $<