X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftdb%2Ftools%2FMakefile;h=38899e1aa4df11eac7c507a142ddfcb87de4f191;hp=f2a807aa799891ca3a4528d03b8854505982a99e;hb=b3804e47471640f1f8c15f5013a78bdbeb12f69d;hpb=1122f6d41401cf25691580f492670e1e5439468b diff --git a/ccan/tdb/tools/Makefile b/ccan/tdb/tools/Makefile index f2a807aa..38899e1a 100644 --- a/ccan/tdb/tools/Makefile +++ b/ccan/tdb/tools/Makefile @@ -1,14 +1,15 @@ -LDLIBS:=-lccan +LDLIBS:=../../tdb.o CFLAGS:=-I../../.. -Wall -O3 #-g -pg LDFLAGS:=-L../../.. -default: replay_trace tdbtorture tdbdump tdbtool +default: replay_trace tdbtorture tdbdump tdbtool starvation benchmark: replay_trace @trap "rm -f /tmp/trace.$$$$" 0; for f in benchmarks/*.rz; do if runzip -k $$f -o /tmp/trace.$$$$ && echo -n "$$f": && ./replay_trace --quiet -n 5 replay.tdb /tmp/trace.$$$$ && rm /tmp/trace.$$$$; then rm -f /tmp/trace.$$$$; else exit 1; fi; done -replay_trace: replay_trace.c keywords.c - $(LINK.c) $< $(LOADLIBES) $(LDLIBS) -o $@ +REPLAY_LIBS=$(LDLIBS) ../../str_talloc.o ../../grab_file.o ../../talloc.o ../../noerr.o +replay_trace: replay_trace.c keywords.c $(REPLAY_LIBS) + $(LINK.c) $< $(LOADLIBES) $(REPLAY_LIBS) -o $@ keywords.c: keywords.gperf gperf $< > $@