Changeset View
Changeset View
Standalone View
Standalone View
head/usr.bin/top/Makefile
# $FreeBSD$ | # $FreeBSD$ | ||||
TOPDIR= ${.CURDIR}/../../contrib/top | TOPDIR= ${SRCTOP}/contrib/top | ||||
.PATH: ${TOPDIR} | .PATH: ${TOPDIR} | ||||
PROG= top | PROG= top | ||||
SRCS= commands.c display.c machine.c screen.c top.c \ | SRCS= commands.c display.c machine.c screen.c top.c \ | ||||
username.c utils.c version.c | username.c utils.c version.c | ||||
SRCS+= sigdesc.h top.local.h | SRCS+= sigdesc.h top.local.h | ||||
CFLAGS+= -DHAVE_GETOPT -DHAVE_STRERROR -DORDER | CFLAGS+= -DHAVE_GETOPT -DHAVE_STRERROR -DORDER | ||||
CFLAGS+= -I${.CURDIR} -I${TOPDIR} -I. | CFLAGS+= -I${.CURDIR} -I${TOPDIR} -I. | ||||
WARNS?= 0 | WARNS?= 0 | ||||
# | # | ||||
# The table size should be a prime number approximately twice as | # The table size should be a prime number approximately twice as | ||||
# large as the number of lines in /etc/passwd. The default number | # large as the number of lines in /etc/passwd. The default number | ||||
# is 20011; use /etc/make.conf to override this. | # is 20011; use /etc/make.conf to override this. | ||||
# | # | ||||
.if defined(TOP_TABLE_SIZE) | .if defined(TOP_TABLE_SIZE) | ||||
CFLAGS+= -D"Table_size=${TOP_TABLE_SIZE}" | CFLAGS+= -D"Table_size=${TOP_TABLE_SIZE}" | ||||
.endif | .endif | ||||
LIBADD= ncursesw m kvm jail | LIBADD= ncursesw m kvm jail | ||||
CLEANFILES= sigdesc.h | CLEANFILES= sigdesc.h | ||||
SIGCONV_AWK= ${.CURDIR}/../../contrib/top/sigconv.awk | SIGCONV_AWK= ${SRCTOP}/contrib/top/sigconv.awk | ||||
STAGED_INCLUDE_DIR?= ${DESTDIR}/usr/include | STAGED_INCLUDE_DIR?= ${DESTDIR}/usr/include | ||||
SIGNAL_H= ${STAGED_INCLUDE_DIR}/sys/signal.h | SIGNAL_H= ${STAGED_INCLUDE_DIR}/sys/signal.h | ||||
sigdesc.h: ${SIGCONV_AWK} ${SIGNAL_H} | sigdesc.h: ${SIGCONV_AWK} ${SIGNAL_H} | ||||
awk -f ${SIGCONV_AWK} < ${SIGNAL_H} > ${.TARGET} | awk -f ${SIGCONV_AWK} < ${SIGNAL_H} > ${.TARGET} | ||||
CLEANFILES+= top.local.h top.x | CLEANFILES+= top.local.h top.x | ||||
.SUFFIXES: .xs .x .hs .h | .SUFFIXES: .xs .x .hs .h | ||||
.xs.x .hs.h: | .xs.x .hs.h: | ||||
Show All 14 Lines |