blob: 76a05daa6785de118e456895382f104891eb8858 [file] [log] [blame]
Piotr Wilczek04750442013-09-24 16:31:22 +02001#
2# Copyright (C) 2013 Samsung Electronics
3# Piotr Wilczek <p.wilczek@samsung.com>
4#
5# SPDX-License-Identifier: GPL-2.0+
6#
7
8include $(TOPDIR)/config.mk
9
10LIB := $(obj)libmfd.o
11
12COBJS-$(CONFIG_POWER_PMIC_MAX77693) += pmic_max77693.o
13COBJS-$(CONFIG_POWER_MUIC_MAX77693) += muic_max77693.o
14COBJS-$(CONFIG_POWER_FG_MAX77693) += fg_max77693.o
15
16COBJS := $(COBJS-y)
17SRCS := $(COBJS:.o=.c)
18OBJS := $(addprefix $(obj),$(COBJS))
19
20all: $(LIB)
21
22$(LIB): $(obj).depend $(OBJS)
23 $(call cmd_link_o_target, $(OBJS))
24
25
26#########################################################################
27
28# defines $(obj).depend target
29include $(SRCTREE)/rules.mk
30
31sinclude $(obj).depend
32
33########################################################################