No empty .Rs/.Re
[netbsd-mini2440.git] / usr.bin / ktruss / Makefile
blobeba4aa85c79a04bef593a0eea217c12838c46d42
1 # $NetBSD: Makefile,v 1.26 2009/12/08 02:56:37 uebayasi Exp $
3 NOMAN= # defined
5 .include <bsd.own.mk> # for MKDYNAMICROOT & NETBSDSRCDIR
7 PROG= ktruss
8 SRCS= ktrace.c dump.c subr.c misc.c setemul.c
9 CPPFLAGS+= -I. -I${NETBSDSRCDIR}/usr.bin/ktrace -I${NETBSDSRCDIR}/sys \
10 -I${NETBSDSRCDIR}/usr.bin/kdump -DKTRUSS
11 CLEANFILES+= misc.c misc.h
13 .if (${MKDYNAMICROOT} == "no")
14 LDSTATIC?=-static
15 .endif
17 # Hint for mkdep(1).
18 dump.c: misc.h
20 # Avoid race.
21 .ORDER: misc.c misc.h
23 # Build-time generation.
24 misc.c misc.h: ${DESTDIR}/usr/include/sys/errno.h makeerrnos.sh \
25 ${DESTDIR}/usr/include/sys/signal.h
26 ${_MKTARGET_CREATE}
27 AWK=${TOOL_AWK:Q} CPP=${CPP:Q} CPPFLAGS=${CPPFLAGS:Q} \
28 ${HOST_SH} ${.CURDIR}/makeerrnos.sh \
29 ${DESTDIR}/usr/include/sys/errno.h \
30 ${DESTDIR}/usr/include/sys/signal.h misc
32 .include "${NETBSDSRCDIR}/usr.bin/kdump/Makefile.ioctl-c"
33 .include <bsd.prog.mk>
35 .PATH: ${NETBSDSRCDIR}/usr.bin/ktrace ${NETBSDSRCDIR}/usr.bin/kdump