NetBSD/usr.sbin/bind/Makefile.inc

90 lines
2.1 KiB
PHP
Raw Normal View History

# $NetBSD: Makefile.inc,v 1.31 2007/11/05 18:43:42 tls Exp $
2004-05-18 04:10:39 +04:00
.if !defined(BIND9_MAKEFILE_INC)
BIND9_MAKEFILE_INC=yes
2007-05-28 16:06:17 +04:00
USE_FORT?= yes # network client/server
2004-05-18 04:10:39 +04:00
WARNS?= 1
2001-01-07 11:00:54 +03:00
.include <bsd.own.mk>
2006-06-25 07:02:19 +04:00
.if ${MKCRYPTO} == "no"
NAMED_USE_OPENSSL?=no
.endif
NAMED_USE_PTHREADS?=yes
2006-06-25 07:02:19 +04:00
NAMED_USE_OPENSSL?=yes
IDIST= ${NETBSDSRCDIR}/dist/bind
BIND_SRCDIR= ${NETBSDSRCDIR}/usr.sbin/bind
2005-10-10 17:21:43 +04:00
BIND_HTMLDIR= /usr/share/doc/html/bind9
2004-05-18 04:10:39 +04:00
.include "${IDIST}/version"
VERSION=${MAJORVER}.${MINORVER}.${PATCHVER}${RELEASETYPE}${RELEASEVER}
SYSCONFDIR=/etc
LOCALSTATEDIR=/var
1998-10-05 22:01:57 +04:00
CPPFLAGS+=-I${BIND_SRCDIR}/include \
2007-01-28 00:36:13 +03:00
-I${IDIST} \
2004-05-18 04:10:39 +04:00
-I${IDIST}/lib/dns/include -I${IDIST}/lib/dns/unix/include \
-I${IDIST}/lib/isc/include -I${IDIST}/lib/isc/unix/include \
-I${IDIST}/lib/bind9/include \
-I${IDIST}/lib/isccfg/include \
-I${IDIST}/lib/isccc/include \
-I${IDIST}/lib/lwres/include -I${IDIST}/lib/lwres/unix/include \
-I${IDIST}/lib/dns/sec/dst/include \
-DNS_LOCALSTATEDIR=\"${LOCALSTATEDIR}\" \
-DNS_SYSCONFDIR=\"${SYSCONFDIR}\" \
-DVERSION=\"${VERSION}\"
.if (${USE_INET6} != "no")
CPPFLAGS+= -DWANT_IPV6
.endif
.if ${HAVE_GCC} == 4
COPTS+= -Wno-pointer-sign
.endif
.if !defined(LIB) || empty(LIB)
# NOTE: the order of these libraries is important...
LDADD+= -lbind9 -ldns -llwres -lisccfg -lisccc -lisc
DPADD+= ${LIBBIND9} ${LIBDNS} ${LIBLWRES}
DPADD+= ${LIBISCCFG} ${LIBISCCC} ${LIBISC}
.else
CPPFLAGS+= -DLIBINTERFACE=${LIBINTERFACE} \
-DLIBREVISION=${LIBREVISION} -DLIBAGE=${LIBAGE}
.endif
2004-05-18 04:10:39 +04:00
.if ${NAMED_USE_PTHREADS} == "yes"
.if !defined (LIB) || empty(LIB)
2004-05-18 04:10:39 +04:00
LDADD+= -lpthread
DPADD+= ${LIBPTHREAD}
.else
LIBDPLIBS+= pthread ${.CURDIR}/../libpthread
.endif
.endif
1998-10-05 22:01:57 +04:00
2006-05-06 21:51:46 +04:00
.if ${NAMED_USE_OPENSSL} == "yes"
CPPFLAGS+=-DOPENSSL
.if !defined (LIB) || empty(LIB)
2006-05-06 21:51:46 +04:00
LDADD+= -lcrypto
DPADD+= ${LIBCRYPTO}
.else
LIBDPLIBS+= crypto ${.CURDIR}/../libcrypto
.endif
2006-05-06 21:51:46 +04:00
.endif
2004-05-18 04:10:39 +04:00
.if ${NAMED_USE_PTHREADS} == "yes"
CPPFLAGS+=-DISC_PLATFORM_USETHREADS -I${IDIST}/lib/isc/pthreads/include
.else
CPPFLAGS+=-I${IDIST}/lib/isc/nothreads/include
.endif
1998-10-05 22:01:57 +04:00
2004-05-18 04:10:39 +04:00
.if exists(${.CURDIR}/../../Makefile.inc)
.include "${.CURDIR}/../../Makefile.inc"
.endif
.endif