1 # $FreeBSD: src/usr.bin/top/Makefile,v 1.5.6.2 2002/08/11 17:09:54 dwmalone Exp $
4 TOPDIR
= ${.CURDIR
}/..
/..
/contrib
/top
7 CFLAGS
+= -DHAVE_GETOPT
-DHAVE_STRERROR
-I
${.CURDIR
} -I
${.OBJDIR
} \
8 -I
${TOPDIR} -I.
-DORDER
10 .if
${MACHINE_ARCH} == "i386"
13 .if
${MACHINE_ARCH} == "x86_64"
17 SRCS
= commands.c getopt.c screen.c username.c version.c \
18 color.c display.c hash.c m_dragonfly.c top.c utils.c
20 DPADD
= ${LIBNCURSES} ${LIBM} ${LIBKVM} ${LIBKINFO}
21 LDADD
= -lprivate_ncurses
-lm
-lkvm
-lkinfo
23 CFLAGS
+= -I
${_SHLIBDIRPREFIX}/usr
/include/priv
/ncurses
24 LDFLAGS
+= ${PRIVATELIB_LDFLAGS}
31 .
include <bsd.prog.mk
>