2 # Makefile for tdb directory
5 CFLAGS
= -Iinclude @CFLAGS@
8 exec_prefix = @
exec_prefix@
10 includedir = @
includedir@
13 PROGS
= bin
/tdbtool bin
/tdbtorture
14 TDB_OBJ
= common
/tdb.o common
/dump.o common
/io.o common
/lock.o \
15 common
/open.o common
/traverse.o common
/freelist.o common
/error.o \
22 @
$(CC
) $(CFLAGS
) -c
$< -o
$@
26 mkdir
-p
$(includedir)
28 mkdir
-p
$(libdir)/pkgconfig
30 cp
include/tdb.h
$(includedir)
31 cp tdb.
pc $(libdir)/pkgconfig
33 bin
/tdbtest
: tools
/tdbtest.o
$(TDB_OBJ
)
34 $(CC
) $(CFLAGS
) -o bin
/tdbtest tools
/tdbtest.o
$(TDB_OBJ
) -lgdbm
36 bin
/tdbtool
: tools
/tdbtool.o
$(TDB_OBJ
)
37 $(CC
) $(CFLAGS
) -o bin
/tdbtool tools
/tdbtool.o
$(TDB_OBJ
)
39 bin
/tdbtorture
: tools
/tdbtorture.o
$(TDB_OBJ
)
40 $(CC
) $(CFLAGS
) -o bin
/tdbtorture tools
/tdbtorture.o
$(TDB_OBJ
)
42 bin
/tdbdump
: tools
/tdbdump.o
$(TDB_OBJ
)
43 $(CC
) $(CFLAGS
) -o bin
/tdbdump tools
/tdbdump.o
$(TDB_OBJ
)
45 bin
/tdbbackup
: tools
/tdbbackup.o
$(TDB_OBJ
)
46 $(CC
) $(CFLAGS
) -o bin
/tdbbackup tools
/tdbbackup.o
$(TDB_OBJ
)
49 rm -f
$(PROGS
) common
/*.o tools
/*.o
*~
*.bak
*/*~
*/*.bak
*% core
test.db
test.tdb
test.gdbm