]> matita.cs.unibo.it Git - helm.git/blobdiff - matitaB/components/content_pres/Makefile
Keeping track of locations of disambiguated ids and symbols.
[helm.git] / matitaB / components / content_pres / Makefile
index 655ffbe8f766f828ae20571cf6c76207aa250231..084940b4dd7c6450eee9c2613631c5e02250887a 100644 (file)
@@ -4,6 +4,8 @@ PREDICATES =
 INTERFACE_FILES =               \
        renderingAttrs.mli       \
        cicNotationLexer.mli     \
+       interpTable.mli          \
+       smallLexer.mli   \
        cicNotationParser.mli    \
        mpresentation.mli        \
        box.mli                  \
@@ -14,7 +16,12 @@ INTERFACE_FILES =             \
        content2pres.mli         \
        $(NULL)
 IMPLEMENTATION_FILES =          \
-       $(INTERFACE_FILES:%.mli=%.ml)
+       $(INTERFACE_FILES:%.mli=%.ml) \
+
+PKGS = -package "$(MATITA_REQUIRES)"
+
+CMOS = $(ML:%.ml=%.cmo)
+$(CMOS) : $(LIB_DEPS)
 
 cicNotationPres.cmi: OCAMLOPTIONS += -rectypes
 cicNotationPres.cmo: OCAMLOPTIONS += -rectypes
@@ -26,10 +33,13 @@ clean:
 LOCAL_LINKOPTS = -package helm-content_pres -linkpkg
 
 cicNotationLexer.cmo: OCAMLC = $(OCAMLC_P4)
+smallLexer.cmo: OCAMLC = $(OCAMLC_P4)
 cicNotationParser.cmo: OCAMLC = $(OCAMLC_P4)
 cicNotationLexer.cmx: OCAMLOPT = $(OCAMLOPT_P4)
+smallLexer.cmx: OCAMLOPT = $(OCAMLOPT_P4)
 cicNotationParser.cmx: OCAMLOPT = $(OCAMLOPT_P4)
 cicNotationLexer.ml.annot: OCAMLC = $(OCAMLC_P4)
+smallLexer.ml.annot: OCAMLC = $(OCAMLC_P4)
 cicNotationParser.ml.annot: OCAMLC = $(OCAMLC_P4)
 
 include ../../Makefile.defs
@@ -42,12 +52,21 @@ UTF8DIR := $(shell $(OCAMLFIND) query helm-syntax_extensions)
 ULEXDIR := $(shell $(OCAMLFIND) query ulex08)
 MY_SYNTAXOPTIONS = -pp "camlp5o -I $(UTF8DIR) -I $(ULEXDIR) pa_extend.cmo pa_ulex.cma pa_unicode_macro.cma -loc loc"
 cicNotationLexer.cmo: SYNTAXOPTIONS = $(MY_SYNTAXOPTIONS)
+smallLexer.cmo: SYNTAXOPTIONS = $(MY_SYNTAXOPTIONS)
 cicNotationParser.cmo: SYNTAXOPTIONS = $(MY_SYNTAXOPTIONS)
 cicNotationLexer.cmx: SYNTAXOPTIONS = $(MY_SYNTAXOPTIONS)
+smallLexer.cmx: SYNTAXOPTIONS = $(MY_SYNTAXOPTIONS)
 cicNotationParser.cmx: SYNTAXOPTIONS = $(MY_SYNTAXOPTIONS)
 cicNotationLexer.ml.annot: SYNTAXOPTIONS = $(MY_SYNTAXOPTIONS)
+smallLexer.ml.annot: SYNTAXOPTIONS = $(MY_SYNTAXOPTIONS)
 cicNotationParser.ml.annot: SYNTAXOPTIONS = $(MY_SYNTAXOPTIONS)
 depend: SYNTAXOPTIONS = $(MY_SYNTAXOPTIONS)
 depend.opt: SYNTAXOPTIONS = $(MY_SYNTAXOPTIONS)
+
+check: check.ml $(LIB_DEPS) $(CMOS)
+       $(H)echo "  OCAMLC $<"
+       $(H)$(OCAMLC) $(PKGS) -linkpkg -o $@ $(CMOS) check.ml
+
+
 # </cross>