1#	$NetBSD: Makefile,v 1.3 2000/06/20 13:56:43 fvdl Exp $
2# $FreeBSD: stable/10/usr.sbin/rpcbind/Makefile 319243 2017-05-30 17:46:19Z ngie $
3
4.include <bsd.own.mk>
5
6PROG=	rpcbind
7MAN=	rpcbind.8
8SRCS=	check_bound.c rpcb_stat.c rpcb_svc_4.c rpcbind.c pmap_svc.c \
9	rpcb_svc.c rpcb_svc_com.c security.c warmstart.c util.c
10
11CFLAGS+= -DPORTMAP
12
13.if ${MK_INET6_SUPPORT} != "no"
14CFLAGS+= -DINET6
15.endif
16
17.if ${MK_RPCBIND_WARMSTART_SUPPORT} != "no"
18CFLAGS+= -DWARMSTART
19.endif
20
21.if ${MK_TCP_WRAPPERS} != "no"
22CFLAGS+= -DLIBWRAP
23DPADD+=	${LIBWRAP}
24LDADD+=	-lwrap
25.endif
26
27.if ${MK_TESTS} != "no"
28SUBDIR+= tests
29.endif
30
31DPADD+=	${LIBUTIL}
32LDADD+=	-lutil
33
34WARNS?=	1
35
36.include <bsd.prog.mk>
37