diff options
author | Ruslan Ermilov <ru@FreeBSD.org> | 2004-09-24 13:42:00 +0000 |
---|---|---|
committer | Ruslan Ermilov <ru@FreeBSD.org> | 2004-09-24 13:42:00 +0000 |
commit | 56216f685b9a1d374e63cb315b6fa427c0c29852 (patch) | |
tree | 0a66d80ecf04f2810c88e41bc729d46e0caa066f /lib/bind/lwres | |
parent | 6d4a0e75fc8eddc49f9e56cb0ee0c31241136ac1 (diff) |
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
Notes
Notes:
svn path=/head/; revision=135739
Diffstat (limited to 'lib/bind/lwres')
-rw-r--r-- | lib/bind/lwres/Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/bind/lwres/Makefile b/lib/bind/lwres/Makefile index c8594c65e0b5..2d3dccfebae1 100644 --- a/lib/bind/lwres/Makefile +++ b/lib/bind/lwres/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/lwres .include "${LIB_BIND_DIR}/config.mk" @@ -16,11 +17,12 @@ SRCS+= context.c gai_strerror.c getaddrinfo.c gethost.c \ lwinetaton.c lwinetpton.c lwinetntop.c print.c CFLAGS+= -I${SRCDIR}/unix/include -I${SRCDIR}/include -CFLAGS+= -I${.CURDIR} -I${.CURDIR}/.. +CFLAGS+= -I${.CURDIR} DPADD= ${PTHREAD_DPADD} LDADD= ${PTHREAD_LDADD} +.if defined(WANT_BIND_LIBS) INCS= ${SRCDIR}/include/lwres/context.h \ ${SRCDIR}/include/lwres/int.h \ ${SRCDIR}/include/lwres/ipv6.h \ @@ -36,5 +38,6 @@ INCS= ${SRCDIR}/include/lwres/context.h \ lwres/platform.h INCSDIR= ${INCLUDEDIR}/lwres +.endif .include <bsd.lib.mk> |