xref: /linux/sound/core/seq/Makefile (revision f3d9478b2ce468c3115b02ecae7e975990697f15)
1#
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
41obj-$(call sequencer,$(CONFIG_SND_GUS_SYNTH)) += snd-seq-midi-emul.o snd-seq-instr.o
42obj-$(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
45