1# $FreeBSD: src/usr.bin/top/Makefile,v 1.5.6.2 2002/08/11 17:09:54 dwmalone Exp $ 2PROG= top 3 4TOPDIR= ${.CURDIR}/../../contrib/top 5.PATH: ${TOPDIR} 6 7CFLAGS+= -DHAVE_GETOPT -DHAVE_STRERROR -I${.CURDIR} -I${.OBJDIR} \ 8 -I${TOPDIR} -I. -DORDER 9 10.if ${MACHINE_ARCH} == "i386" 11CFLAGS+=-D_ENABLEX32 12.endif 13.if ${MACHINE_ARCH} == "x86_64" 14CFLAGS+=-D_ENABLEX64 15.endif 16 17SRCS= commands.c getopt.c screen.c username.c version.c \ 18 color.c display.c hash.c m_dragonfly.c top.c utils.c 19 20DPADD= ${LIBNCURSES} ${LIBM} ${LIBKVM} ${LIBKINFO} 21LDADD= -lprivate_ncurses -lm -lkvm -lkinfo 22LDFLAGS+= -rpath /lib/priv -L ${_SHLIBDIRPREFIX}/usr/lib/priv 23BINGRP= kmem 24BINMODE=2555 25 26WARNS?= 1 27 28.include <bsd.prog.mk> 29