3 TOPDIR= ${.CURDIR}/../../contrib/top
6 CFLAGS+= -DHAVE_GETOPT -I${.CURDIR} -I${TOPDIR} -DORDER
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.
13 .if defined(TOP_TABLE_SIZE)
14 CFLAGS+= -D"Table_size=${TOP_TABLE_SIZE}"
17 SRCS= commands.c display.c machine.c screen.c top.c \
18 username.c utils.c version.c
21 DPADD= ${LIBTERMCAP} ${LIBM} ${LIBKVM}
22 LDADD= -ltermcap -lm -lkvm
26 top.1: ${TOPDIR}/top.X top.local.1
27 cat ${.ALLSRC} > top.1
29 .include <bsd.prog.mk>