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 25*dda369cfSTakashi Iwaiobj-$(CONFIG_SND_SB_COMMON) += snd-sb-common.o 26*dda369cfSTakashi Iwaiobj-$(CONFIG_SND_SB16_DSP) += snd-sb16-dsp.o 27*dda369cfSTakashi Iwaiobj-$(CONFIG_SND_SB8_DSP) += snd-sb8-dsp.o 28*dda369cfSTakashi Iwaiobj-$(CONFIG_SND_SB8) += snd-sb8.o 29*dda369cfSTakashi Iwaiobj-$(CONFIG_SND_SB16) += snd-sb16.o 30*dda369cfSTakashi Iwaiobj-$(CONFIG_SND_SBAWE) += snd-sbawe.o 31*dda369cfSTakashi Iwaiobj-$(CONFIG_SND_ES968) += snd-es968.o 321da177e4SLinus Torvaldsifeq ($(CONFIG_SND_SB16_CSP),y) 331da177e4SLinus Torvalds obj-$(CONFIG_SND_SB16) += snd-sb16-csp.o 341da177e4SLinus Torvalds obj-$(CONFIG_SND_SBAWE) += snd-sb16-csp.o 351da177e4SLinus Torvaldsendif 361da177e4SLinus Torvaldsobj-$(call sequencer,$(CONFIG_SND_SBAWE)) += snd-emu8000-synth.o 371da177e4SLinus Torvalds 381da177e4SLinus Torvaldsobj-m := $(sort $(obj-m)) 39