summaryrefslogtreecommitdiffstats
path: root/usr.bin/top/Makefile
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>1997-03-23 18:55:20 +0000
committerjoerg <joerg@FreeBSD.org>1997-03-23 18:55:20 +0000
commitfa71779225949e4336753dba62bf930087152e61 (patch)
treeee8189dcbc78a99af34f1a8f6e5b8437ad9dc357 /usr.bin/top/Makefile
parent880dd9d3c6fae1c0252b9a7ad8b0a3acd985acb6 (diff)
downloadFreeBSD-src-fa71779225949e4336753dba62bf930087152e61.zip
FreeBSD-src-fa71779225949e4336753dba62bf930087152e61.tar.gz
This is the FreeBSD-specific files for top, plus the Makefile
that pulls all the files from contrib. Obtained from: The ports collection (mostly).
Diffstat (limited to 'usr.bin/top/Makefile')
-rw-r--r--usr.bin/top/Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/usr.bin/top/Makefile b/usr.bin/top/Makefile
new file mode 100644
index 0000000..47a5009
--- /dev/null
+++ b/usr.bin/top/Makefile
@@ -0,0 +1,25 @@
+PROG= top
+
+TOPDIR= ${.CURDIR}/../../contrib/top
+.PATH: ${TOPDIR}
+
+CFLAGS+= -DHAVE_GETOPT -I${.CURDIR} -I${TOPDIR}
+
+#
+# The table size should be a prime number approximately twice as
+# large as the number of lines in /etc/passwd. The default number
+# is 20011, use /etc/make.conf to override this.
+#
+.if defined(TOP_TABLE_SIZE)
+CFLAGS+= -D"Table_size=${TOP_TABLE_SIZE}"
+.endif
+
+SRCS= commands.c display.c machine.c screen.c top.c \
+ username.c utils.c version.c
+
+DPADD= ${LIBCURSES} ${LIBTERMCAP} ${LIBM} ${LIBKVM}
+LDADD= -lcurses -ltermcap -lm -lkvm
+BINGRP= kmem
+BINMODE=2555
+
+.include <bsd.prog.mk>
OpenPOWER on IntegriCloud