56216f685b
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
29 lines
546 B
Makefile
29 lines
546 B
Makefile
# $FreeBSD$
|
|
|
|
BIND_DIR= ${.CURDIR}/../../../contrib/bind9
|
|
LIB_BIND_REL= ..
|
|
LIB_BIND_DIR= ${.CURDIR}/${LIB_BIND_REL}
|
|
SRCDIR= ${BIND_DIR}/lib/bind9
|
|
|
|
.include "${LIB_BIND_DIR}/config.mk"
|
|
|
|
LIB= bind9
|
|
|
|
.PATH: ${SRCDIR}
|
|
SRCS= check.c getaddresses.c version.c
|
|
|
|
CFLAGS+= -I${SRCDIR}/include
|
|
|
|
DPADD= ${PTHREAD_DPADD}
|
|
LDADD= ${PTHREAD_LDADD}
|
|
|
|
.if defined(WANT_BIND_LIBS)
|
|
INCS= ${SRCDIR}/include/bind9/check.h \
|
|
${SRCDIR}/include/bind9/getaddresses.h \
|
|
${SRCDIR}/include/bind9/version.h
|
|
|
|
INCSDIR= ${INCLUDEDIR}/bind9
|
|
.endif
|
|
|
|
.include <bsd.lib.mk>
|