Makefile 810 B

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