blob: 567b8a74178a36bfca43a3f7b1a408a60bfec922 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001# Makefile for the Linux sound card driver
2#
3# 18 Apr 1998, Michael Elizabeth Chastain, <mailto:mec@shout.net>
4# Rewritten to use lists instead of if-statements.
5
6# Each configuration option enables a list of files.
7
8obj-$(CONFIG_SOUND_OSS) += sound.o
Linus Torvalds1da177e2005-04-16 15:20:36 -07009
10# Please leave it as is, cause the link order is significant !
11
12obj-$(CONFIG_SOUND_SH_DAC_AUDIO) += sh_dac_audio.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070013obj-$(CONFIG_SOUND_AEDSP16) += aedsp16.o
14obj-$(CONFIG_SOUND_PSS) += pss.o ad1848.o mpu401.o
15obj-$(CONFIG_SOUND_TRIX) += trix.o ad1848.o sb_lib.o uart401.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070016obj-$(CONFIG_SOUND_MSS) += ad1848.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070017obj-$(CONFIG_SOUND_PAS) += pas2.o sb.o sb_lib.o uart401.o
18obj-$(CONFIG_SOUND_SB) += sb.o sb_lib.o uart401.o
19obj-$(CONFIG_SOUND_KAHLUA) += kahlua.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070020obj-$(CONFIG_SOUND_MPU401) += mpu401.o
21obj-$(CONFIG_SOUND_UART6850) += uart6850.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070022obj-$(CONFIG_SOUND_YM3812) += opl3.o
23obj-$(CONFIG_SOUND_VMIDI) += v_midi.o
24obj-$(CONFIG_SOUND_VIDC) += vidc_mod.o
25obj-$(CONFIG_SOUND_WAVEARTIST) += waveartist.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070026obj-$(CONFIG_SOUND_MSNDCLAS) += msnd.o msnd_classic.o
27obj-$(CONFIG_SOUND_MSNDPIN) += msnd.o msnd_pinnacle.o
28obj-$(CONFIG_SOUND_VWSND) += vwsnd.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070029obj-$(CONFIG_SOUND_AU1550_AC97) += au1550_ac97.o ac97_codec.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070030obj-$(CONFIG_SOUND_BCM_CS4297A) += swarm_cs4297a.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070031
Linus Torvalds1da177e2005-04-16 15:20:36 -070032obj-$(CONFIG_DMASOUND) += dmasound/
33
34# Declare multi-part drivers.
35
36sound-objs := \
Adrian Bunkece7f772006-10-04 02:17:31 -070037 dev_table.o soundcard.o \
38 audio.o dmabuf.o \
39 midi_synth.o midibuf.o \
40 sequencer.o sound_timer.o sys_timer.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070041
Linus Torvalds1da177e2005-04-16 15:20:36 -070042pas2-objs := pas2_card.o pas2_midi.o pas2_mixer.o pas2_pcm.o
43sb-objs := sb_card.o
44sb_lib-objs := sb_common.o sb_audio.o sb_midi.o sb_mixer.o sb_ess.o
45vidc_mod-objs := vidc.o vidc_fill.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070046
47hostprogs-y := bin2hex hex2hex
48
49# Files generated that shall be removed upon make clean
Adrian Bunkd56b9b92006-10-04 02:17:22 -070050clean-files := msndperm.c msndinit.c pndsperm.c pndspini.c \
Linus Torvalds1da177e2005-04-16 15:20:36 -070051 pss_boot.h trix_boot.h
52
53# Firmware files that need translation
54#
55# The translated files are protected by a file that keeps track
56# of what name was used to build them. If the name changes, they
57# will be forced to be remade.
58#
59
Linus Torvalds1da177e2005-04-16 15:20:36 -070060# Turtle Beach MultiSound
61
62ifeq ($(CONFIG_MSNDCLAS_HAVE_BOOT),y)
63 $(obj)/msnd_classic.o: $(obj)/msndperm.c $(obj)/msndinit.c
64
65 $(obj)/msndperm.c: $(patsubst "%", %, $(CONFIG_MSNDCLAS_PERM_FILE)) $(obj)/bin2hex
66 $(obj)/bin2hex msndperm < $< > $@
67
68 $(obj)/msndinit.c: $(patsubst "%", %, $(CONFIG_MSNDCLAS_INIT_FILE)) $(obj)/bin2hex
69 $(obj)/bin2hex msndinit < $< > $@
70endif
71
72ifeq ($(CONFIG_MSNDPIN_HAVE_BOOT),y)
73 $(obj)/msnd_pinnacle.o: $(obj)/pndsperm.c $(obj)/pndspini.c
74
75 $(obj)/pndsperm.c: $(patsubst "%", %, $(CONFIG_MSNDPIN_PERM_FILE)) $(obj)/bin2hex
76 $(obj)/bin2hex pndsperm < $< > $@
77
78 $(obj)/pndspini.c: $(patsubst "%", %, $(CONFIG_MSNDPIN_INIT_FILE)) $(obj)/bin2hex
79 $(obj)/bin2hex pndspini < $< > $@
80endif
81
82# PSS (ECHO-ADI2111)
83
84$(obj)/pss.o: $(obj)/pss_boot.h
85
86ifeq ($(CONFIG_PSS_HAVE_BOOT),y)
87 $(obj)/pss_boot.h: $(patsubst "%", %, $(CONFIG_PSS_BOOT_FILE)) $(obj)/bin2hex
88 $(obj)/bin2hex pss_synth < $< > $@
89else
90 $(obj)/pss_boot.h:
91 ( \
92 echo 'static unsigned char * pss_synth = NULL;'; \
93 echo 'static int pss_synthLen = 0;'; \
94 ) > $@
95endif
96
97# MediaTrix AudioTrix Pro
98
99$(obj)/trix.o: $(obj)/trix_boot.h
100
101ifeq ($(CONFIG_TRIX_HAVE_BOOT),y)
102 $(obj)/trix_boot.h: $(patsubst "%", %, $(CONFIG_TRIX_BOOT_FILE)) $(obj)/hex2hex
103 $(obj)/hex2hex -i trix_boot < $< > $@
104else
105 $(obj)/trix_boot.h:
106 ( \
107 echo 'static unsigned char * trix_boot = NULL;'; \
108 echo 'static int trix_boot_len = 0;'; \
109 ) > $@
110endif