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