Makefile revision 89759
1# $FreeBSD: head/usr.bin/top/Makefile 89759 2002-01-24 17:59:39Z dwmalone $ 2PROG= top 3 4TOPDIR= ${.CURDIR}/../../contrib/top 5.PATH: ${TOPDIR} 6 7CFLAGS+= -DHAVE_GETOPT -DHAVE_STRERROR -I${.CURDIR} -I${TOPDIR} -I. -DORDER 8 9WARNS?= 0 10 11# 12# The table size should be a prime number approximately twice as 13# large as the number of lines in /etc/passwd. The default number 14# is 20011, use /etc/make.conf to override this. 15# 16.if defined(TOP_TABLE_SIZE) 17CFLAGS+= -D"Table_size=${TOP_TABLE_SIZE}" 18.endif 19 20SRCS= commands.c display.c machine.c screen.c top.c \ 21 username.c utils.c version.c top.local.h 22 23CLEANFILES+= top.local.h top.x top.1 24DPADD= ${LIBTERMCAP} ${LIBM} ${LIBKVM} 25LDADD= -ltermcap -lm -lkvm 26 27top.1: top.x top.local.1 28 cat ${.ALLSRC} > top.1 29 30.SUFFIXES: .X .x .H .h 31 32.X.x .H.h: 33 @${ECHO} Making ${.TARGET} from ${.IMPSRC} 34 @sed -e's,%LoadMax%,5.0,g' \ 35 -e's,%TableSize%,20011,g' \ 36 -e's,%NominalTopn%,18,g' \ 37 -e's,%topn%,-1,g' \ 38 -e's,%delay%,2,g' \ 39 -e's,%random%,1,g' \ 40 ${.IMPSRC} > ${.TARGET} 41 42.include <bsd.prog.mk> 43