1# $FreeBSD$ 2.PATH: ${.CURDIR}/../../../../dev/sound/pci \ 3 ${.CURDIR}/../../../../gnu/dev/sound/pci 4 5WARNS?= 2 ## because sound is WARNS=2 only 6## WARNS=3 fails on _class.refs in -pcm.c 7## WARNS=4 fails on min/max in sound headers 8## otherwise it should be WARNS=6 clean 9KMOD= snd_emu10kx 10 11SRCS= device_if.h bus_if.h pci_if.h 12SRCS+= isa_if.h channel_if.h ac97_if.h mixer_if.h mpufoi_if.h 13SRCS+= vnode_if.h opt_emu10kx.h 14# Master, PCM and MIDI devices 15SRCS+= emu10kx.c 16SRCS+= emu10kx-pcm.c 17SRCS+= emu10kx-midi.c 18# de-GPLed Makefiles 19SRCS+= emu10k1-alsa%diked.h 20SRCS+= p16v-alsa%diked.h 21SRCS+= p17v-alsa%diked.h 22 23emu10k1-alsa%diked.h: emu10k1-alsa.h 24 grep -v '#include' ${.OODATE} | $(CC) -E -D__KERNEL__ -dM - \ 25 | awk -F"[ (]" '/define/ \ 26 { print "#ifndef " $$2 ; print ; print "#endif" }' \ 27 >${.TARGET} 28p16v-alsa%diked.h: p16v-alsa.h 29 grep -v '#include' ${.OODATE} | $(CC) -E -D__KERNEL__ -dM - \ 30 | awk -F"[ (]" '/define/ \ 31 { print "#ifndef " $$2 ; print ; print "#endif" }' \ 32 >${.TARGET} 33p17v-alsa%diked.h: p17v-alsa.h 34 grep -v '#include' ${.OODATE} | $(CC) -E -D__KERNEL__ -dM - \ 35 | awk -F"[ (]" '/define/ \ 36 { print "#ifndef " $$2 ; print ; print "#endif" }' \ 37 >${.TARGET} 38 39CLEANFILES+= emu10k1-alsa%diked.h 40CLEANFILES+= p16v-alsa%diked.h 41CLEANFILES+= p17v-alsa%diked.h 42 43.if !defined(KERNBUILDDIR) 44opt_emu10kx.h: 45 echo "#define SND_EMU10KX_MULTICHANNEL" > opt_emu10kx.h 46 echo "#undef SND_EMU10KX_MCH_RECORDING" >> opt_emu10kx.h 47 echo "#undef SND_EMU10KX_DEBUG_OUTPUTS" >> opt_emu10kx.h 48 echo "#undef SND_EMU10KX_DEBUG" >> opt_emu10kx.h 49.endif 50 51.include <bsd.kmod.mk> 52