Makefile 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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. # Each configuration option enables a list of files.
  6. obj-$(CONFIG_SOUND_OSS) += sound.o
  7. # Please leave it as is, cause the link order is significant !
  8. obj-$(CONFIG_SOUND_AEDSP16) += aedsp16.o
  9. obj-$(CONFIG_SOUND_PSS) += pss.o ad1848.o mpu401.o
  10. obj-$(CONFIG_SOUND_TRIX) += trix.o ad1848.o sb_lib.o uart401.o
  11. obj-$(CONFIG_SOUND_MSS) += ad1848.o
  12. obj-$(CONFIG_SOUND_PAS) += pas2.o sb.o sb_lib.o uart401.o
  13. obj-$(CONFIG_SOUND_SB) += sb.o sb_lib.o uart401.o
  14. obj-$(CONFIG_SOUND_KAHLUA) += kahlua.o
  15. obj-$(CONFIG_SOUND_MPU401) += mpu401.o
  16. obj-$(CONFIG_SOUND_UART6850) += uart6850.o
  17. obj-$(CONFIG_SOUND_YM3812) += opl3.o
  18. obj-$(CONFIG_SOUND_VMIDI) += v_midi.o
  19. obj-$(CONFIG_SOUND_VIDC) += vidc_mod.o
  20. obj-$(CONFIG_SOUND_WAVEARTIST) += waveartist.o
  21. obj-$(CONFIG_SOUND_MSNDCLAS) += msnd.o msnd_classic.o
  22. obj-$(CONFIG_SOUND_MSNDPIN) += msnd.o msnd_pinnacle.o
  23. obj-$(CONFIG_SOUND_BCM_CS4297A) += swarm_cs4297a.o
  24. obj-$(CONFIG_DMASOUND) += dmasound/
  25. # Declare multi-part drivers.
  26. sound-objs := \
  27. dev_table.o soundcard.o \
  28. audio.o dmabuf.o \
  29. midi_synth.o midibuf.o \
  30. sequencer.o sound_timer.o sys_timer.o
  31. pas2-objs := pas2_card.o pas2_midi.o pas2_mixer.o pas2_pcm.o
  32. sb-objs := sb_card.o
  33. sb_lib-objs := sb_common.o sb_audio.o sb_midi.o sb_mixer.o sb_ess.o
  34. vidc_mod-objs := vidc.o vidc_fill.o
  35. hostprogs-y := bin2hex hex2hex
  36. # Files generated that shall be removed upon make clean
  37. clean-files := msndperm.c msndinit.c pndsperm.c pndspini.c \
  38. pss_boot.h trix_boot.h
  39. # Firmware files that need translation
  40. #
  41. # The translated files are protected by a file that keeps track
  42. # of what name was used to build them. If the name changes, they
  43. # will be forced to be remade.
  44. #
  45. # Turtle Beach MultiSound
  46. ifeq ($(CONFIG_MSNDCLAS_HAVE_BOOT),y)
  47. $(obj)/msnd_classic.o: $(obj)/msndperm.c $(obj)/msndinit.c
  48. $(obj)/msndperm.c: $(patsubst "%", %, $(CONFIG_MSNDCLAS_PERM_FILE)) $(obj)/bin2hex
  49. $(obj)/bin2hex msndperm < $< > $@
  50. $(obj)/msndinit.c: $(patsubst "%", %, $(CONFIG_MSNDCLAS_INIT_FILE)) $(obj)/bin2hex
  51. $(obj)/bin2hex msndinit < $< > $@
  52. endif
  53. ifeq ($(CONFIG_MSNDPIN_HAVE_BOOT),y)
  54. $(obj)/msnd_pinnacle.o: $(obj)/pndsperm.c $(obj)/pndspini.c
  55. $(obj)/pndsperm.c: $(patsubst "%", %, $(CONFIG_MSNDPIN_PERM_FILE)) $(obj)/bin2hex
  56. $(obj)/bin2hex pndsperm < $< > $@
  57. $(obj)/pndspini.c: $(patsubst "%", %, $(CONFIG_MSNDPIN_INIT_FILE)) $(obj)/bin2hex
  58. $(obj)/bin2hex pndspini < $< > $@
  59. endif
  60. # PSS (ECHO-ADI2111)
  61. $(obj)/pss.o: $(obj)/pss_boot.h
  62. ifeq ($(CONFIG_PSS_HAVE_BOOT),y)
  63. $(obj)/pss_boot.h: $(patsubst "%", %, $(CONFIG_PSS_BOOT_FILE)) $(obj)/bin2hex
  64. $(obj)/bin2hex pss_synth < $< > $@
  65. else
  66. $(obj)/pss_boot.h:
  67. $(Q)( \
  68. echo 'static unsigned char * pss_synth = NULL;'; \
  69. echo 'static int pss_synthLen = 0;'; \
  70. ) > $@
  71. endif
  72. # MediaTrix AudioTrix Pro
  73. $(obj)/trix.o: $(obj)/trix_boot.h
  74. ifeq ($(CONFIG_TRIX_HAVE_BOOT),y)
  75. $(obj)/trix_boot.h: $(patsubst "%", %, $(CONFIG_TRIX_BOOT_FILE)) $(obj)/hex2hex
  76. $(obj)/hex2hex -i trix_boot < $< > $@
  77. else
  78. $(obj)/trix_boot.h:
  79. $(Q)( \
  80. echo 'static unsigned char * trix_boot = NULL;'; \
  81. echo 'static int trix_boot_len = 0;'; \
  82. ) > $@
  83. endif