summaryrefslogtreecommitdiff
path: root/tdb/Makefile
diff options
context:
space:
mode:
authorgreg@kroah.com <greg@kroah.com>2003-08-05 01:26:59 -0700
committerGreg KH <gregkh@suse.de>2005-04-26 21:01:40 -0700
commit5ac4a56b39fed9d95850161864befe612b1a538e (patch)
treecb9ccdb64bbae97f42c94e5d99734709da77703b /tdb/Makefile
parente09292061689b59da68f05eb7a74e353c283078f (diff)
[PATCH] Added tdb code from latest cvs version in the samba tree
Diffstat (limited to 'tdb/Makefile')
-rw-r--r--tdb/Makefile29
1 files changed, 29 insertions, 0 deletions
diff --git a/tdb/Makefile b/tdb/Makefile
new file mode 100644
index 0000000000..59fbb079bd
--- /dev/null
+++ b/tdb/Makefile
@@ -0,0 +1,29 @@
+#
+# 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