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