Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | # |
| 2 | # Makefile for ALSA |
Jaroslav Kysela | c1017a4 | 2007-10-15 09:50:19 +0200 | [diff] [blame] | 3 | # Copyright (c) 2001 by Jaroslav Kysela <perex@perex.cz> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4 | # |
| 5 | |
| 6 | snd-gus-lib-objs := gus_main.o \ |
| 7 | gus_io.o gus_irq.o gus_timer.o \ |
| 8 | gus_mem.o gus_mem_proc.o gus_dram.o gus_dma.o gus_volume.o \ |
| 9 | gus_pcm.o gus_mixer.o \ |
| 10 | gus_uart.o \ |
| 11 | gus_reset.o |
| 12 | snd-gus-synth-objs := gus_synth.o gus_sample.o gus_simple.o gus_instr.o |
| 13 | |
| 14 | snd-gusclassic-objs := gusclassic.o |
| 15 | snd-gusextreme-objs := gusextreme.o |
| 16 | snd-gusmax-objs := gusmax.o |
| 17 | snd-interwave-objs := interwave.o |
| 18 | snd-interwave-stb-objs := interwave-stb.o |
| 19 | |
| 20 | # |
| 21 | # this function returns: |
| 22 | # "m" - CONFIG_SND_SEQUENCER is m |
| 23 | # <empty string> - CONFIG_SND_SEQUENCER is undefined |
| 24 | # otherwise parameter #1 value |
| 25 | # |
| 26 | sequencer = $(if $(subst y,,$(CONFIG_SND_SEQUENCER)),$(if $(1),m),$(if $(CONFIG_SND_SEQUENCER),$(1))) |
| 27 | |
| 28 | # Toplevel Module Dependency |
| 29 | obj-$(CONFIG_SND_GUSCLASSIC) += snd-gusclassic.o snd-gus-lib.o |
| 30 | obj-$(CONFIG_SND_GUSMAX) += snd-gusmax.o snd-gus-lib.o |
| 31 | obj-$(CONFIG_SND_GUSEXTREME) += snd-gusextreme.o snd-gus-lib.o |
| 32 | obj-$(CONFIG_SND_INTERWAVE) += snd-interwave.o snd-gus-lib.o |
| 33 | obj-$(CONFIG_SND_INTERWAVE_STB) += snd-interwave-stb.o snd-gus-lib.o |
| 34 | obj-$(call sequencer,$(CONFIG_SND_GUS_SYNTH)) += snd-gus-synth.o |
| 35 | |
| 36 | obj-m := $(sort $(obj-m)) |