Rajeshwari Shinde | 511ed5f | 2012-10-25 19:49:22 +0000 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2012 Samsung Electronics |
| 3 | # R. Chandrasekar <rcsekar@samsung.com> |
| 4 | # |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | # SPDX-License-Identifier: GPL-2.0+ |
Rajeshwari Shinde | 511ed5f | 2012-10-25 19:49:22 +0000 | [diff] [blame] | 6 | # |
| 7 | |
| 8 | include $(TOPDIR)/config.mk |
| 9 | |
| 10 | LIB := $(obj)libsound.o |
| 11 | |
| 12 | COBJS-$(CONFIG_SOUND) += sound.o |
| 13 | COBJS-$(CONFIG_I2S) += samsung-i2s.o |
Rajeshwari Shinde | a2d8e0a | 2012-10-25 19:49:23 +0000 | [diff] [blame] | 14 | COBJS-$(CONFIG_SOUND_WM8994) += wm8994.o |
Rajeshwari Shinde | 5febe8d | 2013-02-14 19:46:12 +0000 | [diff] [blame] | 15 | COBJS-$(CONFIG_SOUND_MAX98095) += max98095.o |
Rajeshwari Shinde | 511ed5f | 2012-10-25 19:49:22 +0000 | [diff] [blame] | 16 | |
| 17 | COBJS := $(COBJS-y) |
| 18 | SRCS := $(COBJS:.o=.c) |
| 19 | OBJS := $(addprefix $(obj),$(COBJS)) |
| 20 | |
| 21 | all: $(LIB) |
| 22 | |
| 23 | $(LIB): $(obj).depend $(OBJS) |
| 24 | $(call cmd_link_o_target, $(OBJS)) |
| 25 | |
| 26 | ######################################################################### |
| 27 | |
| 28 | # defines $(obj).depend target |
| 29 | include $(SRCTREE)/rules.mk |
| 30 | |
| 31 | sinclude $(obj).depend |
| 32 | |
| 33 | # |