X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftdb%2Ftools%2FMakefile;h=08a2b0c6cc6c962f355b5356fa06763b490bc0aa;hp=f2a807aa799891ca3a4528d03b8854505982a99e;hb=1f2fc8975204bdedcd3bd17a7410bf8f60783b0d;hpb=176844c84ff5ae6a5f146c5d1b7a3927bd781739 diff --git a/ccan/tdb/tools/Makefile b/ccan/tdb/tools/Makefile index f2a807aa..08a2b0c6 100644 --- a/ccan/tdb/tools/Makefile +++ b/ccan/tdb/tools/Makefile @@ -1,4 +1,4 @@ -LDLIBS:=-lccan +LDLIBS:=../../tdb.o CFLAGS:=-I../../.. -Wall -O3 #-g -pg LDFLAGS:=-L../../.. @@ -7,8 +7,9 @@ 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 $< > $@