xref: /netbsd-src/external/mpl/bind/lib/libdns/Makefile (revision bcda20f65a8566e103791ec395f7f499ef322704)
1*bcda20f6Schristos#	$NetBSD: Makefile,v 1.11 2025/01/26 16:25:52 christos Exp $
2319e934bSchristos
3319e934bSchristosLIB=dns
4319e934bSchristos#USE_SHLIBDIR=   yes
5319e934bSchristos
6319e934bSchristos.include <bsd.own.mk>
7319e934bSchristos
8319e934bSchristos.include "${.CURDIR}/../Makefile.inc"
9319e934bSchristos
10319e934bSchristosDIST=	${IDIST}/lib/dns
11bb5aa156Schristos#.include "${DIST}/mapapi"
12319e934bSchristos
13319e934bSchristosLIBDPLIBS+=	isc	${.CURDIR}/../libisc
14319e934bSchristos
15319e934bSchristos.PATH.c:	${DIST}/unix ${DIST}/sec/dst ${DIST}
16319e934bSchristosCPPFLAGS+=	-I${BIND_SRCDIR}/include/dns -I${DIST}
17d4a20c3eSchristosCPPFLAGS+=	-I${IDIST}/lib/isc
18319e934bSchristos
19319e934bSchristosCWARNFLAGS.clang+=	-Wno-tautological-constant-out-of-range-compare
20319e934bSchristos
21*bcda20f6Schristos.for f in byaddr request validator skr
22319e934bSchristosCOPTS.${f}.c+=  -Wno-pointer-sign -fno-strict-aliasing
23319e934bSchristos.endfor
24319e934bSchristos
25*bcda20f6SchristosDNSSEC_SRCS=    dst_api.c dst_parse.c gssapictx.c hmac_link.c key.c \
26*bcda20f6Schristos		openssl_link.c opensslrsa_link.c opensslecdsa_link.c \
27*bcda20f6Schristos		openssleddsa_link.c
28*bcda20f6Schristos
29319e934bSchristos.if ${MKKERBEROS} != "no"
3099a1c298SchristosDNSSEC_SRCS+=   gssapi_link.c
3176c7fc5fSjoerg
3276c7fc5fSjoergCWARNFLAGS.clang+=	-Wno-error=tautological-constant-compare
33319e934bSchristos.endif
34319e934bSchristos
35a1f9277bSrillig# util.h, ISC_REQUIRE
36a1f9277bSrilligLINTFLAGS+=	-X 129	# expression has null effect
37a1f9277bSrillig# opensslecdsa_link.c, DST_RET does not conform to macro conventions.
38a1f9277bSrilligLINTFLAGS+=	-X 193	# statement not reached
39a1f9277bSrillig# Most casts are to isc__magic_t and thus look intentional.
40a1f9277bSrilligLINTFLAGS+=	-X 247	# pointer cast from '%s' to '%s' may be troublesome
41a1f9277bSrillig# 'uint32_tobuffer(token.value.as_ulong' looks obviously wrong but is used in
42a1f9277bSrillig# a lot of places.
43a1f9277bSrilligLINTFLAGS+=	-X 132	# conversion from '%s' to '%s' may lose accuracy
44a1f9277bSrilligLINTFLAGS+=	-X 298	# conversion from '%s' to '%s' may lose accuracy, arg #%d
45319e934bSchristos
46319e934bSchristosSRCS=   acl.c adb.c badcache.c byaddr.c cache.c callbacks.c catz.c \
47*bcda20f6Schristos	clientinfo.c compress.c client.c dyndb.c ecs.c db.c \
48*bcda20f6Schristos	dbiterator.c diff.c dispatch.c dlz.c dns64.c dnsrps.c \
49*bcda20f6Schristos	dnssec.c ds.c fixedname.c forward.c ipkeylist.c iptable.c \
50*bcda20f6Schristos	journal.c kasp.c keydata.c keymgr.c keystore.c keytable.c \
51*bcda20f6Schristos	log.c master.c masterdump.c message.c name.c nametree.c \
52*bcda20f6Schristos	ncache.c nsec.c nsec3.c nta.c order.c peer.c qp.c qpcache.c \
53*bcda20f6Schristos	qpzone.c rbt.c rbt-cachedb.c rbt-zonedb.c rbtdb.c rcode.c \
54*bcda20f6Schristos	remote.c resconf.c rdata.c rdatalist.c rdataset.c rdatasetiter.c \
55*bcda20f6Schristos	rdataslab.c request.c resolver.c result.c rootns.c rpz.c \
56*bcda20f6Schristos	rriterator.c rrl.c skr.c soa.c ssu.c ssu_external.c stats.c \
57*bcda20f6Schristos	time.c tkey.c transport.c tsig.c ttl.c private.c validator.c \
58*bcda20f6Schristos	view.c xfrin.c zone.c zonekey.c zoneverify.c zt.c sdlz.c \
59*bcda20f6Schristos	update.c ${DNSSEC_SRCS}
60319e934bSchristos
61dd778eebSchristosCOPTS.openssl_link.c+= -Wno-error=deprecated-declarations
62dd778eebSchristosCOPTS.opensslecdsa_link.c+= -Wno-error=deprecated-declarations
63dd778eebSchristosCOPTS.openssleddsa_link.c+= -Wno-error=deprecated-declarations
64dd778eebSchristosCOPTS.opensslrsa_link.c+= -Wno-error=deprecated-declarations
65dd778eebSchristos
66319e934bSchristos.include <bsd.lib.mk>
67