tdb2: clean up makefile for tools
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 15 Nov 2010 07:07:03 +0000 (17:37 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 15 Nov 2010 07:07:03 +0000 (17:37 +1030)
ccan/tdb2/tools/Makefile

index 373f1eeb34dec5011db05f4309b16f5ccb093788..c16f27bf79bf59efa0a18ed7ca98d6fc405a31f5 100644 (file)
@@ -1,8 +1,12 @@
-LDLIBS:=../../tdb2.o ../../hash.o ../../tally.o
+OBJS:=../../tdb2.o ../../hash.o ../../tally.o
 CFLAGS:=-I../../.. -Wall -g #-g -O3 #-g -pg
 LDFLAGS:=-L../../..
 
 default: tdbtorture tdbtool mktdb
 
 CFLAGS:=-I../../.. -Wall -g #-g -O3 #-g -pg
 LDFLAGS:=-L../../..
 
 default: tdbtorture tdbtool mktdb
 
+tdbtorture: tdbtorture.c $(OBJS)
+tdbtool: tdbtool.c $(OBJS)
+mktdb: mktdb.c $(OBJS)
+
 clean:
        rm -f tdbtorture tdbtool mktdb
 clean:
        rm -f tdbtorture tdbtool mktdb