summaryrefslogtreecommitdiffstats
path: root/usr.bin/kdump
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2011-10-08 12:59:41 +0000
committerdes <des@FreeBSD.org>2011-10-08 12:59:41 +0000
commit4b5f03bca4f32ad9d3a7bd77b9555771a0045e0b (patch)
tree82681e5f217923f8a42ca0c5fec48257938e3fd4 /usr.bin/kdump
parent0d23c50594a57a81eb8c0b7f952ee2612cf56220 (diff)
downloadFreeBSD-src-4b5f03bca4f32ad9d3a7bd77b9555771a0045e0b.zip
FreeBSD-src-4b5f03bca4f32ad9d3a7bd77b9555771a0045e0b.tar.gz
Fix the dependency issue properly by a) moving kdump_subr.c to the front
of the SRCS list and b) listing kdump_subr.h in DPSRCS.
Diffstat (limited to 'usr.bin/kdump')
-rw-r--r--usr.bin/kdump/Makefile8
1 files changed, 2 insertions, 6 deletions
diff --git a/usr.bin/kdump/Makefile b/usr.bin/kdump/Makefile
index 53804dc..e64aaa4 100644
--- a/usr.bin/kdump/Makefile
+++ b/usr.bin/kdump/Makefile
@@ -8,7 +8,8 @@ SFX= 32
.PATH: ${.CURDIR}/../ktrace
PROG= kdump
-SRCS= kdump.c ioctl.c kdump_subr.c subr.c
+SRCS= kdump_subr.c kdump.c ioctl.c subr.c
+DPSRCS= kdump_subr.h
CFLAGS+= -I${.CURDIR}/../ktrace -I${.CURDIR} -I${.CURDIR}/../.. -I.
.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386"
@@ -29,11 +30,6 @@ kdump_subr.h: mksubr
kdump_subr.c: mksubr kdump_subr.h
sh ${.CURDIR}/mksubr ${DESTDIR}/usr/include >${.TARGET}
-# kdump.c includes kdump_subr.h, which is auto-generated. Add a
-# manual dependency to make sure kdump_subr.h is generated before we
-# try to either compile or preprocess kdump.c.
-${.CURDIR}/kdump.c: kdump_subr.h
-
linux_syscalls.c:
/bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh \
${.CURDIR}/../../sys/${MACHINE_ARCH}/linux${SFX}/syscalls.master ${.CURDIR}/linux_syscalls.conf
OpenPOWER on IntegriCloud