2008-10-20 02:05:23 +04:00
|
|
|
# $NetBSD: Makefile,v 1.22 2008/10/19 22:05:23 apb 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
|
2005-07-17 13:45:50 +04:00
|
|
|
WARNS=3
|
2002-08-27 18:46:11 +04:00
|
|
|
|
|
|
|
.if (${MKDYNAMICROOT} == "no")
|
|
|
|
LDSTATIC?=-static
|
|
|
|
.endif
|
|
|
|
|
2001-01-11 17:25:27 +03:00
|
|
|
dump.c misc.c: misc.h
|
2005-07-17 19:48:28 +04:00
|
|
|
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}
|
2008-10-20 02:05:23 +04: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
|