From 4239793589249949833e2a51f802a11cef8c4745 Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Mon, 12 Jan 2004 19:02:37 +0000 Subject: [PATCH] Add emu10k1-alsa%diked.h dependancies. --- sys/conf/files | 3 ++- sys/conf/kern.post.mk | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/sys/conf/files b/sys/conf/files index 4b96cc5933b9..d134dd402537 100644 --- a/sys/conf/files +++ b/sys/conf/files @@ -721,7 +721,8 @@ dev/sound/pci/csa.c optional pcm pci dev/sound/pci/csamidi.c optional midi csa dev/sound/pci/csapcm.c optional pcm pci dev/sound/pci/ds1.c optional pcm pci -dev/sound/pci/emu10k1.c optional pcm pci +dev/sound/pci/emu10k1.c optional pcm pci dependency "emu10k1-alsa%diked.h" \ + clean "emu10k1-alsa%diked.h" dev/sound/pci/es137x.c optional pcm pci dev/sound/pci/fm801.c optional pcm pci dev/sound/pci/ich.c optional pcm pci diff --git a/sys/conf/kern.post.mk b/sys/conf/kern.post.mk index 5eff5c9b828d..8dc8317cc966 100644 --- a/sys/conf/kern.post.mk +++ b/sys/conf/kern.post.mk @@ -222,6 +222,15 @@ vnode_if.c: $S/tools/vnode_if.awk $S/kern/vnode_if.src vnode_if.h: $S/tools/vnode_if.awk $S/kern/vnode_if.src ${AWK} -f $S/tools/vnode_if.awk $S/kern/vnode_if.src -h +emu10k1-alsa%diked.h: $S/gnu/dev/sound/pci/emu10k1-alsa.h + grep -v '#include' ${.OODATE} | ${CC} -E -D__KERNEL__ -dM - \ + | awk -F"[ (]" '/define/ \ + { print "#ifndef " $$2 ; print ; print "#endif" }' \ + >${.TARGET} +.if !exists(${.OBJDIR}/.depend) +_kernel-depend: emu10k1-alsa%diked.h +.endif + # XXX strictly, everything depends on Makefile because changes to ${PROF} # only appear there, but we don't handle that.