summaryrefslogtreecommitdiffstats
path: root/lib/bind/isc
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2004-09-24 13:42:00 +0000
committerru <ru@FreeBSD.org>2004-09-24 13:42:00 +0000
commit03cf2e6303ec5e66663f310806fbcaceffcb6ad6 (patch)
tree0a66d80ecf04f2810c88e41bc729d46e0caa066f /lib/bind/isc
parent41902e813dab25f45bfc1cb38fc6afdc300a6303 (diff)
downloadFreeBSD-src-03cf2e6303ec5e66663f310806fbcaceffcb6ad6.zip
FreeBSD-src-03cf2e6303ec5e66663f310806fbcaceffcb6ad6.tar.gz
Don't expose BIND libraries and their headers to the public by default,
but have a knob (WANT_BIND_LIBS) to build and install them in /usr/lib and /usr/include. Rumors are that this may be useful at a later point, let's see. What this really means is that all BIND libraries are now internal to buildworld (by default, unless WANT_BIND_LIBS is defined), and linked statically into various BIND executables. While here, removed redundant -I's from CFLAGS in lib/bind makefiles. Sponsored by: des OK'ed by: dougb
Diffstat (limited to 'lib/bind/isc')
-rw-r--r--lib/bind/isc/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/bind/isc/Makefile b/lib/bind/isc/Makefile
index 6fc1a1f..5128769 100644
--- a/lib/bind/isc/Makefile
+++ b/lib/bind/isc/Makefile
@@ -1,7 +1,8 @@
# $FreeBSD$
BIND_DIR= ${.CURDIR}/../../../contrib/bind9
-LIB_BIND_DIR= ${.CURDIR}/..
+LIB_BIND_REL= ..
+LIB_BIND_DIR= ${.CURDIR}/${LIB_BIND_REL}
SRCDIR= ${BIND_DIR}/lib/isc
.include "${LIB_BIND_DIR}/config.mk"
@@ -35,11 +36,12 @@ SRCS+= inet_pton.c \
symtab.c task.c taskpool.c timer.c version.c
CFLAGS+= -I${SRCDIR}/unix/include -I${SRCDIR}/pthreads/include
-CFLAGS+= -I${SRCDIR}/include -I${.CURDIR} -I${.CURDIR}/..
+CFLAGS+= -I${SRCDIR}/include -I${.CURDIR}
DPADD= ${PTHREAD_DPADD}
LDADD= ${PTHREAD_LDADD}
+.if defined(WANT_BIND_LIBS)
INCS= ${SRCDIR}/include/isc/app.h \
${SRCDIR}/include/isc/assertions.h \
${SRCDIR}/include/isc/base64.h \
@@ -120,5 +122,6 @@ INCS= ${SRCDIR}/include/isc/app.h \
isc/platform.h
INCSDIR= ${INCLUDEDIR}/isc
+.endif
.include <bsd.lib.mk>
OpenPOWER on IntegriCloud