From 03cf2e6303ec5e66663f310806fbcaceffcb6ad6 Mon Sep 17 00:00:00 2001 From: ru Date: Fri, 24 Sep 2004 13:42:00 +0000 Subject: 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 --- lib/bind/isccfg/Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lib/bind/isccfg') diff --git a/lib/bind/isccfg/Makefile b/lib/bind/isccfg/Makefile index b37a700..86adb54 100644 --- a/lib/bind/isccfg/Makefile +++ b/lib/bind/isccfg/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/isccfg .include "${LIB_BIND_DIR}/config.mk" @@ -11,11 +12,12 @@ LIB= isccfg .PATH: ${SRCDIR} SRCS= log.c namedconf.c parser.c version.c -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/isccfg/cfg.h \ ${SRCDIR}/include/isccfg/grammar.h \ ${SRCDIR}/include/isccfg/log.h \ @@ -23,5 +25,6 @@ INCS= ${SRCDIR}/include/isccfg/cfg.h \ ${SRCDIR}/include/isccfg/version.h INCSDIR= ${INCLUDEDIR}/isccfg +.endif .include -- cgit v1.1