summaryrefslogtreecommitdiff
path: root/usr.bin/kdump/Makefile
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2011-06-20 17:54:49 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2011-06-20 17:54:49 +0000
commit0dab9b20ae02878b22f5ce0b94031215439f4986 (patch)
tree4468a437e1690cc1bf13256b0ec4d5787fd25cbc /usr.bin/kdump/Makefile
parent78105b9fbcc02388d69bc6832c04f9ee427fa863 (diff)
more fancy kdump output, mostly from FreeBSD; ok deraadt@ tedu@
Diffstat (limited to 'usr.bin/kdump/Makefile')
-rw-r--r--usr.bin/kdump/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.bin/kdump/Makefile b/usr.bin/kdump/Makefile
index 34c1d0936be..90a7e9894d0 100644
--- a/usr.bin/kdump/Makefile
+++ b/usr.bin/kdump/Makefile
@@ -1,11 +1,11 @@
-# $OpenBSD: Makefile,v 1.17 2010/12/29 17:51:48 deraadt Exp $
+# $OpenBSD: Makefile,v 1.18 2011/06/20 17:54:48 otto Exp $
LDSTATIC=${STATIC}
PROG= kdump
CFLAGS+=-I${.CURDIR}/../ktrace -I${.CURDIR} -I${.CURDIR}/../../sys
-SRCS= kdump.c ioctl.c subr.c
+SRCS= kdump.c ioctl.c kdump_subr.c subr.c
.PATH: ${.CURDIR}/../ktrace
-CLEANFILES+=ioctl.c
+CLEANFILES+=ioctl.c kdump_subr.c
ioctl.c: ${.CURDIR}/Makefile ${.CURDIR}/mkioctls
CC="${CC}" DESTDIR="${DESTDIR}" \
@@ -41,4 +41,7 @@ ioctl.c: ${.CURDIR}/Makefile ${.CURDIR}/mkioctls
${DESTDIR}/usr/include/sys/scsiio.h \
${DESTDIR}/usr/include/sys/sockio.h > ioctl.c
+kdump_subr.c: ${.CURDIR}/mksubr
+ sh ${.CURDIR}/mksubr ${DESTDIR}/usr/include > ${.TARGET}
+
.include <bsd.prog.mk>