1 # $NetBSD: Makefile,v 1.3 2008/12/13 12:21:50 chris Exp $
8 TOPDIR
=${.CURDIR
}/..
/dist
9 .PATH
: ${TOPDIR} ${TOPDIR}/machine
13 CPPFLAGS
+=-I
${.CURDIR
} -I
${TOPDIR} -I.
14 SRCS
= color.c commands.c display.c hash.c screen.c \
15 top.c username.c utils.c version.c m_netbsd.c
16 DPSRCS
+=sigdesc.h config.h
18 LDADD
+= -ltermcap
-lm
-lkvm
-lutil
19 DPADD
+= ${LIBTERMCAP} ${LIBM} ${LIBKVM} ${LIBUTIL}
21 sigdesc.h
: ${TOPDIR}/sigconv.awk
${DESTDIR}/usr
/include/sys
/signal.h
23 ${TOOL_AWK} -f
${TOPDIR}/sigconv.awk \
24 ${DESTDIR}/usr
/include/sys
/signal.h
> ${.TARGET
}
25 CLEANFILES
+= sigdesc.h top
.1 config.h
28 ${TOOL_SED} -e s
/@DEFAULT_TOPN@
/-1/ \
29 -e s
/@DEFAULT_DELAY@
/5/ \
30 -e s
/@HAVE_GETOPT_LONG@
/1/ \
31 -e s
/@ENABLE_KILL@
/1/ \
32 -e s
/@MAN_SUPPLEMENT@
// < $?
> $@
37 ${TOOL_SED} -e s
/@MACHINE@
/${MACHINE}/ < $?
> $@
39 .
include <bsd.prog.mk
>