top - Import DragonFly specific patches for 3.8beta1.
[dragonfly.git] / usr.bin / top / Makefile
CommitLineData
984263bc 1# $FreeBSD: src/usr.bin/top/Makefile,v 1.5.6.2 2002/08/11 17:09:54 dwmalone Exp $
c03f08f3 2# $DragonFly: src/usr.bin/top/Makefile,v 1.8 2007/08/27 16:50:59 pavalos Exp $
984263bc
MD
3PROG= top
4
5TOPDIR= ${.CURDIR}/../../contrib/top
6.PATH: ${TOPDIR}
7
7af1b2bc 8CFLAGS+= -g -DHAVE_GETOPT -DHAVE_STRERROR -I${.CURDIR} -I${.OBJDIR} \
3a1cfe54 9 -I${TOPDIR} -I. -DORDER
7af1b2bc
JL
10.if ${MACHINE_ARCH} == "i386"
11CFLAGS+=-D_ENABLEX32
12.endif
13.if ${MACHINE_ARCH} == "x86_64"
14CFLAGS+=-D_ENABLEX64
984263bc
MD
15.endif
16
7af1b2bc
JL
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
984263bc 19
7af1b2bc 20CLEANFILES+= top.x top.1
9169bd75
JS
21DPADD= ${LIBTERMCAP} ${LIBM} ${LIBKVM} ${LIBKINFO}
22LDADD= -ltermcap -lm -lkvm -lkinfo
984263bc
MD
23BINGRP= kmem
24BINMODE=2555
25
26top.1: top.x top.local.1
27 cat ${.ALLSRC} > top.1
28
7af1b2bc 29WARNS?= 1
984263bc
MD
30
31.include <bsd.prog.mk>