summaryrefslogtreecommitdiffstats
path: root/sys/modules/sound/driver/emu10kx/Makefile
blob: dd44711af49a8c6622b2f6e3a79078b23967a79f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# $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
	echo "#define	SND_EMU10KX_MCH_RECORDING" >> opt_emu10kx.h
	echo "#undef	SND_EMU10KX_DEBUG_OUTPUTS" >> opt_emu10kx.h
	echo "#undef	SND_EMU10KX_DEBUG" >> opt_emu10kx.h
.endif

.include <bsd.kmod.mk>
OpenPOWER on IntegriCloud