freebsd-nq/lib/bind/lwres/Makefile
Doug Barton a2af6bc259 Fix the WANT_BIND_LIBS knob by correctly spelling it as WITH_BIND_LIBS
to match how similar syntax is used in the ports system. Thanks to kris
for pointing out my mistake here.

Install the lwres library unless the user defines NO_BIND, or the new
knob, NO_BIND_LIBS_LWRES. There is at least one potential customer
for this library in the wings. Thanks to nectar for the reminder.
2004-09-24 18:42:05 +00:00

52 lines
1.3 KiB
Makefile

# $FreeBSD$
BIND_DIR= ${.CURDIR}/../../../contrib/bind9
LIB_BIND_REL= ..
LIB_BIND_DIR= ${.CURDIR}/${LIB_BIND_REL}
SRCDIR= ${BIND_DIR}/lib/lwres
.include "${LIB_BIND_DIR}/config.mk"
LIB= lwres
.PATH: ${SRCDIR}
SRCS+= context.c gai_strerror.c getaddrinfo.c gethost.c \
getipnode.c getnameinfo.c getrrset.c herror.c \
lwbuffer.c lwconfig.c lwpacket.c lwresutil.c \
lwres_gabn.c lwres_gnba.c lwres_grbn.c lwres_noop.c \
lwinetaton.c lwinetpton.c lwinetntop.c print.c
CFLAGS+= -I${SRCDIR}/unix/include -I${SRCDIR}/include
CFLAGS+= -I${.CURDIR}
DPADD= ${PTHREAD_DPADD}
LDADD= ${PTHREAD_LDADD}
# Unlike other BIND libs, this should be installed unless the user says NO.
.if !defined(NO_BIND)
.if !defined(NO_BIND_LIBS_LWRES)
.undef INTERNALLIB
SHLIB_MAJOR= ${LIBINTERFACE}
SHLIB_MINOR= ${LIBINTERFACE}
INCS= ${SRCDIR}/include/lwres/context.h \
${SRCDIR}/include/lwres/int.h \
${SRCDIR}/include/lwres/ipv6.h \
${SRCDIR}/include/lwres/lang.h \
${SRCDIR}/include/lwres/list.h \
${SRCDIR}/include/lwres/lwbuffer.h \
${SRCDIR}/include/lwres/lwpacket.h \
${SRCDIR}/include/lwres/lwres.h \
${SRCDIR}/include/lwres/result.h \
${SRCDIR}/include/lwres/version.h \
${SRCDIR}/unix/include/lwres/net.h \
lwres/netdb.h \
lwres/platform.h
INCSDIR= ${INCLUDEDIR}/lwres
.endif
.endif
.include <bsd.lib.mk>