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= ${LIBTERMCAP} ${LIBM} ${LIBKVM} 21LDADD= -ltermcap -lm -lkvm 22BINGRP= kmem 23BINMODE=2555 24 25top.1: ${TOPDIR}/top.X top.local.1 26 cat ${.ALLSRC} > top.1 27 28.include <bsd.prog.mk> 29