X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=Makefile;h=16fd75ad89c4fef43a642432d1232942c8aa7b20;hb=refs%2Ftags%2F0.9.0;hp=538aee3b37c3e53ef133024ea6912859d0eeb313;hpb=65cb807751c21e0befcfd89c1b605675dc280395;p=ocaml-ancient.git diff --git a/Makefile b/Makefile index 538aee3..16fd75a 100644 --- a/Makefile +++ b/Makefile @@ -1,23 +1,27 @@ # Mark objects as 'ancient' so they are taken out of the OCaml heap. -# $Id: Makefile,v 1.7 2006-10-06 12:26:31 rich Exp $ include Makefile.config CC := gcc -CFLAGS := -g -fPIC -Wall -Werror +CFLAGS := -g -fPIC -Wall -Werror \ + -DOCAML_VERSION_MAJOR=$(OCAML_VERSION_MAJOR) \ + -DOCAML_VERSION_MINOR=$(OCAML_VERSION_MINOR) \ + -I$(shell ocamlc -where) OCAMLCFLAGS := -g -OCAMLCPACKAGES := -OCAMLCLIBS := +OCAMLCPACKAGES := -package unix +OCAMLCLIBS := -linkpkg OCAMLOPTFLAGS := OCAMLOPTPACKAGES := $(OCAMLCPACKAGES) -OCAMLOPTLIBS := +OCAMLOPTLIBS := -linkpkg OCAMLDOCFLAGS := -html -stars -sort $(OCAMLCPACKAGES) TARGETS := mmalloc ancient.cma ancient.cmxa META \ - test_ancient.opt test_ancient_shared.opt + test_ancient_dict_write.opt \ + test_ancient_dict_verify.opt \ + test_ancient_dict_read.opt all: $(TARGETS) @@ -27,11 +31,15 @@ ancient.cma: ancient.cmo ancient_c.o ancient.cmxa: ancient.cmx ancient_c.o ocamlmklib -o ancient -Lmmalloc -lmmalloc $^ -test_ancient.opt: ancient.cmxa test_ancient.cmx +test_ancient_dict_write.opt: ancient.cmxa test_ancient_dict_write.cmx LIBRARY_PATH=.:$$LIBRARY_PATH \ ocamlfind ocamlopt $(OCAMLOPTFLAGS) $(OCAMLOPTPACKAGES) $(OCAMLOPTLIBS) -o $@ $^ -test_ancient_shared.opt: ancient.cmxa test_ancient_shared.cmx +test_ancient_dict_verify.opt: ancient.cmxa test_ancient_dict_verify.cmx + LIBRARY_PATH=.:$$LIBRARY_PATH \ + ocamlfind ocamlopt $(OCAMLOPTFLAGS) $(OCAMLOPTPACKAGES) $(OCAMLOPTLIBS) -o $@ $^ + +test_ancient_dict_read.opt: ancient.cmxa test_ancient_dict_read.cmx LIBRARY_PATH=.:$$LIBRARY_PATH \ ocamlfind ocamlopt $(OCAMLOPTFLAGS) $(OCAMLOPTPACKAGES) $(OCAMLOPTLIBS) -o $@ $^ @@ -94,12 +102,7 @@ dist: ls -l $(PACKAGE)-$(VERSION).tar.gz check-manifest: - @for d in `find -type d -name CVS | grep -v '^\./debian/'`; \ - do \ - b=`dirname $$d`/; \ - awk -F/ '$$1 != "D" {print $$2}' $$d/Entries | \ - sed -e "s|^|$$b|" -e "s|^\./||"; \ - done | sort > .check-manifest; \ + git ls-files | sort > .check-manifest; \ sort MANIFEST > .orig-manifest; \ diff -u .orig-manifest .check-manifest; rv=$$?; \ rm -f .orig-manifest .check-manifest; \