r19058: Implement "user cannot change password", and complete "user must change
[Samba.git] / source / tdb / Makefile.in
blob1c23aaeea7fdd4f3ee6680eb6055472cdc8eb004
2 # Makefile for tdb directory
5 CFLAGS = -Iinclude @CFLAGS@
6 CC = @CC@
7 prefix = @prefix@
8 exec_prefix = @exec_prefix@
9 bindir = @bindir@
10 includedir = @includedir@
11 libdir = @libdir@
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
18 all: $(PROGS)
20 .c.o:
21 @echo Compiling $*.c
22 @$(CC) $(CFLAGS) -c $< -o $@
24 install: all
25 mkdir -p $(bindir)
26 mkdir -p $(includedir)
27 mkdir -p $(libdir)
28 mkdir -p $(libdir)/pkgconfig
29 cp $(PROGS) $(bindir)
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)
48 clean:
49 rm -f $(PROGS) common/*.o tools/*.o *~ *.bak */*~ */*.bak *% core test.db test.tdb test.gdbm
51 installcheck: install
52 $(bindir)/tdbtorture
54 test: installcheck