summaryrefslogtreecommitdiffstats
path: root/usr.bin/systat/Makefile
blob: 5773c36adf2d1bf43d3e5d769b6bbc6d83f7ff73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#	@(#)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 \
	netcmds.c netstat.c pigs.c swap.c icmp.c \
	mode.c ip.c tcp.c \
	vmstat.c convtbl.c ifcmds.c ifstat.c

.if ${MK_INET6_SUPPORT} != "no"
SRCS+=	icmp6.c ip6.c
CFLAGS+= -DINET6
.endif

WARNS?=	0

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

.include <bsd.prog.mk>
OpenPOWER on IntegriCloud