]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - usr.bin/top/Makefile
This commit was generated by cvs2svn to compensate for changes in r53654,
[FreeBSD/FreeBSD.git] / usr.bin / top / Makefile
1 PROG=   top
2
3 TOPDIR= ${.CURDIR}/../../contrib/top
4 .PATH:  ${TOPDIR}
5
6 CFLAGS+= -DHAVE_GETOPT -I${.CURDIR} -I${TOPDIR} -DORDER
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)
14 CFLAGS+= -D"Table_size=${TOP_TABLE_SIZE}"
15 .endif
16
17 SRCS=   commands.c display.c machine.c screen.c top.c \
18         username.c utils.c version.c
19
20 CLEANFILES+= top.1
21 DPADD=  ${LIBTERMCAP} ${LIBM} ${LIBKVM}
22 LDADD=  -ltermcap -lm -lkvm
23 BINGRP= kmem
24 BINMODE=2555
25
26 top.1:  ${TOPDIR}/top.X top.local.1
27         cat ${.ALLSRC} > top.1
28
29 .include <bsd.prog.mk>