1# 2# Makefile for ALSA 3# Copyright (c) 2001 by Jaroslav Kysela <perex@perex.cz> 4# 5 6snd-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 12snd-gus-synth-objs := gus_synth.o gus_sample.o gus_simple.o gus_instr.o 13 14snd-gusclassic-objs := gusclassic.o 15snd-gusextreme-objs := gusextreme.o 16snd-gusmax-objs := gusmax.o 17snd-interwave-objs := interwave.o 18snd-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# 26sequencer = $(if $(subst y,,$(CONFIG_SND_SEQUENCER)),$(if $(1),m),$(if $(CONFIG_SND_SEQUENCER),$(1))) 27 28# Toplevel Module Dependency 29obj-$(CONFIG_SND_GUSCLASSIC) += snd-gusclassic.o snd-gus-lib.o 30obj-$(CONFIG_SND_GUSMAX) += snd-gusmax.o snd-gus-lib.o 31obj-$(CONFIG_SND_GUSEXTREME) += snd-gusextreme.o snd-gus-lib.o 32obj-$(CONFIG_SND_INTERWAVE) += snd-interwave.o snd-gus-lib.o 33obj-$(CONFIG_SND_INTERWAVE_STB) += snd-interwave-stb.o snd-gus-lib.o 34obj-$(call sequencer,$(CONFIG_SND_GUS_SYNTH)) += snd-gus-synth.o 35 36obj-m := $(sort $(obj-m)) 37