Better tdb tracing, start of decent replay_trace.
[ccan] / ccan / tdb / tools / Makefile
index 7c459353a681e6bd1666c533a3977c71af17112a..49e13732cf950f5bdd49c9d77f1398aa4f021371 100644 (file)
@@ -1,8 +1,14 @@
 LDLIBS:=-lccan
 LDLIBS:=-lccan
-CFLAGS:=-I../../.. -Wall -g -pg -O3
+CFLAGS:=-I../../.. -Wall -O3 #-g -pg
 LDFLAGS:=-L../../..
 
 LDFLAGS:=-L../../..
 
-default: replay_trace tdbtorture
+default: replay_trace tdbtorture tdbdump
+
+replay_trace: replay_trace.c keywords.c
+       $(LINK.c) $< $(LOADLIBES) $(LDLIBS) -o $@
+
+keywords.c: keywords.gperf
+       gperf $< > $@
 
 clean:
 
 clean:
-       rm -f replay_trace tdbtorture *.o
+       rm -f replay_trace tdbtorture tdbdump *.o