1 2# Vendor sources and generated files 3LDNSDIR = ${SRCTOP}/contrib/ldns 4 5PACKAGE=lib${LIB} 6.PATH: ${LDNSDIR} ${LDNSDIR}/compat 7 8LIB= ldns 9PRIVATELIB= true 10 11CFLAGS+= -I${LDNSDIR} 12CFLAGS+= -DOPENSSL_API_COMPAT=0x10100000L 13 14SRCS= buffer.c dane.c dname.c dnssec.c dnssec_sign.c dnssec_verify.c \ 15 dnssec_zone.c duration.c edns.c error.c higher.c host2str.c \ 16 host2wire.c keys.c net.c packet.c parse.c radix.c rbtree.c rdata.c \ 17 resolver.c rr.c rr_functions.c sha1.c sha2.c str2host.c tsig.c \ 18 update.c util.c wire2host.c zone.c 19 20SRCS+= b64_ntop.c b64_pton.c 21 22LIBADD= ssl crypto 23 24WARNS?= 3 25 26CWARNFLAGS.edns.c= ${NO_WSTRICT_PROTOTYPES} 27CWARNFLAGS.parse.c= ${NO_WUSE_AFTER_FREE} 28CWARNFLAGS.sha2.c= ${NO_WARRAY_PARAMETER} 29 30.include <bsd.lib.mk> 31