X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Ftdb%2Ftools%2FMakefile;h=08a2b0c6cc6c962f355b5356fa06763b490bc0aa;hb=acf1a21e440b2908df0ce57c48dab1aca9e23cad;hp=56d301cff50f4a139588d35df74b6512da30eb28;hpb=be590188c17bcd9324ba671d74d43a325cff5e70;p=ccan diff --git a/ccan/tdb/tools/Makefile b/ccan/tdb/tools/Makefile index 56d301cf..08a2b0c6 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 +default: replay_trace tdbtorture tdbdump tdbtool 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