NetBSD/usr.bin/ktruss/Makefile

32 lines
881 B
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.20 2005/07/17 15:48:28 he Exp $
NOMAN= # defined
2002-09-19 15:31:21 +04:00
.include <bsd.own.mk> # for MKDYNAMICROOT & NETBSDSRCDIR
PROG= ktruss
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
CLEANFILES+= misc.c misc.h
WFORMAT=1
WARNS=3
.if (${MKDYNAMICROOT} == "no")
LDSTATIC?=-static
.endif
dump.c misc.c: misc.h
misc.h: ${DESTDIR}/usr/include/sys/errno.h makeerrnos.sh \
${DESTDIR}/usr/include/sys/signal.h
${_MKTARGET_CREATE}
2003-10-19 08:25:00 +04:00
CPP=${CPP:Q} CPPFLAGS=${CPPFLAGS:Q} \
${HOST_SH} ${.CURDIR}/makeerrnos.sh \
${DESTDIR}/usr/include/sys/errno.h \
${DESTDIR}/usr/include/sys/signal.h misc
2002-09-19 15:31:21 +04:00
.include "${NETBSDSRCDIR}/usr.bin/kdump/Makefile.ioctl-c"
.include <bsd.prog.mk>
2002-09-19 15:31:21 +04:00
.PATH: ${NETBSDSRCDIR}/usr.bin/ktrace ${NETBSDSRCDIR}/usr.bin/kdump