11da177e4SLinus Torvalds# 21da177e4SLinus Torvalds# Makefile for ALSA 31da177e4SLinus Torvalds# Copyright (c) 2001 by Jaroslav Kysela <perex@suse.cz> 41da177e4SLinus Torvalds# 51da177e4SLinus Torvalds 61da177e4SLinus Torvaldssnd-gus-lib-objs := gus_main.o \ 71da177e4SLinus Torvalds gus_io.o gus_irq.o gus_timer.o \ 81da177e4SLinus Torvalds gus_mem.o gus_mem_proc.o gus_dram.o gus_dma.o gus_volume.o \ 91da177e4SLinus Torvalds gus_pcm.o gus_mixer.o \ 101da177e4SLinus Torvalds gus_uart.o \ 111da177e4SLinus Torvalds gus_reset.o 121da177e4SLinus Torvaldssnd-gus-synth-objs := gus_synth.o gus_sample.o gus_simple.o gus_instr.o 131da177e4SLinus Torvalds 141da177e4SLinus Torvaldssnd-gusclassic-objs := gusclassic.o 151da177e4SLinus Torvaldssnd-gusextreme-objs := gusextreme.o 161da177e4SLinus Torvaldssnd-gusmax-objs := gusmax.o 171da177e4SLinus Torvaldssnd-interwave-objs := interwave.o 181da177e4SLinus Torvaldssnd-interwave-stb-objs := interwave-stb.o 191da177e4SLinus Torvalds 201da177e4SLinus Torvalds# 211da177e4SLinus Torvalds# this function returns: 221da177e4SLinus Torvalds# "m" - CONFIG_SND_SEQUENCER is m 231da177e4SLinus Torvalds# <empty string> - CONFIG_SND_SEQUENCER is undefined 241da177e4SLinus Torvalds# otherwise parameter #1 value 251da177e4SLinus Torvalds# 261da177e4SLinus Torvaldssequencer = $(if $(subst y,,$(CONFIG_SND_SEQUENCER)),$(if $(1),m),$(if $(CONFIG_SND_SEQUENCER),$(1))) 271da177e4SLinus Torvalds 281da177e4SLinus Torvalds# Toplevel Module Dependency 291da177e4SLinus Torvaldsobj-$(CONFIG_SND_GUSCLASSIC) += snd-gusclassic.o snd-gus-lib.o 301da177e4SLinus Torvaldsobj-$(CONFIG_SND_GUSMAX) += snd-gusmax.o snd-gus-lib.o 311da177e4SLinus Torvaldsobj-$(CONFIG_SND_GUSEXTREME) += snd-gusextreme.o snd-gus-lib.o 321da177e4SLinus Torvaldsobj-$(CONFIG_SND_INTERWAVE) += snd-interwave.o snd-gus-lib.o 331da177e4SLinus Torvaldsobj-$(CONFIG_SND_INTERWAVE_STB) += snd-interwave-stb.o snd-gus-lib.o 341da177e4SLinus Torvaldsobj-$(call sequencer,$(CONFIG_SND_GUS_SYNTH)) += snd-gus-synth.o 351da177e4SLinus Torvalds 361da177e4SLinus Torvaldsobj-m := $(sort $(obj-m)) 37