summaryrefslogtreecommitdiffstats
path: root/usr.bin/systat/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/systat/Makefile')
-rw-r--r--usr.bin/systat/Makefile13
1 files changed, 10 insertions, 3 deletions
diff --git a/usr.bin/systat/Makefile b/usr.bin/systat/Makefile
index 3cd09f4..4f5f229 100644
--- a/usr.bin/systat/Makefile
+++ b/usr.bin/systat/Makefile
@@ -1,12 +1,19 @@
# @(#)Makefile 8.1 (Berkeley) 6/6/93
# $FreeBSD$
+.include <bsd.own.mk>
+
PROG= systat
SRCS= cmds.c cmdtab.c devs.c fetch.c iostat.c keyboard.c main.c \
- mbufs.c netcmds.c netstat.c pigs.c swap.c icmp.c icmp6.c \
- mode.c ip.c ip6.c tcp.c \
+ mbufs.c netcmds.c netstat.c pigs.c swap.c icmp.c \
+ mode.c ip.c tcp.c \
vmstat.c convtbl.c ifcmds.c ifstat.c
-CFLAGS+=-DINET6
+
+.if ${MK_INET6_SUPPORT} != "no"
+SRCS+= icmp6.c ip6.c
+CFLAGS+= -DINET6
+.endif
+
DPADD= ${LIBCURSES} ${LIBM} ${LIBDEVSTAT} ${LIBKVM}
LDADD= -lcurses -lm -ldevstat -lkvm
OpenPOWER on IntegriCloud