X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftdb%2Ftools%2FMakefile;h=d7611a2b0fd08a709eb86a56af2b52e7cb7646ca;hp=67b86f717479fa0e4211a16553b863334beaadfa;hb=c4c5fed020ba44b9930119672a36a1cb33aff090;hpb=6065776a15d6a54a2b5af9752226e5128cb13fe4 diff --git a/ccan/tdb/tools/Makefile b/ccan/tdb/tools/Makefile index 67b86f71..d7611a2b 100644 --- a/ccan/tdb/tools/Makefile +++ b/ccan/tdb/tools/Makefile @@ -1,14 +1,15 @@ -LDLIBS:=-lccan +LDLIBS:=../../tdb.o ../../tally.o CFLAGS:=-I../../.. -Wall -O3 #-g -pg LDFLAGS:=-L../../.. -default: replay_trace tdbtorture tdbdump tdbtool +default: replay_trace tdbtorture tdbdump tdbtool starvation mktdb 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 $< > $@ @@ -29,4 +30,4 @@ check: replay_trace @sed 's/\(^[0-9]* traverse\) .*/\1fn/' < $^ > $@ clean: - rm -f replay_trace tdbtorture tdbdump *.o + rm -f replay_trace tdbtorture tdbdump tdbtool *.o