aboutsummaryrefslogtreecommitdiffstats
path: root/network_cmds/Makefile
diff options
context:
space:
mode:
authorCameron Katri <me@cameronkatri.com>2021-05-23 11:50:26 -0400
committerCameron Katri <me@cameronkatri.com>2021-05-23 11:50:26 -0400
commita5d67cf8b3beb8310964dc989d6bc95ac6503fe9 (patch)
tree0e537152aae6cb5bc568f45e4c04adf43bdd7b3f /network_cmds/Makefile
parent5daaae50763dba0e91d9f80d4b341ee413d22796 (diff)
downloadapple_cmds-a5d67cf8b3beb8310964dc989d6bc95ac6503fe9.tar.gz
apple_cmds-a5d67cf8b3beb8310964dc989d6bc95ac6503fe9.tar.zst
apple_cmds-a5d67cf8b3beb8310964dc989d6bc95ac6503fe9.zip
network_cmds: Fix compilation for lower targets
Diffstat (limited to 'network_cmds/Makefile')
-rw-r--r--network_cmds/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/network_cmds/Makefile b/network_cmds/Makefile
index 4d21c8e..296ddb4 100644
--- a/network_cmds/Makefile
+++ b/network_cmds/Makefile
@@ -10,7 +10,6 @@ SUBDIR= arp.tproj \
mptcp_client \
mtest.tproj \
ndp.tproj \
- netstat.tproj \
ping.tproj \
ping6.tproj \
pktapctl \
@@ -23,4 +22,13 @@ SUBDIR= arp.tproj \
traceroute.tproj \
traceroute6.tproj
+.if !defined(MK_NETSTAT)
+MK_NETSTAT=no
+.endif
+
+# netstat doesnt build on iOS 12, if building for higher set MK_NETSTAT to yes
+.if ${MK_NETSTAT} == "yes"
+SUBDIR+= netstat.tproj
+.endif
+
.include <bsd.subdir.mk>