2014-05-06 06:22:01 +02:00
|
|
|
.include <src.opts.mk>
|
2014-02-04 22:43:53 +01:00
|
|
|
|
2016-02-09 21:19:31 +01:00
|
|
|
PACKAGE=runtime
|
1994-05-26 08:35:07 +02:00
|
|
|
PROG= ping
|
2020-11-29 00:24:19 +01:00
|
|
|
SRCS= main.c
|
2001-03-26 16:33:27 +02:00
|
|
|
MAN= ping.8
|
2001-09-13 08:48:18 +02:00
|
|
|
BINOWN= root
|
1994-05-26 08:35:07 +02:00
|
|
|
BINMODE=4555
|
2014-11-25 12:23:12 +01:00
|
|
|
LIBADD= m
|
2000-01-07 20:06:54 +01:00
|
|
|
|
2020-11-29 00:24:19 +01:00
|
|
|
.if ${MK_INET_SUPPORT}!= "no"
|
|
|
|
CFLAGS+= -DINET
|
|
|
|
SRCS+= ping.c utils.c
|
|
|
|
.endif
|
|
|
|
|
2020-11-26 05:29:30 +01:00
|
|
|
.if ${MK_INET6_SUPPORT} != "no"
|
|
|
|
CFLAGS+= -DINET6 -DKAME_SCOPEID
|
|
|
|
SRCS+= ping6.c
|
|
|
|
LIBADD+= md
|
2020-11-26 19:33:04 +01:00
|
|
|
LINKS= ${BINDIR}/ping ${BINDIR}/ping6
|
2023-11-07 22:14:59 +01:00
|
|
|
MLINKS= ping.8 ping6.8
|
2020-11-26 05:29:30 +01:00
|
|
|
.endif
|
|
|
|
|
2018-09-09 19:26:44 +02:00
|
|
|
.if ${MK_DYNAMICROOT} == "no"
|
|
|
|
.warning ${PROG} built without libcasper support
|
|
|
|
.elif ${MK_CASPER} != "no" && !defined(RESCUE)
|
2016-02-25 19:23:40 +01:00
|
|
|
LIBADD+= casper
|
|
|
|
LIBADD+= cap_dns
|
2017-09-21 16:41:41 +02:00
|
|
|
CFLAGS+=-DWITH_CASPER
|
2014-02-04 22:43:53 +01:00
|
|
|
.endif
|
|
|
|
|
2000-01-06 13:40:54 +01:00
|
|
|
CFLAGS+=-DIPSEC
|
2014-11-25 12:23:12 +01:00
|
|
|
LIBADD+= ipsec
|
1994-05-26 08:35:07 +02:00
|
|
|
|
2023-07-05 11:59:40 +02:00
|
|
|
CFLAGS+= -Wno-error=unused-but-set-variable
|
|
|
|
|
2019-08-20 23:59:48 +02:00
|
|
|
HAS_TESTS=
|
|
|
|
SUBDIR.${MK_TESTS}+= tests
|
|
|
|
|
1994-05-26 08:35:07 +02:00
|
|
|
.include <bsd.prog.mk>
|