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