]> CyberLeo.Net >> Repos - FreeBSD/releng/7.2.git/blob - sys/modules/sound/sound/Makefile
Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.
[FreeBSD/releng/7.2.git] / sys / modules / sound / sound / Makefile
1 # $FreeBSD$
2
3 .PATH: ${.CURDIR}/../../../dev/sound
4 .PATH: ${.CURDIR}/../../../dev/sound/pcm
5 .PATH: ${.CURDIR}/../../../dev/sound/midi
6 .PATH: ${.CURDIR}/../../../dev/sound/isa
7
8 KMOD=   sound
9 SRCS=   device_if.h bus_if.h isa_if.h pci_if.h opt_isa.h
10 SRCS+=  ac97_if.h channel_if.h feeder_if.h mixer_if.h
11 SRCS+=  ac97_if.c channel_if.c feeder_if.c mixer_if.c
12 SRCS+=  mpu_if.h mpufoi_if.h synth_if.h
13 SRCS+=  mpu_if.c mpufoi_if.c synth_if.c
14 SRCS+=  ac97.c ac97_patch.c buffer.c channel.c clone.c dsp.c
15 SRCS+=  fake.c feeder.c feeder_fmt.c feeder_rate.c feeder_volume.c
16 SRCS+=  mixer.c sndstat.c sound.c unit.c vchan.c
17 SRCS+=  midi.c mpu401.c sequencer.c
18
19 EXPORT_SYMS=    YES     # XXX evaluate
20
21 .if ${MACHINE_ARCH} == "sparc64"
22 # Create an empty opt_isa.h in order to keep kmod.mk from linking in an
23 # existing one from KERNBUILDDIR which possibly has DEV_ISA defined so
24 # sound.ko is always built without isadma support.
25 opt_isa.h:
26         :> ${.TARGET}
27 .else
28 .if !defined(KERNBUILDDIR)
29 SRCS+=  sndbuf_dma.c
30
31 opt_isa.h:
32         echo "#define DEV_ISA 1" > ${.TARGET}
33 .else
34 DEV_ISA!= sed -n '/DEV_ISA/p' ${KERNBUILDDIR}/opt_isa.h
35 .if !empty(DEV_ISA)
36 SRCS+=  sndbuf_dma.c
37 .endif
38 .endif
39 .endif
40
41 .include <bsd.kmod.mk>