1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-09 08:58:35 +03:00

r6442: Add mechanism for configuring ldb independantly of the rest of

Samba using the autoconf tools.
(This used to be commit a8de35ca27e307d1be6ebad517b7012a5de30567)
This commit is contained in:
Jelmer Vernooij 2005-04-23 04:30:58 +00:00 committed by Gerald (Jerry) Carter
parent 2775398b97
commit 499f00b4d9
3 changed files with 25 additions and 22 deletions

View File

@ -1,6 +1,6 @@
# ldap support is optional edit WITH_LDAP to suit
WITH_LDAP=1
CC = @CC@
GCOV = @GCOV@
YODL2MAN = @YODL2MAN@
ifeq ($(WITH_LDAP),1)
OPENLDAP_PREFIX=/usr
@ -20,7 +20,7 @@ CFLAGS1=-Wall -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith \
#GCOV_FLAGS = -ftest-coverage -fprofile-arcs
#GCOV_LIBS = -lgcov
CFLAGS = $(CFLAGS1) $(GCOV_FLAGS)
CFLAGS = $(CFLAGS1) $(GCOV_FLAGS) @CFLAGS@
LIB_FLAGS=-Llib -lldb $(LDAP_LIBS) $(GCOV_LIBS)
@ -79,8 +79,13 @@ bin/ldbrename: tools/ldbrename.o $(LIBS)
bin/ldbtest: tools/ldbtest.o $(LIBS)
$(CC) -o bin/ldbtest tools/ldbtest.o $(LIB_FLAGS)
manpages:
-man/build_manpages.sh
.SUFFIXES: .1 .2 .3 .yo
.yo.3:
echo Creating $@ from $<
-$(YODL2MAN) -o $@ `dirname $<`/`basename $< .yo` || rm -f $@
manpages: $(patsubst %.yo,%.3,$(wildcard man/man3/*.yo))
clean:
rm -f */*.o *.gcov */*.gc?? *~ */*~ $(BINS) $(TDB_OBJ) $(TALLOC_OBJ) $(LDB_LIB) man/man?/*.[13]
@ -103,8 +108,8 @@ test-schema:
test: test-tdb test-ldap test-schema
gcov:
gcov -po ldb_ldap ldb_ldap/*.c 2| tee ldb_ldap.report.gcov
gcov -po ldb_tdb ldb_tdb/*.c 2| tee ldb_tdb.report.gcov
gcov -po common common/*.c 2| tee common.report.gcov
gcov -po modules modules/*.c 2| tee modules.report.gcov
gcov -po tools tools/*.c 2| tee tools.report.gcov
$(GCOV) -po ldb_ldap ldb_ldap/*.c 2| tee ldb_ldap.report.gcov
$(GCOV) -po ldb_tdb ldb_tdb/*.c 2| tee ldb_tdb.report.gcov
$(GCOV) -po common common/*.c 2| tee common.report.gcov
$(GCOV) -po modules modules/*.c 2| tee modules.report.gcov
$(GCOV) -po tools tools/*.c 2| tee tools.report.gcov

View File

@ -0,0 +1,9 @@
AC_DEFUN([SMB_MODULE_DEFAULT], [echo -n ""])
AC_DEFUN([SMB_LIBRARY_ENABLE], [echo -n ""])
AC_INIT(include/ldb.h)
AC_FUNC_MMAP
AC_PATH_PROG(YODL2MAN,yodl2man)
AC_PATH_PROG(GCOV,gcov)
AC_PROG_CC
sinclude(config.m4)
AC_OUTPUT(Makefile)

View File

@ -1,11 +0,0 @@
#!/bin/sh
for f in man/man3/*.yo; do
base=`basename $f .yo`;
man=man/man3/$base.3;
if test $f -nt $man; then
echo Creating $man from $f
yodl2man -o $man $f || rm -f $man
fi
done