2001-02-23 18:55:43 +00:00
|
|
|
# $FreeBSD$
|
1997-03-23 18:55:20 +00:00
|
|
|
|
2018-06-03 05:07:39 +00:00
|
|
|
.include <src.opts.mk>
|
|
|
|
|
2006-12-01 07:01:19 +00:00
|
|
|
PROG= top
|
|
|
|
SRCS= commands.c display.c machine.c screen.c top.c \
|
2018-05-21 09:43:50 +00:00
|
|
|
username.c utils.c sigdesc.h
|
2018-05-19 22:59:58 +00:00
|
|
|
CFLAGS+= -I ${.OBJDIR}
|
2018-05-19 22:40:23 +00:00
|
|
|
MAN= top.1
|
1997-03-23 18:55:20 +00:00
|
|
|
|
2018-06-03 06:02:31 +00:00
|
|
|
.if ${COMPILER_TYPE} == "gcc"
|
|
|
|
.if ${COMPILER_VERSION} >= 50000
|
2018-06-10 06:21:51 +00:00
|
|
|
CFLAGS.gcc=-Wno-error=cast-qual -Wno-error=discarded-qualifiers -Wno-error=incompatible-pointer-types \
|
2018-06-03 05:07:39 +00:00
|
|
|
-Wno-error=maybe-uninitialized
|
|
|
|
.else #base gcc
|
|
|
|
NO_WERROR=
|
|
|
|
.endif
|
2018-06-03 06:02:31 +00:00
|
|
|
.endif
|
2018-06-10 06:21:51 +00:00
|
|
|
CFLAGS.clang=-Wno-error=incompatible-pointer-types-discards-qualifiers -Wno-error=cast-qual
|
2010-01-02 10:27:05 +00:00
|
|
|
|
2014-11-25 14:29:10 +00:00
|
|
|
LIBADD= ncursesw m kvm jail
|
1997-03-23 18:55:20 +00:00
|
|
|
|
2006-12-01 07:01:19 +00:00
|
|
|
CLEANFILES= sigdesc.h
|
2018-05-19 22:40:23 +00:00
|
|
|
SIGNAL_H= ${SRCTOP}/sys/sys/signal.h
|
|
|
|
sigdesc.h: sigconv.awk ${SIGNAL_H}
|
|
|
|
awk -f ${SRCTOP}/usr.bin/top/sigconv.awk < ${SIGNAL_H} > ${.TARGET}
|
1997-04-05 22:05:46 +00:00
|
|
|
|
1997-03-23 18:55:20 +00:00
|
|
|
.include <bsd.prog.mk>
|