1# $NetBSD: Makefile,v 1.18 2023/06/03 09:09:23 lukem Exp $ 2 3.include <bsd.own.mk> 4 5USE_FORT?= yes # network client 6 7PROG= rpcbind 8MAN= rpcbind.8 9SRCS= check_bound.c rpcb_stat.c rpcb_svc_4.c rpcbind.c pmap_svc.c \ 10 rpcb_svc.c rpcb_svc_com.c security.c warmstart.c util.c 11 12LIBCDIR= ${NETBSDSRCDIR}/lib/libc 13LIBCRPCDIR= ${LIBCDIR}/rpc 14 15CPPFLAGS+= -I${LIBCRPCDIR} -DPORTMAP -DLIBWRAP -DWARMSTART 16 17.if (${USE_INET6} != "no") 18CPPFLAGS+= -DINET6 19.endif 20 21.if (${USE_YP} != "no") 22CPPFLAGS+= -DYP 23.endif 24 25# Uncomment these to get any useful output from 'rpcbind -d' 26# CPPFLAGS+= -DRPCBIND_DEBUG 27# CPPFLAGS+= -DDEBUG_RMTCALL 28# CPPFLAGS+= -DSVC_RUN_DEBUG 29 30LDADD+= -lwrap -lblocklist -lutil 31DPADD+= ${LIBWRAP} ${LIBBLOCKLIST} ${LIBUTIL} 32 33COPTS.rpcb_svc_4.c+= ${CC_WNO_CAST_FUNCTION_TYPE} 34COPTS.pmap_svc.c+= ${CC_WNO_CAST_FUNCTION_TYPE} 35COPTS.rpcb_svc.c+= ${CC_WNO_CAST_FUNCTION_TYPE} 36COPTS.rpcb_svc_com.c+= ${CC_WNO_CAST_FUNCTION_TYPE} 37 38.PATH: ${LIBCRPCDIR} 39 40.include <bsd.prog.mk> 41