xref: /openbmc/linux/sound/drivers/opl4/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-opl4-lib-objs := opl4_lib.o opl4_mixer.o opl4_proc.o
71da177e4SLinus Torvaldssnd-opl4-synth-objs := opl4_seq.o opl4_synth.o yrw801.o
81da177e4SLinus Torvalds
91da177e4SLinus Torvalds#
101da177e4SLinus Torvalds# this function returns:
111da177e4SLinus Torvalds#   "m" - CONFIG_SND_SEQUENCER is m
121da177e4SLinus Torvalds#   <empty string> - CONFIG_SND_SEQUENCER is undefined
131da177e4SLinus Torvalds#   otherwise parameter #1 value
141da177e4SLinus Torvalds#
151da177e4SLinus Torvaldssequencer = $(if $(subst y,,$(CONFIG_SND_SEQUENCER)),$(if $(1),m),$(if $(CONFIG_SND_SEQUENCER),$(1)))
161da177e4SLinus Torvalds
171da177e4SLinus Torvaldsobj-$(CONFIG_SND_OPL4_LIB) += snd-opl4-lib.o
181da177e4SLinus Torvaldsobj-$(call sequencer,$(CONFIG_SND_OPL4_LIB)) += snd-opl4-synth.o
19