r849: move tdb/tools/Makefile to tdb/Makefile.tdb
authorStefan Metzmacher <metze@samba.org>
Mon, 24 May 2004 16:39:19 +0000 (16:39 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:56:11 +0000 (12:56 -0500)
like in ldb

also fix the makefile to let it compile the tools fine

metze

source/lib/tdb/Makefile.tdb [new file with mode: 0644]
source/lib/tdb/tools/Makefile [deleted file]

diff --git a/source/lib/tdb/Makefile.tdb b/source/lib/tdb/Makefile.tdb
new file mode 100644 (file)
index 0000000..db697e9
--- /dev/null
@@ -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
diff --git a/source/lib/tdb/tools/Makefile b/source/lib/tdb/tools/Makefile
deleted file mode 100644 (file)
index 59fbb07..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-#
-# Makefile for tdb directory
-#
-
-CFLAGS = -DSTANDALONE -DTDB_DEBUG -g -DHAVE_MMAP=1
-CC = gcc
-
-PROGS = tdbtest tdbtool tdbtorture
-TDB_OBJ = tdb.o spinlock.o
-
-default: $(PROGS)
-
-tdbtest: tdbtest.o $(TDB_OBJ)
-       $(CC) $(CFLAGS) -o tdbtest tdbtest.o $(TDB_OBJ) -lgdbm
-
-tdbtool: tdbtool.o $(TDB_OBJ)
-       $(CC) $(CFLAGS) -o tdbtool tdbtool.o $(TDB_OBJ)
-
-tdbtorture: tdbtorture.o $(TDB_OBJ)
-       $(CC) $(CFLAGS) -o tdbtorture tdbtorture.o $(TDB_OBJ)
-
-tdbdump: tdbdump.o $(TDB_OBJ)
-       $(CC) $(CFLAGS) -o tdbdump tdbdump.o $(TDB_OBJ)
-
-tdbbackup: tdbbackup.o $(TDB_OBJ)
-       $(CC) $(CFLAGS) -o tdbbackup tdbbackup.o $(TDB_OBJ)
-
-clean:
-       rm -f $(PROGS) *.o *~ *% core test.db test.tdb test.gdbm