blob: 11b3d030e43f4a3a1052706188be63a899bc6027 [file] [log] [blame]
Łukasz Majewski257c5312012-11-13 03:21:59 +00001#
2# Copyright (C) 2012 Samsung Electronics
3# Lukasz Majewski <l.majewski@samsung.com>
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Łukasz Majewski257c5312012-11-13 03:21:59 +00006#
7
8include $(TOPDIR)/config.mk
9
10LIB := $(obj)libpmic.o
11
Łukasz Majewski1b6d9ed2012-11-13 03:22:14 +000012COBJS-$(CONFIG_POWER_MAX8998) += pmic_max8998.o
13COBJS-$(CONFIG_POWER_MAX8997) += pmic_max8997.o
Łukasz Majewskid19fa4c2012-11-13 03:22:02 +000014COBJS-$(CONFIG_POWER_MUIC_MAX8997) += muic_max8997.o
Rajeshwari Shindefe7c3622012-12-10 01:55:47 +000015COBJS-$(CONFIG_POWER_MAX77686) += pmic_max77686.o
Greg Guyotteea6f27c2013-08-30 16:28:42 -040016COBJS-$(CONFIG_POWER_TPS65217) += pmic_tps65217.o
Philip, Avinash09ee9e82013-08-30 16:28:43 -040017COBJS-$(CONFIG_POWER_TPS65910) += pmic_tps65910.o
Łukasz Majewski257c5312012-11-13 03:21:59 +000018
19COBJS := $(COBJS-y)
20SRCS := $(COBJS:.o=.c)
21OBJS := $(addprefix $(obj),$(COBJS))
22
23all: $(LIB)
24
25$(LIB): $(obj).depend $(OBJS)
26 $(call cmd_link_o_target, $(OBJS))
27
28
29#########################################################################
30
31# defines $(obj).depend target
32include $(SRCTREE)/rules.mk
33
34sinclude $(obj).depend
35
36########################################################################