Say hello to a sound system update from FreeBSD. This includes the long
[dragonfly.git] / sys / dev / sound / pcm / Makefile
CommitLineData
558a398b
SS
1# $FreeBSD: src/sys/modules/sound/sound/Makefile,v 1.16.2.2 2006/09/13 08:40:21 des Exp $
2# $DragonFly: src/sys/dev/sound/pcm/Makefile,v 1.3 2007/01/04 21:47:03 corecode Exp $
3
4.PATH: ${.CURDIR}/../isa
5
6KMOD= sound
7SRCS= device_if.h bus_if.h isa_if.h pci_if.h use_isa.h
8SRCS+= ac97_if.h channel_if.h feeder_if.h mixer_if.h
9SRCS+= ac97_if.c channel_if.c feeder_if.c mixer_if.c
10SRCS+= ac97.c ac97_patch.c buffer.c channel.c dsp.c
11SRCS+= fake.c feeder.c feeder_fmt.c feeder_rate.c feeder_volume.c
12SRCS+= mixer.c sndstat.c sound.c vchan.c
13
14EXPORT_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.
20use_isa.h:
21 :> ${.TARGET}
22.else
23SRCS+= sndbuf_dma.c
24
25.ifndef BUILDING_WITH_KERNEL
26use_isa.h:
27 echo "#define NISA 1" > ${.TARGET}
28.endif
29.endif
984263bc
MD
30
31.include <bsd.kmod.mk>