1# $FreeBSD$ 2.PATH: ${.CURDIR}/../../../../dev/sound/pci \ 3 ${.CURDIR}/../../../../gnu/dev/sound/pci 4 5KMOD= snd_emu10kx 6 7SRCS= device_if.h bus_if.h pci_if.h 8SRCS+= isa_if.h channel_if.h ac97_if.h mixer_if.h mpufoi_if.h 9SRCS+= vnode_if.h 10# Master, PCM and MIDI devices 11SRCS+= emu10kx.c 12SRCS+= emu10kx-pcm.c 13SRCS+= emu10kx-midi.c 14# de-GPLed Makefiles 15SRCS+= emu10k1-alsa%diked.h 16SRCS+= p16v-alsa%diked.h 17SRCS+= p17v-alsa%diked.h 18 19emu10k1-alsa%diked.h: emu10k1-alsa.h 20 grep -v '#include' ${.OODATE} | $(CC) -E -D__KERNEL__ -dM - \ 21 | awk -F"[ (]" '/define/ \ 22 { print "#ifndef " $$2 ; print ; print "#endif" }' \ 23 >${.TARGET} 24p16v-alsa%diked.h: p16v-alsa.h 25 grep -v '#include' ${.OODATE} | $(CC) -E -D__KERNEL__ -dM - \ 26 | awk -F"[ (]" '/define/ \ 27 { print "#ifndef " $$2 ; print ; print "#endif" }' \ 28 >${.TARGET} 29p17v-alsa%diked.h: p17v-alsa.h 30 grep -v '#include' ${.OODATE} | $(CC) -E -D__KERNEL__ -dM - \ 31 | awk -F"[ (]" '/define/ \ 32 { print "#ifndef " $$2 ; print ; print "#endif" }' \ 33 >${.TARGET} 34 35CLEANFILES+= emu10k1-alsa%diked.h 36CLEANFILES+= p16v-alsa%diked.h 37CLEANFILES+= p17v-alsa%diked.h 38 39.include <bsd.kmod.mk> 40