Sync with cat.c from netbsd-8
[minix3.git] / sbin / ping6 / Makefile
blob6d3e93c0af4211b5309290f11408d4ad5ea8bf80
1 # $NetBSD: Makefile,v 1.16 2015/09/09 10:06:05 ozaki-r Exp $
3 .include <bsd.own.mk>
5 USE_FORT?= yes # setuid
6 RUMPPRG= ping6
7 MAN= ping6.8
9 BINOWN= root
10 BINMODE= 4555
12 CPPFLAGS+= -DINET6
13 .if !defined(__MINIX)
14 CPPFLAGS+= -DIPSEC
15 .endif # !defined(__MINIX)
17 .if !defined(__MINIX)
18 LDADD+= -lipsec -lm
19 DPADD+= ${LIBIPSEC} ${LIBM}
20 .else
21 LDADD+= -lm
22 DPADD+= ${LIBM}
23 .endif # defined(__MINIX)
25 .PATH: ${.CURDIR}/../../lib/libc/net
26 RUMPSRCS= getaddrinfo.c getifaddrs.c getnameinfo.c
27 RUMPSRCS+= if_indextoname.c if_nametoindex.c
28 .if (${MKRUMP} != "no")
29 CPPFLAGS+= -DRUMP_ACTION
30 .endif
32 .include <bsd.prog.mk>