2 # Makefile for tdb directory
5 CFLAGS
= -DSTANDALONE
-DTDB_DEBUG
-g
-DHAVE_MMAP
=1 -I..
/include
8 ADMINPROGS
= tdbdump tdbbackup
9 PROGS
= tdbtest tdbtool tdbtorture
10 TDB_OBJ
= tdb.o spinlock.o tdbback.o
12 all: $(PROGS
) $(ADMINPROGS
)
15 admintools
: $(ADMINPROGS
)
17 tdbtest
: tdbtest.o
$(TDB_OBJ
)
18 $(CC
) $(CFLAGS
) -o tdbtest tdbtest.o
$(TDB_OBJ
) -lgdbm
20 tdbtool
: tdbtool.o
$(TDB_OBJ
)
21 $(CC
) $(CFLAGS
) -o tdbtool tdbtool.o
$(TDB_OBJ
)
23 tdbtorture
: tdbtorture.o
$(TDB_OBJ
)
24 $(CC
) $(CFLAGS
) -o tdbtorture tdbtorture.o
$(TDB_OBJ
)
26 tdbdump
: tdbdump.o
$(TDB_OBJ
)
27 $(CC
) $(CFLAGS
) -o tdbdump tdbdump.o
$(TDB_OBJ
)
29 tdbbackup
: tdbbackup.o
$(TDB_OBJ
)
30 $(CC
) $(CFLAGS
) -o tdbbackup tdbbackup.o
$(TDB_OBJ
)
33 rm -f
$(PROGS
) *.o
*~
*% core
test.db
test.tdb
test.gdbm