From 1f2fc8975204bdedcd3bd17a7410bf8f60783b0d Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Tue, 2 Feb 2010 13:00:50 +1030 Subject: [PATCH] Use raw .o files rather than -lccan --- ccan/tdb/tools/Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 $< > $@ -- 2.39.2