blob: c50dd1583f33d83aa720c09f175497a0956bb873 [file] [log] [blame]
Rajeshwari Shinde511ed5f2012-10-25 19:49:22 +00001#
2# Copyright (C) 2012 Samsung Electronics
3# R. Chandrasekar <rcsekar@samsung.com>
4#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Rajeshwari Shinde511ed5f2012-10-25 19:49:22 +00006#
7
8include $(TOPDIR)/config.mk
9
10LIB := $(obj)libsound.o
11
12COBJS-$(CONFIG_SOUND) += sound.o
13COBJS-$(CONFIG_I2S) += samsung-i2s.o
Rajeshwari Shindea2d8e0a2012-10-25 19:49:23 +000014COBJS-$(CONFIG_SOUND_WM8994) += wm8994.o
Rajeshwari Shinde5febe8d2013-02-14 19:46:12 +000015COBJS-$(CONFIG_SOUND_MAX98095) += max98095.o
Rajeshwari Shinde511ed5f2012-10-25 19:49:22 +000016
17COBJS := $(COBJS-y)
18SRCS := $(COBJS:.o=.c)
19OBJS := $(addprefix $(obj),$(COBJS))
20
21all: $(LIB)
22
23$(LIB): $(obj).depend $(OBJS)
24 $(call cmd_link_o_target, $(OBJS))
25
26#########################################################################
27
28# defines $(obj).depend target
29include $(SRCTREE)/rules.mk
30
31sinclude $(obj).depend
32
33#