NetBSD/usr.sbin/rpcbind/Makefile
mrg de11d87641 introduce some common variables for use in GCC warning disables:
GCC_NO_FORMAT_TRUNCATION    -Wno-format-truncation (GCC 7/8)
GCC_NO_STRINGOP_TRUNCATION  -Wno-stringop-truncation (GCC 8)
GCC_NO_STRINGOP_OVERFLOW    -Wno-stringop-overflow (GCC 8)
GCC_NO_CAST_FUNCTION_TYPE   -Wno-cast-function-type (GCC 8)

use these to turn off warnings for most GCC-8 complaints.  many
of these are false positives, most of the real bugs are already
commited, or are yet to come.


we plan to introduce versions of (some?) of these that use the
"-Wno-error=" form, which still displays the warnings but does
not make it an error, and all of the above will be re-considered
as either being "fix me" (warning still displayed) or "warning
is wrong."
2019-10-13 07:28:04 +00:00

40 lines
911 B
Makefile

# $NetBSD: Makefile,v 1.16 2019/10/13 07:28:20 mrg Exp $
.include <bsd.own.mk>
USE_FORT?= yes # network client
PROG= rpcbind
MAN= rpcbind.8
SRCS= check_bound.c rpcb_stat.c rpcb_svc_4.c rpcbind.c pmap_svc.c \
rpcb_svc.c rpcb_svc_com.c security.c warmstart.c util.c
LIBCDIR= ${NETBSDSRCDIR}/lib/libc
LIBCRPCDIR= ${LIBCDIR}/rpc
CPPFLAGS+= -I${LIBCRPCDIR} -DPORTMAP -DLIBWRAP
.if (${USE_INET6} != "no")
CPPFLAGS+= -DINET6
.endif
.if (${USE_YP} != "no")
CPPFLAGS+= -DYP
.endif
# Uncomment these to get any useful output from 'rpcbind -d'
# CPPFLAGS+= -DRPCBIND_DEBUG
# CPPFLAGS+= -DSVC_RUN_DEBUG
LDADD+= -lwrap -lutil
DPADD+= ${LIBWRAP} ${LIBUTIL}
COPTS.rpcb_svc_4.c+= ${GCC_NO_CAST_FUNCTION_TYPE}
COPTS.pmap_svc.c+= ${GCC_NO_CAST_FUNCTION_TYPE}
COPTS.rpcb_svc.c+= ${GCC_NO_CAST_FUNCTION_TYPE}
COPTS.rpcb_svc_com.c+= ${GCC_NO_CAST_FUNCTION_TYPE}
.PATH: ${LIBCRPCDIR}
.include <bsd.prog.mk>