Makefile revision 24143
124143SjoergPROG= top 224143Sjoerg 324143SjoergTOPDIR= ${.CURDIR}/../../contrib/top 424143Sjoerg.PATH: ${TOPDIR} 524143Sjoerg 624143SjoergCFLAGS+= -DHAVE_GETOPT -I${.CURDIR} -I${TOPDIR} 724143Sjoerg 824143Sjoerg# 924143Sjoerg# The table size should be a prime number approximately twice as 1024143Sjoerg# large as the number of lines in /etc/passwd. The default number 1124143Sjoerg# is 20011, use /etc/make.conf to override this. 1224143Sjoerg# 1324143Sjoerg.if defined(TOP_TABLE_SIZE) 1424143SjoergCFLAGS+= -D"Table_size=${TOP_TABLE_SIZE}" 1524143Sjoerg.endif 1624143Sjoerg 1724143SjoergSRCS= commands.c display.c machine.c screen.c top.c \ 1824143Sjoerg username.c utils.c version.c 1924143Sjoerg 2024143SjoergDPADD= ${LIBCURSES} ${LIBTERMCAP} ${LIBM} ${LIBKVM} 2124143SjoergLDADD= -lcurses -ltermcap -lm -lkvm 2224143SjoergBINGRP= kmem 2324143SjoergBINMODE=2555 2424143Sjoerg 2524143Sjoerg.include <bsd.prog.mk> 26