]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/modules/sound/sound/Makefile
merge fix for boot-time hang on centos' xen
[FreeBSD/FreeBSD.git] / sys / modules / sound / sound / Makefile
1 # $FreeBSD$
2
3 .PATH: ${.CURDIR}/../../../dev/sound/pcm
4 .PATH: ${.CURDIR}/../../../dev/sound/isa
5
6 KMOD=   sound
7 SRCS=   device_if.h bus_if.h isa_if.h pci_if.h opt_isa.h
8 SRCS+=  ac97_if.h channel_if.h feeder_if.h mixer_if.h
9 SRCS+=  ac97_if.c channel_if.c feeder_if.c mixer_if.c
10 SRCS+=  ac97.c ac97_patch.c buffer.c channel.c dsp.c
11 SRCS+=  fake.c feeder.c feeder_fmt.c feeder_rate.c feeder_volume.c
12 SRCS+=  mixer.c sndstat.c sound.c vchan.c
13
14 EXPORT_SYMS=    YES     # XXX evaluate
15
16 .if ${MACHINE_ARCH} == "sparc64"
17 # Create an empty opt_isa.h in order to keep kmod.mk from linking in an
18 # existing one from KERNBUILDDIR which possibly has DEV_ISA defined so
19 # sound.ko is always built without isadma support.
20 opt_isa.h:
21         :> ${.TARGET}
22 .else
23 SRCS+=  sndbuf_dma.c
24
25 opt_isa.h:
26         echo "#define DEV_ISA 1" > ${.TARGET}
27 .endif
28
29 .include <bsd.kmod.mk>