xref: /netbsd-src/usr.sbin/rpcbind/Makefile (revision b78992537496bc71ee3d761f9fe0be0fc0a9a001)
1#	$NetBSD: Makefile,v 1.11 2007/08/27 19:53:32 dsl Exp $
2
3.include <bsd.own.mk>
4
5USE_FORT?= yes	# network client
6
7WARNS=4
8PROG=	rpcbind
9MAN=	rpcbind.8
10SRCS=	check_bound.c rpcb_stat.c rpcb_svc_4.c rpcbind.c pmap_svc.c \
11	rpcb_svc.c rpcb_svc_com.c security.c warmstart.c util.c
12
13LIBCDIR=        ${NETBSDSRCDIR}/lib/libc
14LIBCRPCDIR=     ${LIBCDIR}/rpc
15
16CPPFLAGS+=	-I${LIBCRPCDIR} -DPORTMAP -DLIBWRAP
17
18.if (${USE_INET6} != "no")
19CPPFLAGS+=	-DINET6
20.endif
21
22# Uncomment these to get any useful output from 'rpcbind -d'
23# CPPFLAGS+=	-DRPCBIND_DEBUG
24# CPPFLAGS+=	-DSVC_RUN_DEBUG
25
26LDADD+= -lwrap -lutil
27DPADD+= ${LIBWRAP} ${LIBUTIL}
28
29.PATH:  ${LIBCRPCDIR}
30
31.include <bsd.prog.mk>
32