diff options
| author | Alexander Leidinger <netchild@FreeBSD.org> | 2006-07-15 19:36:28 +0000 |
|---|---|---|
| committer | Alexander Leidinger <netchild@FreeBSD.org> | 2006-07-15 19:36:28 +0000 |
| commit | d056fa046c6a91b90cd98165face0e42a33a5173 (patch) | |
| tree | d6217a5fec60b1a6defd1d32108540aac9366012 /sys/modules | |
| parent | 53f4fb110960e51a63a902d8f9a2735d33f4ad22 (diff) | |
Notes
Diffstat (limited to 'sys/modules')
| -rw-r--r-- | sys/modules/sound/driver/emu10kx/Makefile | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/sys/modules/sound/driver/emu10kx/Makefile b/sys/modules/sound/driver/emu10kx/Makefile new file mode 100644 index 000000000000..f65be3506133 --- /dev/null +++ b/sys/modules/sound/driver/emu10kx/Makefile @@ -0,0 +1,48 @@ +# $FreeBSD$ +.PATH: ${.CURDIR}/../../../../dev/sound/pci \ + ${.CURDIR}/../../../../gnu/dev/sound/pci + +WARNS?= 2 ## because sound is WARNS=2 only +## WARNS=3 fails on _class.refs in -pcm.c +## WARNS=4 fails on min/max in sound headers +## otherwise it should be WARNS=6 clean +KMOD= snd_emu10kx + +SRCS= device_if.h bus_if.h pci_if.h +SRCS+= isa_if.h channel_if.h ac97_if.h mixer_if.h mpufoi_if.h +SRCS+= vnode_if.h opt_emu10kx.h +# Master, PCM and MIDI devices +SRCS+= emu10kx.c +SRCS+= emu10kx-pcm.c +SRCS+= emu10kx-midi.c +# de-GPLed Makefiles +SRCS+= emu10k1-alsa%diked.h +SRCS+= p16v-alsa%diked.h +SRCS+= p17v-alsa%diked.h + +emu10k1-alsa%diked.h: emu10k1-alsa.h + grep -v '#include' ${.OODATE} | $(CC) -E -D__KERNEL__ -dM - \ + | awk -F"[ (]" '/define/ \ + { print "#ifndef " $$2 ; print ; print "#endif" }' \ + >${.TARGET} +p16v-alsa%diked.h: p16v-alsa.h + grep -v '#include' ${.OODATE} | $(CC) -E -D__KERNEL__ -dM - \ + | awk -F"[ (]" '/define/ \ + { print "#ifndef " $$2 ; print ; print "#endif" }' \ + >${.TARGET} +p17v-alsa%diked.h: p17v-alsa.h + grep -v '#include' ${.OODATE} | $(CC) -E -D__KERNEL__ -dM - \ + | awk -F"[ (]" '/define/ \ + { print "#ifndef " $$2 ; print ; print "#endif" }' \ + >${.TARGET} + +CLEANFILES+= emu10k1-alsa%diked.h +CLEANFILES+= p16v-alsa%diked.h +CLEANFILES+= p17v-alsa%diked.h + +.if !defined(KERNBUILDDIR) +opt_emu10kx.h: + echo "#define SND_EMU10KX_MULTICHANNEL" > opt_emu10kx.h +.endif + +.include <bsd.kmod.mk> |
