xref: /openbmc/linux/sound/core/Makefile (revision 240e6d25)
1# SPDX-License-Identifier: GPL-2.0
2#
3# Makefile for ALSA
4# Copyright (c) 1999,2001 by Jaroslav Kysela <perex@perex.cz>
5#
6
7snd-y     := sound.o init.o memory.o control.o misc.o device.o
8ifneq ($(CONFIG_SND_PROC_FS),)
9snd-y += info.o
10snd-$(CONFIG_SND_OSSEMUL) += info_oss.o
11endif
12ifneq ($(CONFIG_M68K),y)
13snd-$(CONFIG_ISA_DMA_API) += isadma.o
14endif
15snd-$(CONFIG_SND_OSSEMUL) += sound_oss.o
16snd-$(CONFIG_SND_VMASTER) += vmaster.o
17snd-$(CONFIG_SND_JACK)	  += ctljack.o jack.o
18
19snd-pcm-y := pcm.o pcm_native.o pcm_lib.o pcm_misc.o \
20		pcm_memory.o memalloc.o
21snd-pcm-$(CONFIG_SND_PCM_TIMER) += pcm_timer.o
22snd-pcm-$(CONFIG_SND_DMA_SGBUF) += sgbuf.o
23snd-pcm-$(CONFIG_SND_PCM_ELD) += pcm_drm_eld.o
24snd-pcm-$(CONFIG_SND_PCM_IEC958) += pcm_iec958.o
25
26# for trace-points
27CFLAGS_pcm_lib.o := -I$(src)
28CFLAGS_pcm_native.o := -I$(src)
29
30snd-pcm-dmaengine-objs := pcm_dmaengine.o
31
32snd-ctl-led-objs  := control_led.o
33snd-rawmidi-objs  := rawmidi.o
34snd-timer-objs    := timer.o
35snd-hrtimer-objs  := hrtimer.o
36snd-rtctimer-objs := rtctimer.o
37snd-hwdep-objs    := hwdep.o
38snd-seq-device-objs := seq_device.o
39
40snd-compress-objs := compress_offload.o
41
42obj-$(CONFIG_SND) 		+= snd.o
43obj-$(CONFIG_SND_CTL_LED)	+= snd-ctl-led.o
44obj-$(CONFIG_SND_HWDEP)		+= snd-hwdep.o
45obj-$(CONFIG_SND_TIMER)		+= snd-timer.o
46obj-$(CONFIG_SND_HRTIMER)	+= snd-hrtimer.o
47obj-$(CONFIG_SND_PCM)		+= snd-pcm.o
48obj-$(CONFIG_SND_DMAENGINE_PCM)	+= snd-pcm-dmaengine.o
49obj-$(CONFIG_SND_SEQ_DEVICE)	+= snd-seq-device.o
50obj-$(CONFIG_SND_RAWMIDI)	+= snd-rawmidi.o
51
52obj-$(CONFIG_SND_OSSEMUL)	+= oss/
53obj-$(CONFIG_SND_SEQUENCER)	+= seq/
54
55obj-$(CONFIG_SND_COMPRESS_OFFLOAD)	+= snd-compress.o
56