xref: /openbmc/linux/sound/isa/sb/Makefile (revision 1da177e4)
11da177e4SLinus Torvalds#
21da177e4SLinus Torvalds# Makefile for ALSA
31da177e4SLinus Torvalds# Copyright (c) 2001 by Jaroslav Kysela <perex@suse.cz>
41da177e4SLinus Torvalds#
51da177e4SLinus Torvalds
61da177e4SLinus Torvaldssnd-sb-common-objs := sb_common.o sb_mixer.o
71da177e4SLinus Torvaldssnd-sb8-dsp-objs := sb8_main.o sb8_midi.o
81da177e4SLinus Torvaldssnd-sb16-dsp-objs := sb16_main.o
91da177e4SLinus Torvaldssnd-sb16-csp-objs := sb16_csp.o
101da177e4SLinus Torvaldssnd-sb8-objs := sb8.o
111da177e4SLinus Torvaldssnd-sb16-objs := sb16.o
121da177e4SLinus Torvaldssnd-sbawe-objs := sbawe.o emu8000.o
131da177e4SLinus Torvaldssnd-emu8000-synth-objs := emu8000_synth.o emu8000_callback.o emu8000_patch.o emu8000_pcm.o
141da177e4SLinus Torvaldssnd-es968-objs := es968.o
151da177e4SLinus Torvalds
161da177e4SLinus Torvalds#
171da177e4SLinus Torvalds# this function returns:
181da177e4SLinus Torvalds#   "m" - CONFIG_SND_SEQUENCER is m
191da177e4SLinus Torvalds#   <empty string> - CONFIG_SND_SEQUENCER is undefined
201da177e4SLinus Torvalds#   otherwise parameter #1 value
211da177e4SLinus Torvalds#
221da177e4SLinus Torvaldssequencer = $(if $(subst y,,$(CONFIG_SND_SEQUENCER)),$(if $(1),m),$(if $(CONFIG_SND_SEQUENCER),$(1)))
231da177e4SLinus Torvalds
241da177e4SLinus Torvalds# Toplevel Module Dependency
251da177e4SLinus Torvaldsobj-$(CONFIG_SND_ALS100) += snd-sb16-dsp.o snd-sb-common.o
261da177e4SLinus Torvaldsobj-$(CONFIG_SND_CMI8330) += snd-sb16-dsp.o snd-sb-common.o
271da177e4SLinus Torvaldsobj-$(CONFIG_SND_DT019X) += snd-sb16-dsp.o snd-sb-common.o
281da177e4SLinus Torvaldsobj-$(CONFIG_SND_SB8) += snd-sb8.o snd-sb8-dsp.o snd-sb-common.o
291da177e4SLinus Torvaldsobj-$(CONFIG_SND_SB16) += snd-sb16.o snd-sb16-dsp.o snd-sb-common.o
301da177e4SLinus Torvaldsobj-$(CONFIG_SND_SBAWE) += snd-sbawe.o snd-sb16-dsp.o snd-sb-common.o
311da177e4SLinus Torvaldsobj-$(CONFIG_SND_ES968) += snd-es968.o snd-sb8-dsp.o snd-sb-common.o
321da177e4SLinus Torvaldsobj-$(CONFIG_SND_ALS4000) += snd-sb-common.o
331da177e4SLinus Torvaldsifeq ($(CONFIG_SND_SB16_CSP),y)
341da177e4SLinus Torvalds  obj-$(CONFIG_SND_SB16) += snd-sb16-csp.o
351da177e4SLinus Torvalds  obj-$(CONFIG_SND_SBAWE) += snd-sb16-csp.o
361da177e4SLinus Torvaldsendif
371da177e4SLinus Torvaldsobj-$(call sequencer,$(CONFIG_SND_SBAWE)) += snd-emu8000-synth.o
381da177e4SLinus Torvalds
391da177e4SLinus Torvaldsobj-m := $(sort $(obj-m))
40