r10405: added transactions into tdb, and hook them into ldb. See my
[ira/wip.git] / source / lib / tdb / Makefile.in
1 #
2 # Makefile for tdb directory
3 #
4
5 CFLAGS = -Iinclude @CFLAGS@
6 CC = @CC@
7 prefix = @prefix@
8 exec_prefix = @exec_prefix@
9 bindir = @bindir@
10 includedir = @includedir@
11 libdir = @libdir@
12
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 \
16         common/transaction.o
17
18 all: $(PROGS)
19
20 install: all
21         mkdir -p $(bindir)
22         mkdir -p $(includedir)
23         mkdir -p $(libdir)
24         cp $(PROGS) $(bindir)
25         cp include/tdb.h $(includedir)
26         cp tdb.pc $(libdir)/pkgconfig
27
28 bin/tdbtest: tools/tdbtest.o $(TDB_OBJ)
29         $(CC) $(CFLAGS) -o bin/tdbtest tools/tdbtest.o $(TDB_OBJ) -lgdbm
30
31 bin/tdbtool: tools/tdbtool.o $(TDB_OBJ)
32         $(CC) $(CFLAGS) -o bin/tdbtool tools/tdbtool.o $(TDB_OBJ)
33
34 bin/tdbtorture: tools/tdbtorture.o $(TDB_OBJ)
35         $(CC) $(CFLAGS) -o bin/tdbtorture tools/tdbtorture.o $(TDB_OBJ)
36
37 bin/tdbdump: tools/tdbdump.o $(TDB_OBJ)
38         $(CC) $(CFLAGS) -o bin/tdbdump tools/tdbdump.o $(TDB_OBJ)
39
40 bin/tdbbackup: tools/tdbbackup.o $(TDB_OBJ)
41         $(CC) $(CFLAGS) -o bin/tdbbackup tools/tdbbackup.o $(TDB_OBJ)
42
43 clean:
44         rm -f $(PROGS) common/*.o tools/*.o *~ *.bak */*~ */*.bak *% core test.db test.tdb test.gdbm
45
46 installcheck: install
47         $(bindir)/tdbtorture
48
49 test: installcheck