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