Makefile revision 72952
1# $FreeBSD: head/usr.bin/top/Makefile 72952 2001-02-23 18:55:43Z rwatson $
2PROG=	top
3
4TOPDIR=	${.CURDIR}/../../contrib/top
5.PATH:	${TOPDIR}
6
7CFLAGS+= -DHAVE_GETOPT -I${.CURDIR} -I${TOPDIR} -DORDER
8
9#
10# The table size should be a prime number approximately twice as
11# large as the number of lines in /etc/passwd.  The default number
12# is 20011, use /etc/make.conf to override this.
13#
14.if defined(TOP_TABLE_SIZE)
15CFLAGS+= -D"Table_size=${TOP_TABLE_SIZE}"
16.endif
17
18SRCS=	commands.c display.c machine.c screen.c top.c \
19	username.c utils.c version.c
20
21CLEANFILES+= top.1
22DPADD=  ${LIBTERMCAP} ${LIBM} ${LIBKVM}
23LDADD=  -ltermcap -lm -lkvm
24
25top.1:	${TOPDIR}/top.X top.local.1
26	cat ${.ALLSRC} > top.1
27
28.include <bsd.prog.mk>
29