2009-12-14 08:23:39 +03:00
|
|
|
# $NetBSD: Makefile,v 1.28 2009/12/14 05:23:39 christos Exp $
|
2002-08-27 18:46:11 +04:00
|
|
|
|
|
|
|
NOMAN= # defined
|
|
|
|
|
2002-09-19 15:31:21 +04:00
|
|
|
.include <bsd.own.mk> # for MKDYNAMICROOT & NETBSDSRCDIR
|
1999-07-12 08:13:34 +04:00
|
|
|
|
|
|
|
PROG= ktruss
|
2004-07-10 16:12:49 +04:00
|
|
|
SRCS= ktrace.c dump.c subr.c misc.c setemul.c
|
2002-09-19 15:31:21 +04:00
|
|
|
CPPFLAGS+= -I. -I${NETBSDSRCDIR}/usr.bin/ktrace -I${NETBSDSRCDIR}/sys \
|
|
|
|
-I${NETBSDSRCDIR}/usr.bin/kdump -DKTRUSS
|
2004-07-10 16:12:49 +04:00
|
|
|
CLEANFILES+= misc.c misc.h
|
2002-08-27 18:46:11 +04:00
|
|
|
|
|
|
|
.if (${MKDYNAMICROOT} == "no")
|
|
|
|
LDSTATIC?=-static
|
|
|
|
.endif
|
|
|
|
|
2009-12-14 08:23:39 +03:00
|
|
|
# Hint for mkdep(1).
|
2009-12-08 05:56:37 +03:00
|
|
|
dump.c: misc.h
|
|
|
|
|
2009-12-14 08:23:39 +03:00
|
|
|
# Avoid race.
|
|
|
|
.ORDER: misc.c misc.h
|
|
|
|
|
|
|
|
# Build-time generation.
|
2009-12-06 17:37:36 +03:00
|
|
|
misc.c misc.h: ${DESTDIR}/usr/include/sys/errno.h makeerrnos.sh \
|
1999-07-12 08:13:34 +04:00
|
|
|
${DESTDIR}/usr/include/sys/signal.h
|
2003-10-21 14:01:19 +04:00
|
|
|
${_MKTARGET_CREATE}
|
2009-12-14 08:23:39 +03:00
|
|
|
AWK=${TOOL_AWK:Q} CPP=${CPP:Q} CPPFLAGS=${CPPFLAGS:Q} \
|
2003-10-19 08:25:00 +04:00
|
|
|
${HOST_SH} ${.CURDIR}/makeerrnos.sh \
|
1999-07-12 08:13:34 +04:00
|
|
|
${DESTDIR}/usr/include/sys/errno.h \
|
|
|
|
${DESTDIR}/usr/include/sys/signal.h misc
|
1999-07-12 07:20:17 +04:00
|
|
|
|
2002-09-19 15:31:21 +04:00
|
|
|
.include "${NETBSDSRCDIR}/usr.bin/kdump/Makefile.ioctl-c"
|
1999-07-12 07:20:17 +04:00
|
|
|
.include <bsd.prog.mk>
|
1999-07-12 08:13:34 +04:00
|
|
|
|
2002-09-19 15:31:21 +04:00
|
|
|
.PATH: ${NETBSDSRCDIR}/usr.bin/ktrace ${NETBSDSRCDIR}/usr.bin/kdump
|