Patrick Welche <prlw1@cam.ac.uk>
[netbsd-mini2440.git] / usr.bin / systat / Makefile
blob012d318e3e0e825fbe0872586070d27dff9b9396
1 # $NetBSD: Makefile,v 1.34 2007/05/28 12:06:32 tls Exp $
2 # @(#)Makefile 8.1 (Berkeley) 6/6/93
4 .include <bsd.own.mk>
6 USE_FORT?= yes # setgid
7 PROG= systat
9 .PATH: ${NETBSDSRCDIR}/usr.bin/vmstat ${NETBSDSRCDIR}/usr.bin/who
11 CPPFLAGS+=-I${NETBSDSRCDIR}/usr.bin/vmstat -DSUPPORT_UTMP -DSUPPORT_UTMPX \
12 -I${NETBSDSRCDIR}/usr.bin/who
13 CWARNFLAGS+= -Wno-format-y2k
14 SRCS= bufcache.c cmds.c cmdtab.c disks.c df.c drvstats.c fetch.c \
15 globalcmds.c icmp.c iostat.c ip.c keyboard.c main.c mbufs.c \
16 netcmds.c netstat.c pigs.c ps.c swap.c tcp.c vmstat.c utmpentry.c \
17 syscall.c
18 DPADD= ${LIBCURSES} ${LIBM} ${LIBKVM}
19 LDADD= -lutil -lcurses -lm -lkvm
20 BINGRP= kmem
21 BINMODE=2555
22 LINKS= ${BINDIR}/systat ${BINDIR}/sysstat
23 MLINKS+=systat.1 sysstat.1
25 CPPFLAGS+=-DIPSEC
26 SRCS+= ipsec.c
28 .if (${USE_INET6} != "no")
29 CPPFLAGS+=-DINET6
30 SRCS+= ip6.c
31 .endif
33 .include <bsd.prog.mk>