1994-05-27 12:33:43 +00:00
|
|
|
# @(#)Makefile 8.1 (Berkeley) 6/6/93
|
2000-09-16 03:30:50 +00:00
|
|
|
# $FreeBSD$
|
1994-05-27 12:33:43 +00:00
|
|
|
|
2014-05-06 04:22:01 +00:00
|
|
|
.include <src.opts.mk>
|
2006-07-27 14:20:14 +00:00
|
|
|
|
1994-05-27 12:33:43 +00:00
|
|
|
PROG= systat
|
1998-09-15 10:28:59 +00:00
|
|
|
SRCS= cmds.c cmdtab.c devs.c fetch.c iostat.c keyboard.c main.c \
|
2013-07-15 12:15:14 +00:00
|
|
|
netcmds.c netstat.c pigs.c swap.c icmp.c \
|
2006-07-27 14:20:14 +00:00
|
|
|
mode.c ip.c tcp.c \
|
2003-01-04 22:07:24 +00:00
|
|
|
vmstat.c convtbl.c ifcmds.c ifstat.c
|
2006-07-27 14:20:14 +00:00
|
|
|
|
|
|
|
.if ${MK_INET6_SUPPORT} != "no"
|
|
|
|
SRCS+= icmp6.c ip6.c
|
|
|
|
CFLAGS+= -DINET6
|
|
|
|
.endif
|
|
|
|
|
2010-01-02 10:27:05 +00:00
|
|
|
WARNS?= 0
|
|
|
|
|
2014-01-30 21:08:36 +00:00
|
|
|
DPADD= ${LIBM} ${LIBDEVSTAT} ${LIBKVM}
|
|
|
|
LDADD= -lm -ldevstat -lkvm
|
|
|
|
|
|
|
|
.if ${MK_NCURSESW} == "no"
|
|
|
|
DPADD+= ${LIBNCURSES}
|
|
|
|
LDADD+= -lncurses
|
|
|
|
.else
|
|
|
|
CFLAGS+= -DUSE_WIDECHAR
|
|
|
|
DPADD+= ${LIBNCURSESW}
|
|
|
|
LDADD+= -lncursesw
|
|
|
|
.endif
|
1994-05-27 12:33:43 +00:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|