Makefile revision 24144
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
20DPADD=  ${LIBCURSES} ${LIBTERMCAP} ${LIBM} ${LIBKVM}
21LDADD=  -lcurses -ltermcap -lm -lkvm
22BINGRP= kmem
23BINMODE=2555
24
25.include <bsd.prog.mk>
26