1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-24 21:49:29 +03:00

r17680: make standalone tdb support building and testing in a different

directory to source
(This used to be commit a81a3874e1)
This commit is contained in:
Andrew Tridgell
2006-08-22 01:45:39 +00:00
committed by Gerald (Jerry) Carter
parent 35817c01a8
commit 9a883a6336
2 changed files with 16 additions and 5 deletions

View File

@ -2,24 +2,33 @@
# Makefile for tdb directory
#
CFLAGS = -Iinclude @CFLAGS@
CC = @CC@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
includedir = @includedir@
libdir = @libdir@
VPATH = @srcdir@
srcdir = @srcdir@
builddir = @builddir@
CFLAGS = -I$(srcdir)/include @CFLAGS@
PROGS = bin/tdbtool bin/tdbtorture
TDB_OBJ = common/tdb.o common/dump.o common/io.o common/lock.o \
common/open.o common/traverse.o common/freelist.o common/error.o \
common/transaction.o
all: $(PROGS)
DIRS = lib bin common tools examples
all: dirs $(PROGS)
.c.o:
@echo Compiling $*.c
@$(CC) $(CFLAGS) -c $< -o $@
@mkdir -p `dirname $@`
$(CC) $(CFLAGS) -c $< -o $@
dirs:
@mkdir -p $(DIRS)
install: all
mkdir -p $(bindir)
@ -27,8 +36,8 @@ install: all
mkdir -p $(libdir)
mkdir -p $(libdir)/pkgconfig
cp $(PROGS) $(bindir)
cp include/tdb.h $(includedir)
cp tdb.pc $(libdir)/pkgconfig
cp $(srcdir)/include/tdb.h $(includedir)
cp $(srcdir)/tdb.pc $(libdir)/pkgconfig
bin/tdbtest: tools/tdbtest.o $(TDB_OBJ)
$(CC) $(CFLAGS) -o bin/tdbtest tools/tdbtest.o $(TDB_OBJ) -lgdbm

View File

@ -1,7 +1,9 @@
AC_PREREQ(2.50)
AC_DEFUN([SMB_MODULE_DEFAULT], [echo -n ""])
AC_DEFUN([SMB_LIBRARY_ENABLE], [echo -n ""])
AC_DEFUN([SMB_ENABLE], [echo -n ""])
AC_INIT(include/tdb.h)
AC_CONFIG_SRCDIR([common/tdb.c])
AC_CONFIG_HEADER(include/config.h)
AC_PROG_CC
AC_SYS_LARGEFILE