xref: /freebsd/usr.bin/top/Makefile (revision 58a0f0d00c0cc4a90ce584a61470290751bfcac7)
1# $FreeBSD$
2
3PROG=	top
4SRCS=	commands.c display.c machine.c screen.c top.c \
5	username.c utils.c
6SRCS+=	sigdesc.h top.local.h
7CFLAGS+= -I ${.OBJDIR}
8MAN=	top.1
9
10WARNS?=	1
11
12LIBADD=	ncursesw m kvm jail
13
14CLEANFILES= sigdesc.h
15SIGNAL_H= ${SRCTOP}/sys/sys/signal.h
16sigdesc.h: sigconv.awk ${SIGNAL_H}
17	awk -f ${SRCTOP}/usr.bin/top/sigconv.awk < ${SIGNAL_H} > ${.TARGET}
18
19.SUFFIXES: .xs .x .hs .h
20.xs.x .hs.h:
21	@${ECHO} Making ${.TARGET} from ${.IMPSRC}
22	@sed -e's,%LoadMax%,5.0,g' \
23	-e's,%TableSize%,20011,g' \
24	-e's,%NominalTopn%,18,g' \
25	-e's,%topn%,-1,g' \
26	-e's,%delay%,2,g' \
27	-e's,%random%,1,g' \
28	${.IMPSRC} > ${.TARGET}
29
30.include <bsd.prog.mk>
31