| 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+= -g -DHAVE_GETOPT -DHAVE_STRERROR -I${.CURDIR} -I${.OBJDIR} \ |
| 9 | -I${TOPDIR} -I. -DORDER |
| 10 | .if ${MACHINE_ARCH} == "i386" |
| 11 | CFLAGS+=-D_ENABLEX32 |
| 12 | .endif |
| 13 | .if ${MACHINE_ARCH} == "x86_64" |
| 14 | CFLAGS+=-D_ENABLEX64 |
| 15 | .endif |
| 16 | |
| 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 |
| 19 | |
| 20 | CLEANFILES+= top.x top.1 |
| 21 | DPADD= ${LIBTERMCAP} ${LIBM} ${LIBKVM} ${LIBKINFO} |
| 22 | LDADD= -ltermcap -lm -lkvm -lkinfo |
| 23 | BINGRP= kmem |
| 24 | BINMODE=2555 |
| 25 | |
| 26 | top.1: top.x top.local.1 |
| 27 | cat ${.ALLSRC} > top.1 |
| 28 | |
| 29 | WARNS?= 1 |
| 30 | |
| 31 | .include <bsd.prog.mk> |