NetBSD/usr.bin/systat/Makefile

37 lines
1.1 KiB
Makefile
Raw Normal View History

2020-12-11 10:24:38 +03:00
# $NetBSD: Makefile,v 1.44 2020/12/11 07:24:38 simonb Exp $
1995-01-20 11:30:50 +03:00
# @(#)Makefile 8.1 (Berkeley) 6/6/93
.include <bsd.own.mk>
2007-05-28 16:06:17 +04:00
USE_FORT?= yes # setgid
1995-01-20 11:30:50 +03:00
PROG= systat
.PATH: ${NETBSDSRCDIR}/usr.bin/vmstat ${NETBSDSRCDIR}/usr.bin/who
CPPFLAGS+=-I${NETBSDSRCDIR}/usr.bin/vmstat -DSUPPORT_UTMP -DSUPPORT_UTMPX \
-I${NETBSDSRCDIR}/usr.bin/who -D_KMEMUSER
CWARNFLAGS+= -Wno-format-y2k
SRCS= bufcache.c cmds.c cmdtab.c convtbl.c disks.c df.c drvstats.c \
fetch.c globalcmds.c icmp.c ifcmds.c ifstat.c iostat.c ip.c \
keyboard.c main.c mbufs.c netcmds.c netstat.c pigs.c ps.c swap.c \
tcp.c vmstat.c utmpentry.c syscall.c
2020-12-11 10:24:38 +03:00
DPADD= ${LIBUTIL} ${LIBCURSES} ${LIBTERMINFO} ${LIBM} ${LIBKVM}
LDADD= -lutil -lcurses -lterminfo -lm -lkvm
1995-01-20 11:30:50 +03:00
BINGRP= kmem
BINMODE=2555
LINKS= ${BINDIR}/systat ${BINDIR}/sysstat
MLINKS+=systat.1 sysstat.1
1995-01-20 11:30:50 +03:00
.if (${USE_INET6} != "no")
CPPFLAGS+=-DINET6
SRCS+= ip6.c
.endif
.include "../../compat/exec.mk"
COPTS.df.c+= ${GCC_NO_FORMAT_TRUNCATION}
COPTS.ifstat.c+= ${GCC_NO_STRINGOP_TRUNCATION}
COPTS.ps.c+= ${GCC_NO_STRINGOP_TRUNCATION} ${GCC_NO_FORMAT_TRUNCATION}
2019-02-04 06:58:41 +03:00
1995-01-20 11:30:50 +03:00
.include <bsd.prog.mk>