top - correctly prototype compare_* functions. Remove debug option from Makefile.
[dragonfly.git] / usr.bin / top / Makefile
1 # $FreeBSD: src/usr.bin/top/Makefile,v 1.5.6.2 2002/08/11 17:09:54 dwmalone Exp $
2 # $DragonFly: src/usr.bin/top/Makefile,v 1.8 2007/08/27 16:50:59 pavalos Exp $
3 PROG=   top
4
5 TOPDIR= ${.CURDIR}/../../contrib/top
6 .PATH:  ${TOPDIR}
7
8 CFLAGS+= -DHAVE_GETOPT -DHAVE_STRERROR -I${.CURDIR} -I${.OBJDIR} \
9                  -I${TOPDIR} -I. -DORDER
10
11 .if ${MACHINE_ARCH} == "i386"
12 CFLAGS+=-D_ENABLEX32
13 .endif
14 .if ${MACHINE_ARCH} == "x86_64"
15 CFLAGS+=-D_ENABLEX64
16 .endif
17
18 SRCS=   commands.c getopt.c screen.c username.c version.c \
19         color.c display.c hash.c m_dragonfly.c top.c utils.c
20
21 CLEANFILES+= top.x top.1
22 DPADD=  ${LIBTERMCAP} ${LIBM} ${LIBKVM} ${LIBKINFO}
23 LDADD=  -ltermcap -lm -lkvm -lkinfo
24 BINGRP= kmem
25 BINMODE=2555
26
27 top.1:  top.x top.local.1
28         cat ${.ALLSRC} > top.1
29
30 WARNS?= 1
31
32 .include <bsd.prog.mk>