1*1da177e4SLinus Torvalds# 2*1da177e4SLinus Torvalds# Makefile for ALSA 3*1da177e4SLinus Torvalds# Copyright (c) 2001 by Jaroslav Kysela <perex@suse.cz> 4*1da177e4SLinus Torvalds# 5*1da177e4SLinus Torvalds 6*1da177e4SLinus Torvaldssnd-sb-common-objs := sb_common.o sb_mixer.o 7*1da177e4SLinus Torvaldssnd-sb8-dsp-objs := sb8_main.o sb8_midi.o 8*1da177e4SLinus Torvaldssnd-sb16-dsp-objs := sb16_main.o 9*1da177e4SLinus Torvaldssnd-sb16-csp-objs := sb16_csp.o 10*1da177e4SLinus Torvaldssnd-sb8-objs := sb8.o 11*1da177e4SLinus Torvaldssnd-sb16-objs := sb16.o 12*1da177e4SLinus Torvaldssnd-sbawe-objs := sbawe.o emu8000.o 13*1da177e4SLinus Torvaldssnd-emu8000-synth-objs := emu8000_synth.o emu8000_callback.o emu8000_patch.o emu8000_pcm.o 14*1da177e4SLinus Torvaldssnd-es968-objs := es968.o 15*1da177e4SLinus Torvalds 16*1da177e4SLinus Torvalds# 17*1da177e4SLinus Torvalds# this function returns: 18*1da177e4SLinus Torvalds# "m" - CONFIG_SND_SEQUENCER is m 19*1da177e4SLinus Torvalds# <empty string> - CONFIG_SND_SEQUENCER is undefined 20*1da177e4SLinus Torvalds# otherwise parameter #1 value 21*1da177e4SLinus Torvalds# 22*1da177e4SLinus Torvaldssequencer = $(if $(subst y,,$(CONFIG_SND_SEQUENCER)),$(if $(1),m),$(if $(CONFIG_SND_SEQUENCER),$(1))) 23*1da177e4SLinus Torvalds 24*1da177e4SLinus Torvalds# Toplevel Module Dependency 25*1da177e4SLinus Torvaldsobj-$(CONFIG_SND_ALS100) += snd-sb16-dsp.o snd-sb-common.o 26*1da177e4SLinus Torvaldsobj-$(CONFIG_SND_CMI8330) += snd-sb16-dsp.o snd-sb-common.o 27*1da177e4SLinus Torvaldsobj-$(CONFIG_SND_DT019X) += snd-sb16-dsp.o snd-sb-common.o 28*1da177e4SLinus Torvaldsobj-$(CONFIG_SND_SB8) += snd-sb8.o snd-sb8-dsp.o snd-sb-common.o 29*1da177e4SLinus Torvaldsobj-$(CONFIG_SND_SB16) += snd-sb16.o snd-sb16-dsp.o snd-sb-common.o 30*1da177e4SLinus Torvaldsobj-$(CONFIG_SND_SBAWE) += snd-sbawe.o snd-sb16-dsp.o snd-sb-common.o 31*1da177e4SLinus Torvaldsobj-$(CONFIG_SND_ES968) += snd-es968.o snd-sb8-dsp.o snd-sb-common.o 32*1da177e4SLinus Torvaldsobj-$(CONFIG_SND_ALS4000) += snd-sb-common.o 33*1da177e4SLinus Torvaldsifeq ($(CONFIG_SND_SB16_CSP),y) 34*1da177e4SLinus Torvalds obj-$(CONFIG_SND_SB16) += snd-sb16-csp.o 35*1da177e4SLinus Torvalds obj-$(CONFIG_SND_SBAWE) += snd-sb16-csp.o 36*1da177e4SLinus Torvaldsendif 37*1da177e4SLinus Torvaldsobj-$(call sequencer,$(CONFIG_SND_SBAWE)) += snd-emu8000-synth.o 38*1da177e4SLinus Torvalds 39*1da177e4SLinus Torvaldsobj-m := $(sort $(obj-m)) 40