| 1 | # |
| 2 | # Makefile for ALSA |
| 3 | # Copyright (c) 1999 by Jaroslav Kysela <perex@perex.cz> |
| 4 | # |
| 5 | |
| 6 | snd-ainstr-fm-objs := ainstr_fm.o |
| 7 | snd-ainstr-simple-objs := ainstr_simple.o |
| 8 | snd-ainstr-gf1-objs := ainstr_gf1.o |
| 9 | snd-ainstr-iw-objs := ainstr_iw.o |
| 10 | |
| 11 | # |
| 12 | # this function returns: |
| 13 | # "m" - CONFIG_SND_SEQUENCER is m |
| 14 | # <empty string> - CONFIG_SND_SEQUENCER is undefined |
| 15 | # otherwise parameter #1 value |
| 16 | # |
| 17 | sequencer = $(if $(subst y,,$(CONFIG_SND_SEQUENCER)),$(if $(1),m),$(if $(CONFIG_SND_SEQUENCER),$(1))) |
| 18 | |
| 19 | # Toplevel Module Dependency |
| 20 | obj-$(call sequencer,$(CONFIG_SND_OPL3_LIB)) += snd-ainstr-fm.o |
| 21 | obj-$(call sequencer,$(CONFIG_SND_OPL4_LIB)) += snd-ainstr-fm.o |
| 22 | obj-$(call sequencer,$(CONFIG_SND_GUS_SYNTH)) += snd-ainstr-gf1.o snd-ainstr-simple.o snd-ainstr-iw.o |
| 23 | obj-$(call sequencer,$(CONFIG_SND_TRIDENT)) += snd-ainstr-simple.o |