]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/cic_disambiguation/Makefile
ocaml 3.09 transition
[helm.git] / helm / ocaml / cic_disambiguation / Makefile
index 4827da66618546818892882f0a56e7e48917c02a..1c80b4e0af8a9113d22340a400cfc7de6831a335 100644 (file)
@@ -1,47 +1,32 @@
 
-PACKAGE = cic_textual_parser2
-REQUIRES = ulex camlp4 pxp
-INTERFACE_FILES = ast.mli pp.mli macro.mli lexer.mli
-NOTATIONS = logic arit
+PACKAGE = cic_disambiguation
+REQUIRES = \
+       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 parser.ml \
+       $(patsubst %.mli, %.ml, $(INTERFACE_FILES)) \
        $(patsubst %,%_notation.ml,$(NOTATIONS))
 
-ULEXDIR := $(shell ocamlfind query ulex)
+all:
 
-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
+clean:
+distclean:
+       rm -f macro_table.dump
 
 include ../Makefile.common
-
-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 gramlib.cma $(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
-       rm -f macro_table.dump
-extra_clean:
-       rm -f test_lexer test_parser make_table
+OCAMLARCHIVEOPTIONS += -linkall
+
+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 $<