Home | History | Annotate | Line # | Download | only in libdns
      1  1.2  christos #	$NetBSD: Makefile,v 1.2 2024/05/08 16:53:34 christos Exp $
      2  1.1  christos 
      3  1.2  christos NOLINT=yes
      4  1.1  christos LIBISPRIVATE=yes
      5  1.1  christos LIB=dns
      6  1.1  christos 
      7  1.1  christos .include <bsd.own.mk>
      8  1.1  christos 
      9  1.1  christos .include "${.CURDIR}/../Makefile.inc"
     10  1.1  christos 
     11  1.1  christos DIST=	${IDIST}/lib/dns
     12  1.1  christos .include "${DIST}/mapapi"
     13  1.1  christos 
     14  1.1  christos LIBDPLIBS+=	isc	${.CURDIR}/../libisc
     15  1.1  christos 
     16  1.1  christos .PATH.c:	${DIST}/unix ${DIST}/sec/dst ${DIST}
     17  1.1  christos CPPFLAGS+=	-I${BIND_SRCDIR}/include/dns -I${DIST}
     18  1.1  christos CPPFLAGS+=	-I${IDIST}/lib/isc
     19  1.1  christos CPPFLAGS+=	-DMAPAPI=\"${MAPAPI}\" -DMAJOR=\"${MAJORVER}.${MINORVER}\"
     20  1.1  christos 
     21  1.1  christos CWARNFLAGS.clang+=	-Wno-tautological-constant-out-of-range-compare
     22  1.1  christos 
     23  1.1  christos .for f in lookup byaddr request sdb validator
     24  1.1  christos COPTS.${f}.c+=  -Wno-pointer-sign -fno-strict-aliasing
     25  1.1  christos .endfor
     26  1.1  christos 
     27  1.1  christos DNSSEC_SRCS=	dst_api.c dst_parse.c dst_result.c \
     28  1.1  christos 	gssapictx.c hmac_link.c key.c openssl_link.c \
     29  1.1  christos 	openssldh_link.c opensslrsa_link.c \
     30  1.1  christos 	opensslecdsa_link.c openssleddsa_link.c
     31  1.1  christos .if ${MKKERBEROS} != "no"
     32  1.1  christos DNSSEC_SRCS+=	gssapi_link.c
     33  1.1  christos 
     34  1.1  christos CWARNFLAGS.clang+=	-Wno-error=tautological-constant-compare
     35  1.1  christos .endif
     36  1.1  christos 
     37  1.1  christos # util.h, ISC_REQUIRE
     38  1.1  christos LINTFLAGS+=	-X 129	# expression has null effect
     39  1.1  christos # opensslecdsa_link.c, DST_RET does not conform to macro conventions.
     40  1.1  christos LINTFLAGS+=	-X 193	# statement not reached
     41  1.1  christos # Most casts are to isc__magic_t and thus look intentional.
     42  1.1  christos LINTFLAGS+=	-X 247	# pointer cast from '%s' to '%s' may be troublesome
     43  1.1  christos # 'uint32_tobuffer(token.value.as_ulong' looks obviously wrong but is used in
     44  1.1  christos # a lot of places.
     45  1.1  christos LINTFLAGS+=	-X 132	# conversion from '%s' to '%s' may lose accuracy
     46  1.1  christos LINTFLAGS+=	-X 298	# conversion from '%s' to '%s' may lose accuracy, arg #%d
     47  1.1  christos 
     48  1.1  christos SRCS=	acl.c adb.c badcache.c byaddr.c cache.c callbacks.c catz.c \
     49  1.1  christos 	clientinfo.c compress.c client.c dyndb.c tsec.c ecdb.c ecs.c \
     50  1.1  christos 	db.c dbiterator.c dbtable.c diff.c dispatch.c dlz.c dns64.c dnsrps.c \
     51  1.1  christos 	dnssec.c \
     52  1.1  christos 	ds.c fixedname.c forward.c ipkeylist.c iptable.c journal.c \
     53  1.1  christos 	kasp.c keydata.c keymgr.c keytable.c lib.c log.c \
     54  1.1  christos 	lookup.c master.c masterdump.c message.c name.c ncache.c nsec.c \
     55  1.1  christos 	nsec3.c nta.c order.c peer.c portlist.c rbt.c rbtdb.c \
     56  1.1  christos 	rcode.c rdata.c rdatalist.c rdataset.c rdatasetiter.c rdataslab.c \
     57  1.1  christos 	request.c resolver.c result.c rootns.c rpz.c rriterator.c rrl.c sdb.c \
     58  1.1  christos 	soa.c ssu.c ssu_external.c stats.c tcpmsg.c time.c timer.c tkey.c \
     59  1.1  christos 	tsig.c ttl.c private.c validator.c version.c view.c xfrin.c zone.c \
     60  1.1  christos 	zonekey.c zoneverify.c zt.c sdlz.c update.c ${DNSSEC_SRCS}
     61  1.1  christos 
     62  1.1  christos COPTS.openssl_link.c+= -Wno-error=deprecated-declarations
     63  1.1  christos COPTS.openssldh_link.c+= -Wno-error=deprecated-declarations
     64  1.1  christos COPTS.openssldsa_link.c+= -Wno-error=deprecated-declarations
     65  1.1  christos COPTS.opensslecdsa_link.c+= -Wno-error=deprecated-declarations
     66  1.1  christos COPTS.openssleddsa_link.c+= -Wno-error=deprecated-declarations
     67  1.1  christos COPTS.opensslrsa_link.c+= -Wno-error=deprecated-declarations
     68  1.1  christos 
     69  1.1  christos .include <bsd.lib.mk>
     70