1 # $NetBSD: Makefile,v 1.9 2013/03/21 21:43:22 christos Exp $
8 TOPDIR
=${.CURDIR
}/..
/dist
9 .PATH
: ${TOPDIR} ${TOPDIR}/machine
12 CWARNFLAGS
+= -Wno-missing-noreturn
14 CPPFLAGS
+=-I
${.CURDIR
} -I
${TOPDIR} -I.
15 SRCS
= color.c commands.c display.c hash.c screen.c \
16 top.c username.c utils.c version.c m_netbsd.c
17 DPSRCS
+=sigdesc.h config.h
19 LDADD
+= -lterminfo
-lm
-lkvm
-lutil
20 DPADD
+= ${LIBTERMINFO} ${LIBM} ${LIBKVM} ${LIBUTIL}
22 sigdesc.h
: ${TOPDIR}/sigconv.awk
${DESTDIR}/usr
/include/sys
/signal.h
24 ${TOOL_AWK} -f
${TOPDIR}/sigconv.awk \
25 ${DESTDIR}/usr
/include/sys
/signal.h
> ${.TARGET
}
26 CLEANFILES
+= sigdesc.h top
.1 config.h
29 ${TOOL_SED} -e s
/@DEFAULT_TOPN@
/-1/ \
30 -e s
/@DEFAULT_DELAY@
/5/ \
31 -e s
/@HAVE_GETOPT_LONG@
/1/ \
32 -e s
/@ENABLE_KILL@
/1/ \
33 -e s
/@MAN_SUPPLEMENT@
// < $?
> $@
38 ${TOOL_SED} -e s
/@MACHINE@
/${MACHINE}/ < $?
> $@
40 COPTS.display.c
= -Wno-format-nonliteral
41 .
include <bsd.prog.mk
>