Remove building with NOCRYPTO option
[minix3.git] / external / bsd / top / bin / Makefile
blobed4a75ac2e232adcf655242fee5a38159934922f
1 # $NetBSD: Makefile,v 1.9 2013/03/21 21:43:22 christos Exp $
3 .include <bsd.own.mk>
5 PROG= top
6 BINDIR= /usr/bin
8 TOPDIR=${.CURDIR}/../dist
9 .PATH: ${TOPDIR} ${TOPDIR}/machine
11 WARNS= 4
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
23 ${_MKTARGET_CREATE}
24 ${TOOL_AWK} -f ${TOPDIR}/sigconv.awk \
25 ${DESTDIR}/usr/include/sys/signal.h > ${.TARGET}
26 CLEANFILES+= sigdesc.h top.1 config.h
28 top.1: top.1.in
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@// < $? > $@
35 commands.c: sigdesc.h
37 config.h: config.h.in
38 ${TOOL_SED} -e s/@MACHINE@/${MACHINE}/ < $? > $@
40 COPTS.display.c = -Wno-format-nonliteral
41 .include <bsd.prog.mk>