aboutsummaryrefslogtreecommitdiff
path: root/sbin/ping/Makefile
diff options
context:
space:
mode:
authorAlan Somers <asomers@FreeBSD.org>2020-11-28 23:24:19 +0000
committerAlan Somers <asomers@FreeBSD.org>2020-11-28 23:24:19 +0000
commitfd26389be7e149849c75a10311805a29d7215918 (patch)
tree345957919f01f66b53d8343b497302de43372048 /sbin/ping/Makefile
parent5667729fba644a8dc105eb7435142b6c20969562 (diff)
downloadsrc-fd26389be7e149849c75a10311805a29d7215918.tar.gz
src-fd26389be7e149849c75a10311805a29d7215918.zip
ping: allow building without INET support
Building without INET6 support was already possible. Now it's possible to build ping with only INET6, or even with neither INET nor INET6. Reported by: bz Reviewed by: bz MFC-With: 368045 Differential Revision: https://reviews.freebsd.org/D27394
Notes
Notes: svn path=/head/; revision=368131
Diffstat (limited to 'sbin/ping/Makefile')
-rw-r--r--sbin/ping/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/sbin/ping/Makefile b/sbin/ping/Makefile
index c9cc63bbf74d..23bac6d62d90 100644
--- a/sbin/ping/Makefile
+++ b/sbin/ping/Makefile
@@ -5,12 +5,17 @@
PACKAGE=runtime
PROG= ping
-SRCS= main.c ping.c utils.c
+SRCS= main.c
MAN= ping.8
BINOWN= root
BINMODE=4555
LIBADD= m
+.if ${MK_INET_SUPPORT}!= "no"
+CFLAGS+= -DINET
+SRCS+= ping.c utils.c
+.endif
+
.if ${MK_INET6_SUPPORT} != "no"
CFLAGS+= -DINET6 -DKAME_SCOPEID
SRCS+= ping6.c