blob: f054470552e52ead7cd607d949b4c703208450ba [file] [log] [blame]
Łukasz Majewskie0a0cbf2012-11-13 03:21:59 +00001#
2# Copyright (C) 2012 Samsung Electronics
3# Lukasz Majewski <l.majewski@samsung.com>
4#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Łukasz Majewskie0a0cbf2012-11-13 03:21:59 +00006#
7
8include $(TOPDIR)/config.mk
9
10LIB := $(obj)libpmic.o
11
Łukasz Majewskibe3b51a2012-11-13 03:22:14 +000012COBJS-$(CONFIG_POWER_MAX8998) += pmic_max8998.o
13COBJS-$(CONFIG_POWER_MAX8997) += pmic_max8997.o
Łukasz Majewski294a97d2012-11-13 03:22:02 +000014COBJS-$(CONFIG_POWER_MUIC_MAX8997) += muic_max8997.o
Rajeshwari Shinde857765e2012-12-10 01:55:47 +000015COBJS-$(CONFIG_POWER_MAX77686) += pmic_max77686.o
Łukasz Majewskie0a0cbf2012-11-13 03:21:59 +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
29# defines $(obj).depend target
30include $(SRCTREE)/rules.mk
31
32sinclude $(obj).depend
33
34########################################################################