2 RELEASENAME=vmlog-$(VERSION)
3 TARBALL=releases/$(RELEASENAME).tar.gz
5 CFLAGS=-g -ansi -std=c99 -pedantic -Wall -Wno-long-long -Wno-unused-function -I/home/edwin/local/classpath/include
6 #CFLAGS_TOOL=-O2 -DNDEBUG -ansi -std=c99 -march=pentium4m -pedantic -Wall -Wno-long-long
7 CFLAGS_TOOL=-g3 -pedantic -ansi -std=c99 -Wall -Wno-long-long -Wno-unused-function
9 all: vmlog.o vmlogdump vmlogindex vmlogdiff
11 runtests: t/hash.run t/memdup.run t/string.run t/threadhash.run t/file.run t/log.run t/concat.run t/ring.run t/opt.run t/tags.run
13 test: cleantests runtests
17 @rm -f TESTIDX TESTSTR TESTLOG? TESTFILE TESTRESULTS
19 %.run: %.c t/prolog.h vmlog.c vmlog.h
20 $(CC) $(CFLAGS) -I. -o $* $<
22 { $* || echo "FAILED: exitcode == $$?" ; } | uniq -c >>TESTRESULTS
24 vmlogdump: vmlogdump.c vmlog.c vmlog.h
25 $(CC) $(CFLAGS_TOOL) -o $@ vmlogdump.c vmlog.c
26 vmlogindex: vmlogindex.c vmlog.c vmlog.h
27 $(CC) $(CFLAGS_TOOL) -o $@ vmlogindex.c vmlog.c
28 vmlogdiff: vmlogdiff.c vmlog.c vmlog.h
29 $(CC) $(CFLAGS_TOOL) -o $@ vmlogdiff.c vmlog.c
32 cscope -b *.[ch] t/*.[ch]
36 rm -f vmlogdump vmlogindex vmlogdiff
38 rm -f t/hash t/memdup t/string t/threadhash t/file t/log t/concat t/ring t/opt t/tags
41 if (cg-status | grep ^[AMD]) ; then echo "difference to repository!"; exit 1; else /bin/true ; fi
43 distprep: clean all test clean
45 cp -a --parents `git-ls-files` $(RELEASENAME)
46 tar cfz $(TARBALL) $(RELEASENAME)/*
49 dist: checkedin distprep