Compile with OPENSSL.

This commit is contained in:
christos 2006-05-06 17:51:46 +00:00
parent b95d2d1163
commit 449dbee9f0
1 changed files with 8 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.20 2005/10/10 13:26:28 rpaulo Exp $ # $NetBSD: Makefile.inc,v 1.21 2006/05/06 17:51:46 christos Exp $
.if !defined(BIND9_MAKEFILE_INC) .if !defined(BIND9_MAKEFILE_INC)
BIND9_MAKEFILE_INC=yes BIND9_MAKEFILE_INC=yes
@ -6,6 +6,7 @@ BIND9_MAKEFILE_INC=yes
WARNS?= 1 WARNS?= 1
WFORMAT?=2 WFORMAT?=2
NAMED_USE_PTHREADS?=yes NAMED_USE_PTHREADS?=yes
NAMED_USE_OPENSSL?=yes
.include <bsd.own.mk> .include <bsd.own.mk>
@ -56,6 +57,12 @@ CPPFLAGS+= -DLIBINTERFACE=${LIBINTERFACE} \
-DLIBREVISION=${LIBREVISION} -DLIBAGE=${LIBAGE} -DLIBREVISION=${LIBREVISION} -DLIBAGE=${LIBAGE}
.endif .endif
.if ${NAMED_USE_OPENSSL} == "yes"
CPPFLAGS+=-DOPENSSL
LDADD+= -lcrypto
DPADD+= ${LIBCRYPTO}
.endif
.if ${NAMED_USE_PTHREADS} == "yes" .if ${NAMED_USE_PTHREADS} == "yes"
CPPFLAGS+=-DISC_PLATFORM_USETHREADS -I${IDIST}/lib/isc/pthreads/include CPPFLAGS+=-DISC_PLATFORM_USETHREADS -I${IDIST}/lib/isc/pthreads/include
.else .else