Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 18 | obj-$(CONFIG_SOUND_SSCAPE) += sscape.o ad1848.o mpu401.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 19 | obj-$(CONFIG_SOUND_CS4232) += cs4232.o uart401.o |
| 20 | obj-$(CONFIG_SOUND_MSS) += ad1848.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 24 | obj-$(CONFIG_SOUND_MPU401) += mpu401.o |
| 25 | obj-$(CONFIG_SOUND_UART6850) += uart6850.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 38 | obj-$(CONFIG_SOUND_ICH) += i810_audio.o ac97_codec.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 39 | obj-$(CONFIG_SOUND_ES1371) += es1371.o ac97_codec.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 40 | obj-$(CONFIG_SOUND_AU1550_AC97) += au1550_ac97.o ac97_codec.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 41 | obj-$(CONFIG_SOUND_TRIDENT) += trident.o ac97_codec.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 42 | obj-$(CONFIG_SOUND_BCM_CS4297A) += swarm_cs4297a.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 43 | obj-$(CONFIG_SOUND_BT878) += btaudio.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 44 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 45 | obj-$(CONFIG_SOUND_WM97XX) += ac97_plugin_wm97xx.o |
| 46 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 47 | obj-$(CONFIG_DMASOUND) += dmasound/ |
| 48 | |
| 49 | # Declare multi-part drivers. |
| 50 | |
| 51 | sound-objs := \ |
Adrian Bunk | ece7f77 | 2006-10-04 02:17:31 -0700 | [diff] [blame] | 52 | dev_table.o soundcard.o \ |
| 53 | audio.o dmabuf.o \ |
| 54 | midi_synth.o midibuf.o \ |
| 55 | sequencer.o sound_timer.o sys_timer.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 56 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 57 | pas2-objs := pas2_card.o pas2_midi.o pas2_mixer.o pas2_pcm.o |
| 58 | sb-objs := sb_card.o |
| 59 | sb_lib-objs := sb_common.o sb_audio.o sb_midi.o sb_mixer.o sb_ess.o |
| 60 | vidc_mod-objs := vidc.o vidc_fill.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 61 | |
| 62 | hostprogs-y := bin2hex hex2hex |
| 63 | |
| 64 | # Files generated that shall be removed upon make clean |
Adrian Bunk | d56b9b9 | 2006-10-04 02:17:22 -0700 | [diff] [blame] | 65 | clean-files := msndperm.c msndinit.c pndsperm.c pndspini.c \ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 66 | pss_boot.h trix_boot.h |
| 67 | |
| 68 | # Firmware files that need translation |
| 69 | # |
| 70 | # The translated files are protected by a file that keeps track |
| 71 | # of what name was used to build them. If the name changes, they |
| 72 | # will be forced to be remade. |
| 73 | # |
| 74 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 75 | # Turtle Beach MultiSound |
| 76 | |
| 77 | ifeq ($(CONFIG_MSNDCLAS_HAVE_BOOT),y) |
| 78 | $(obj)/msnd_classic.o: $(obj)/msndperm.c $(obj)/msndinit.c |
| 79 | |
| 80 | $(obj)/msndperm.c: $(patsubst "%", %, $(CONFIG_MSNDCLAS_PERM_FILE)) $(obj)/bin2hex |
| 81 | $(obj)/bin2hex msndperm < $< > $@ |
| 82 | |
| 83 | $(obj)/msndinit.c: $(patsubst "%", %, $(CONFIG_MSNDCLAS_INIT_FILE)) $(obj)/bin2hex |
| 84 | $(obj)/bin2hex msndinit < $< > $@ |
| 85 | endif |
| 86 | |
| 87 | ifeq ($(CONFIG_MSNDPIN_HAVE_BOOT),y) |
| 88 | $(obj)/msnd_pinnacle.o: $(obj)/pndsperm.c $(obj)/pndspini.c |
| 89 | |
| 90 | $(obj)/pndsperm.c: $(patsubst "%", %, $(CONFIG_MSNDPIN_PERM_FILE)) $(obj)/bin2hex |
| 91 | $(obj)/bin2hex pndsperm < $< > $@ |
| 92 | |
| 93 | $(obj)/pndspini.c: $(patsubst "%", %, $(CONFIG_MSNDPIN_INIT_FILE)) $(obj)/bin2hex |
| 94 | $(obj)/bin2hex pndspini < $< > $@ |
| 95 | endif |
| 96 | |
| 97 | # PSS (ECHO-ADI2111) |
| 98 | |
| 99 | $(obj)/pss.o: $(obj)/pss_boot.h |
| 100 | |
| 101 | ifeq ($(CONFIG_PSS_HAVE_BOOT),y) |
| 102 | $(obj)/pss_boot.h: $(patsubst "%", %, $(CONFIG_PSS_BOOT_FILE)) $(obj)/bin2hex |
| 103 | $(obj)/bin2hex pss_synth < $< > $@ |
| 104 | else |
| 105 | $(obj)/pss_boot.h: |
| 106 | ( \ |
| 107 | echo 'static unsigned char * pss_synth = NULL;'; \ |
| 108 | echo 'static int pss_synthLen = 0;'; \ |
| 109 | ) > $@ |
| 110 | endif |
| 111 | |
| 112 | # MediaTrix AudioTrix Pro |
| 113 | |
| 114 | $(obj)/trix.o: $(obj)/trix_boot.h |
| 115 | |
| 116 | ifeq ($(CONFIG_TRIX_HAVE_BOOT),y) |
| 117 | $(obj)/trix_boot.h: $(patsubst "%", %, $(CONFIG_TRIX_BOOT_FILE)) $(obj)/hex2hex |
| 118 | $(obj)/hex2hex -i trix_boot < $< > $@ |
| 119 | else |
| 120 | $(obj)/trix_boot.h: |
| 121 | ( \ |
| 122 | echo 'static unsigned char * trix_boot = NULL;'; \ |
| 123 | echo 'static int trix_boot_len = 0;'; \ |
| 124 | ) > $@ |
| 125 | endif |