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