blob: 402e2b4a34c618d14a7cb31e4fb196eeef617f56 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#
2# Makefile for ALSA
3# Copyright (c) 1999 by Jaroslav Kysela <perex@suse.cz>
4#
5
6obj-$(CONFIG_SND) += instr/
7ifeq ($(CONFIG_SND_SEQUENCER_OSS),y)
8 obj-$(CONFIG_SND_SEQUENCER) += oss/
9endif
10
11snd-seq-device-objs := seq_device.o
12snd-seq-objs := seq.o seq_lock.o seq_clientmgr.o seq_memory.o seq_queue.o \
13 seq_fifo.o seq_prioq.o seq_timer.o \
14 seq_system.o seq_ports.o seq_info.o
15snd-seq-midi-objs := seq_midi.o
16snd-seq-midi-emul-objs := seq_midi_emul.o
17snd-seq-midi-event-objs := seq_midi_event.o
18snd-seq-instr-objs := seq_instr.o
19snd-seq-dummy-objs := seq_dummy.o
20snd-seq-virmidi-objs := seq_virmidi.o
21
22#
23# this function returns:
24# "m" - CONFIG_SND_SEQUENCER is m
25# <empty string> - CONFIG_SND_SEQUENCER is undefined
26# otherwise parameter #1 value
27#
28sequencer = $(if $(subst y,,$(CONFIG_SND_SEQUENCER)),$(if $(1),m),$(if $(CONFIG_SND_SEQUENCER),$(1)))
29
30obj-$(CONFIG_SND_SEQUENCER) += snd-seq.o snd-seq-device.o
31ifeq ($(CONFIG_SND_SEQUENCER_OSS),y)
32obj-$(CONFIG_SND_SEQUENCER) += snd-seq-midi-event.o
33endif
34obj-$(CONFIG_SND_SEQ_DUMMY) += snd-seq-dummy.o
35
36# Toplevel Module Dependency
37obj-$(CONFIG_SND_VIRMIDI) += snd-seq-virmidi.o snd-seq-midi-event.o
38obj-$(call sequencer,$(CONFIG_SND_RAWMIDI)) += snd-seq-midi.o snd-seq-midi-event.o
39obj-$(call sequencer,$(CONFIG_SND_OPL3_LIB)) += snd-seq-midi-event.o snd-seq-midi-emul.o snd-seq-instr.o
40obj-$(call sequencer,$(CONFIG_SND_OPL4_LIB)) += snd-seq-midi-event.o snd-seq-midi-emul.o snd-seq-instr.o
Takashi Iwai08844842005-06-30 09:55:31 +020041obj-$(call sequencer,$(CONFIG_SND_GUS_SYNTH)) += snd-seq-midi-emul.o snd-seq-instr.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070042obj-$(call sequencer,$(CONFIG_SND_SBAWE)) += snd-seq-midi-emul.o snd-seq-virmidi.o
43obj-$(call sequencer,$(CONFIG_SND_EMU10K1)) += snd-seq-midi-emul.o snd-seq-virmidi.o
44obj-$(call sequencer,$(CONFIG_SND_TRIDENT)) += snd-seq-midi-emul.o snd-seq-instr.o