]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/Makefile.common.in
Changed type of ids_to_inner_sort table used in transformation.
[helm.git] / helm / ocaml / Makefile.common.in
index 5e30807819f7a4d2c528f78c4439cbb61d20c857..0bae0213f41ac8f2d0eee622a00110167351f37f 100644 (file)
@@ -49,6 +49,10 @@ prereq: $(PREREQ)
 all: prereq $(IMPLEMENTATION_FILES:%.ml=%.cmo) $(ARCHIVE)
 opt: prereq $(IMPLEMENTATION_FILES:%.ml=%.cmx) $(ARCHIVE_OPT)
 world: all opt
+test: test.ml $(ARCHIVE)
+       $(OCAMLC) $(ARCHIVE) -linkpkg -o $@ $<
+test.opt: test.ml $(ARCHIVE_OPT)
+       $(OCAMLOPT) $(ARCHIVE_OPT) -linkpkg -o $@ $<
 
 depend: $(DEPEND_FILES)
        $(OCAMLDEP) $(INTERFACE_FILES) $(IMPLEMENTATION_FILES) > .depend
@@ -65,6 +69,8 @@ $(PACKAGE).ps: .dep.dot
        $(OCAMLC) -c $<
 %.cmx: %.ml
        $(OCAMLOPT) -c $<
+%.annot: %.ml
+       $(OCAMLC) -dtypes $(PKGS) -c $<
 %.ml %.mli: %.mly
        $(OCAMLYACC) $<
 %.ml: %.mll
@@ -75,6 +81,8 @@ $(IMPLEMENTATION_FILES:%.ml=%.cmx): $(LIBRARIES_OPT)
 
 clean:
        rm -f *.cm[ioax] *.cmxa *.o *.a $(EXTRA_OBJECTS_TO_CLEAN)
+       if [ -f test ]; then rm -f test; else true; fi
+       if [ -f test.opt ]; then rm -f test.opt; else true; fi
 
 install:
        mkdir $(OCAMLFIND_DEST_DIR)/$(PACKAGE)