2 # Makefile for tdb directory
5 CFLAGS
= -DSTANDALONE
-DTDB_DEBUG
-g
-DHAVE_MMAP
=1
8 PROGS
= tdbtest tdbtool tdbtorture
9 TDB_OBJ
= tdb.o spinlock.o
13 tdbtest
: tdbtest.o
$(TDB_OBJ
)
14 $(CC
) $(CFLAGS
) -o tdbtest tdbtest.o
$(TDB_OBJ
) -lgdbm
16 tdbtool
: tdbtool.o
$(TDB_OBJ
)
17 $(CC
) $(CFLAGS
) -o tdbtool tdbtool.o
$(TDB_OBJ
)
19 tdbtorture
: tdbtorture.o
$(TDB_OBJ
)
20 $(CC
) $(CFLAGS
) -o tdbtorture tdbtorture.o
$(TDB_OBJ
)
22 tdbdump
: tdbdump.o
$(TDB_OBJ
)
23 $(CC
) $(CFLAGS
) -o tdbdump tdbdump.o
$(TDB_OBJ
)
25 tdbbackup
: tdbbackup.o
$(TDB_OBJ
)
26 $(CC
) $(CFLAGS
) -o tdbbackup tdbbackup.o
$(TDB_OBJ
)
29 rm -f
$(PROGS
) *.o
*~
*% core
test.db
test.tdb
test.gdbm