Commit | Line | Data |
---|---|---|
1da177e4 LT |
1 | # 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 | ||
8 | obj-$(CONFIG_SOUND_OSS) += sound.o | |
9 | obj-$(CONFIG_SOUND_CS4232) += cs4232.o ad1848.o | |
10 | ||
11 | # Please leave it as is, cause the link order is significant ! | |
12 | ||
13 | obj-$(CONFIG_SOUND_SH_DAC_AUDIO) += sh_dac_audio.o | |
14 | obj-$(CONFIG_SOUND_HAL2) += hal2.o | |
15 | obj-$(CONFIG_SOUND_AEDSP16) += aedsp16.o | |
16 | obj-$(CONFIG_SOUND_PSS) += pss.o ad1848.o mpu401.o | |
17 | obj-$(CONFIG_SOUND_TRIX) += trix.o ad1848.o sb_lib.o uart401.o | |
1da177e4 | 18 | obj-$(CONFIG_SOUND_SSCAPE) += sscape.o ad1848.o mpu401.o |
1da177e4 LT |
19 | obj-$(CONFIG_SOUND_CS4232) += cs4232.o uart401.o |
20 | obj-$(CONFIG_SOUND_MSS) += ad1848.o | |
1da177e4 LT |
21 | obj-$(CONFIG_SOUND_PAS) += pas2.o sb.o sb_lib.o uart401.o |
22 | obj-$(CONFIG_SOUND_SB) += sb.o sb_lib.o uart401.o | |
23 | obj-$(CONFIG_SOUND_KAHLUA) += kahlua.o | |
1da177e4 LT |
24 | obj-$(CONFIG_SOUND_MPU401) += mpu401.o |
25 | obj-$(CONFIG_SOUND_UART6850) += uart6850.o | |
1da177e4 LT |
26 | obj-$(CONFIG_SOUND_YM3812) += opl3.o |
27 | obj-$(CONFIG_SOUND_VMIDI) += v_midi.o | |
28 | obj-$(CONFIG_SOUND_VIDC) += vidc_mod.o | |
29 | obj-$(CONFIG_SOUND_WAVEARTIST) += waveartist.o | |
1da177e4 LT |
30 | |
31 | obj-$(CONFIG_SOUND_VIA82CXXX) += via82cxxx_audio.o ac97_codec.o | |
32 | ifeq ($(CONFIG_MIDI_VIA82CXXX),y) | |
33 | obj-$(CONFIG_SOUND_VIA82CXXX) += sound.o uart401.o | |
34 | endif | |
1da177e4 LT |
35 | obj-$(CONFIG_SOUND_MSNDCLAS) += msnd.o msnd_classic.o |
36 | obj-$(CONFIG_SOUND_MSNDPIN) += msnd.o msnd_pinnacle.o | |
37 | obj-$(CONFIG_SOUND_VWSND) += vwsnd.o | |
1da177e4 | 38 | obj-$(CONFIG_SOUND_ICH) += i810_audio.o ac97_codec.o |
1da177e4 | 39 | obj-$(CONFIG_SOUND_AU1550_AC97) += au1550_ac97.o ac97_codec.o |
1da177e4 | 40 | obj-$(CONFIG_SOUND_TRIDENT) += trident.o ac97_codec.o |
1da177e4 | 41 | obj-$(CONFIG_SOUND_BCM_CS4297A) += swarm_cs4297a.o |
1da177e4 | 42 | obj-$(CONFIG_SOUND_BT878) += btaudio.o |
1da177e4 | 43 | |
1da177e4 LT |
44 | obj-$(CONFIG_SOUND_WM97XX) += ac97_plugin_wm97xx.o |
45 | ||
1da177e4 LT |
46 | obj-$(CONFIG_DMASOUND) += dmasound/ |
47 | ||
48 | # Declare multi-part drivers. | |
49 | ||
50 | sound-objs := \ | |
ece7f77b AB |
51 | dev_table.o soundcard.o \ |
52 | audio.o dmabuf.o \ | |
53 | midi_synth.o midibuf.o \ | |
54 | sequencer.o sound_timer.o sys_timer.o | |
1da177e4 | 55 | |
1da177e4 LT |
56 | pas2-objs := pas2_card.o pas2_midi.o pas2_mixer.o pas2_pcm.o |
57 | sb-objs := sb_card.o | |
58 | sb_lib-objs := sb_common.o sb_audio.o sb_midi.o sb_mixer.o sb_ess.o | |
59 | vidc_mod-objs := vidc.o vidc_fill.o | |
1da177e4 LT |
60 | |
61 | hostprogs-y := bin2hex hex2hex | |
62 | ||
63 | # Files generated that shall be removed upon make clean | |
d56b9b9c | 64 | clean-files := msndperm.c msndinit.c pndsperm.c pndspini.c \ |
1da177e4 LT |
65 | pss_boot.h trix_boot.h |
66 | ||
67 | # Firmware files that need translation | |
68 | # | |
69 | # The translated files are protected by a file that keeps track | |
70 | # of what name was used to build them. If the name changes, they | |
71 | # will be forced to be remade. | |
72 | # | |
73 | ||
1da177e4 LT |
74 | # Turtle Beach MultiSound |
75 | ||
76 | ifeq ($(CONFIG_MSNDCLAS_HAVE_BOOT),y) | |
77 | $(obj)/msnd_classic.o: $(obj)/msndperm.c $(obj)/msndinit.c | |
78 | ||
79 | $(obj)/msndperm.c: $(patsubst "%", %, $(CONFIG_MSNDCLAS_PERM_FILE)) $(obj)/bin2hex | |
80 | $(obj)/bin2hex msndperm < $< > $@ | |
81 | ||
82 | $(obj)/msndinit.c: $(patsubst "%", %, $(CONFIG_MSNDCLAS_INIT_FILE)) $(obj)/bin2hex | |
83 | $(obj)/bin2hex msndinit < $< > $@ | |
84 | endif | |
85 | ||
86 | ifeq ($(CONFIG_MSNDPIN_HAVE_BOOT),y) | |
87 | $(obj)/msnd_pinnacle.o: $(obj)/pndsperm.c $(obj)/pndspini.c | |
88 | ||
89 | $(obj)/pndsperm.c: $(patsubst "%", %, $(CONFIG_MSNDPIN_PERM_FILE)) $(obj)/bin2hex | |
90 | $(obj)/bin2hex pndsperm < $< > $@ | |
91 | ||
92 | $(obj)/pndspini.c: $(patsubst "%", %, $(CONFIG_MSNDPIN_INIT_FILE)) $(obj)/bin2hex | |
93 | $(obj)/bin2hex pndspini < $< > $@ | |
94 | endif | |
95 | ||
96 | # PSS (ECHO-ADI2111) | |
97 | ||
98 | $(obj)/pss.o: $(obj)/pss_boot.h | |
99 | ||
100 | ifeq ($(CONFIG_PSS_HAVE_BOOT),y) | |
101 | $(obj)/pss_boot.h: $(patsubst "%", %, $(CONFIG_PSS_BOOT_FILE)) $(obj)/bin2hex | |
102 | $(obj)/bin2hex pss_synth < $< > $@ | |
103 | else | |
104 | $(obj)/pss_boot.h: | |
105 | ( \ | |
106 | echo 'static unsigned char * pss_synth = NULL;'; \ | |
107 | echo 'static int pss_synthLen = 0;'; \ | |
108 | ) > $@ | |
109 | endif | |
110 | ||
111 | # MediaTrix AudioTrix Pro | |
112 | ||
113 | $(obj)/trix.o: $(obj)/trix_boot.h | |
114 | ||
115 | ifeq ($(CONFIG_TRIX_HAVE_BOOT),y) | |
116 | $(obj)/trix_boot.h: $(patsubst "%", %, $(CONFIG_TRIX_BOOT_FILE)) $(obj)/hex2hex | |
117 | $(obj)/hex2hex -i trix_boot < $< > $@ | |
118 | else | |
119 | $(obj)/trix_boot.h: | |
120 | ( \ | |
121 | echo 'static unsigned char * trix_boot = NULL;'; \ | |
122 | echo 'static int trix_boot_len = 0;'; \ | |
123 | ) > $@ | |
124 | endif |