From 1c43e8476607749c16eac502a096f3a1c8395d78 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 24 May 2004 16:39:19 +0000 Subject: r849: move tdb/tools/Makefile to tdb/Makefile.tdb like in ldb also fix the makefile to let it compile the tools fine metze (This used to be commit e3191b54ea583913a9fd21eeb4e57d82e996c847) --- source4/lib/tdb/Makefile.tdb | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 source4/lib/tdb/Makefile.tdb (limited to 'source4/lib/tdb/Makefile.tdb') diff --git a/source4/lib/tdb/Makefile.tdb b/source4/lib/tdb/Makefile.tdb new file mode 100644 index 0000000000..db697e9379 --- /dev/null +++ b/source4/lib/tdb/Makefile.tdb @@ -0,0 +1,29 @@ +# +# Makefile for tdb directory +# + +CFLAGS = -DSTANDALONE -DTDB_DEBUG -g -DHAVE_MMAP=1 -Iinclude +CC = gcc + +PROGS = bin/tdbtest bin/tdbtool bin/tdbtorture +TDB_OBJ = common/tdb.o common/spinlock.o + +default: $(PROGS) + +bin/tdbtest: tools/tdbtest.o $(TDB_OBJ) + $(CC) $(CFLAGS) -o tdbtest tools/tdbtest.o $(TDB_OBJ) -lgdbm + +bin/tdbtool: tools/tdbtool.o $(TDB_OBJ) + $(CC) $(CFLAGS) -o tdbtool tools/tdbtool.o $(TDB_OBJ) + +bin/tdbtorture: tools/tdbtorture.o $(TDB_OBJ) + $(CC) $(CFLAGS) -o tdbtorture tools/tdbtorture.o $(TDB_OBJ) + +bin/tdbdump: tools/tdbdump.o $(TDB_OBJ) + $(CC) $(CFLAGS) -o tdbdump tools/tdbdump.o $(TDB_OBJ) + +bin/tdbbackup: tools/tdbbackup.o $(TDB_OBJ) + $(CC) $(CFLAGS) -o tdbbackup tools/tdbbackup.o $(TDB_OBJ) + +clean: + rm -f $(PROGS) common/*.o *~ *.bak */*~ */*.bak *% core test.db test.tdb test.gdbm -- cgit