xref: /openbmc/u-boot/drivers/sound/Makefile (revision 3765b3e7)
1#
2# Copyright (C) 2012 Samsung Electronics
3# R. Chandrasekar <rcsekar@samsung.com>
4#
5# SPDX-License-Identifier:	GPL-2.0+
6#
7
8include $(TOPDIR)/config.mk
9
10LIB	:= $(obj)libsound.o
11
12COBJS-$(CONFIG_SOUND)	+= sound.o
13COBJS-$(CONFIG_I2S)	+= samsung-i2s.o
14COBJS-$(CONFIG_SOUND_WM8994)	+= wm8994.o
15COBJS-$(CONFIG_SOUND_MAX98095)	+= max98095.o
16
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#
34