mirror of
https://github.com/samba-team/samba.git
synced 2024-12-29 11:21:54 +03:00
7d52581978
tdb. This includes:
- the new tdb_lockall and tdb_lockall_read code, which will be needed
for the ldb speedups
- the tdb logging changes. This is an intermediate step to keep the
differences between the two branches small. The plan is still to
move to a tdb_init()/tdb_set_logging_function()/tdb_attach() style
of open which will make things much cleaner.
- the updated test suites and standalone tdb build code
- use libreplace headers
There are still some small differences I haven't merged. I'll discuss
those on the list.
(This used to be commit 48903c75ed
)
82 lines
1.7 KiB
Makefile
82 lines
1.7 KiB
Makefile
#!gmake
|
|
#
|
|
# Makefile for tdb directory
|
|
#
|
|
|
|
CC = @CC@
|
|
prefix = @prefix@
|
|
exec_prefix = @exec_prefix@
|
|
bindir = @bindir@
|
|
includedir = @includedir@
|
|
libdir = @libdir@
|
|
VPATH = @srcdir@:@libreplacedir@
|
|
srcdir = @srcdir@
|
|
builddir = @builddir@
|
|
CFLAGS = -I$(srcdir)/include -Iinclude -I@libreplacedir@ @CFLAGS@
|
|
|
|
.PHONY: test
|
|
|
|
PROGS = bin/tdbtool bin/tdbtorture
|
|
TDB_OBJ = @TDBOBJ@ @LIBREPLACEOBJ@
|
|
|
|
DIRS = bin common tools
|
|
|
|
all: showflags dirs $(PROGS)
|
|
|
|
showflags:
|
|
@echo 'tdb will be compiled with flags:'
|
|
@echo ' CFLAGS = $(CFLAGS)'
|
|
@echo ' LIBS = $(LIBS)'
|
|
|
|
.c.o:
|
|
@echo Compiling $*.c
|
|
@mkdir -p `dirname $@`
|
|
@$(CC) $(CFLAGS) -c $< -o $@
|
|
|
|
dirs:
|
|
@mkdir -p $(DIRS)
|
|
|
|
install: all
|
|
mkdir -p $(bindir)
|
|
mkdir -p $(includedir)
|
|
mkdir -p $(libdir)
|
|
mkdir -p $(libdir)/pkgconfig
|
|
cp $(PROGS) $(bindir)
|
|
cp $(srcdir)/include/tdb.h $(includedir)
|
|
cp tdb.pc $(libdir)/pkgconfig
|
|
|
|
libtdb.a: $(TDB_OBJ)
|
|
ar -rv libtdb.a $(TDB_OBJ)
|
|
|
|
bin/tdbtest: tools/tdbtest.o libtdb.a
|
|
$(CC) $(CFLAGS) -o bin/tdbtest tools/tdbtest.o -L. -ltdb -lgdbm
|
|
|
|
bin/tdbtool: tools/tdbtool.o libtdb.a
|
|
$(CC) $(CFLAGS) -o bin/tdbtool tools/tdbtool.o -L. -ltdb
|
|
|
|
bin/tdbtorture: tools/tdbtorture.o libtdb.a
|
|
$(CC) $(CFLAGS) -o bin/tdbtorture tools/tdbtorture.o -L. -ltdb
|
|
|
|
bin/tdbdump: tools/tdbdump.o libtdb.a
|
|
$(CC) $(CFLAGS) -o bin/tdbdump tools/tdbdump.o -L. -ltdb
|
|
|
|
bin/tdbbackup: tools/tdbbackup.o libtdb.a
|
|
$(CC) $(CFLAGS) -o bin/tdbbackup tools/tdbbackup.o -L. -ltdb
|
|
|
|
test: bin/tdbtorture
|
|
bin/tdbtorture
|
|
|
|
installcheck: test install
|
|
|
|
clean:
|
|
rm -f $(PROGS) *.o *.a common/*.o tools/*.o tdb.pc
|
|
rm -f test.db test.tdb torture.tdb test.gdbm
|
|
|
|
distclean: clean
|
|
rm -f *~ */*~
|
|
rm -f config.log config.status include/config.h config.cache
|
|
rm -f Makefile
|
|
|
|
realdistclean: distclean
|
|
rm -f configure include/config.h.in
|