Łukasz Majewski | 257c531 | 2012-11-13 03:21:59 +0000 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2012 Samsung Electronics |
| 3 | # Lukasz Majewski <l.majewski@samsung.com> |
| 4 | # |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | # SPDX-License-Identifier: GPL-2.0+ |
Łukasz Majewski | 257c531 | 2012-11-13 03:21:59 +0000 | [diff] [blame] | 6 | # |
| 7 | |
| 8 | include $(TOPDIR)/config.mk |
| 9 | |
| 10 | LIB := $(obj)libpmic.o |
| 11 | |
Łukasz Majewski | 1b6d9ed | 2012-11-13 03:22:14 +0000 | [diff] [blame] | 12 | COBJS-$(CONFIG_POWER_MAX8998) += pmic_max8998.o |
| 13 | COBJS-$(CONFIG_POWER_MAX8997) += pmic_max8997.o |
Łukasz Majewski | d19fa4c | 2012-11-13 03:22:02 +0000 | [diff] [blame] | 14 | COBJS-$(CONFIG_POWER_MUIC_MAX8997) += muic_max8997.o |
Rajeshwari Shinde | fe7c362 | 2012-12-10 01:55:47 +0000 | [diff] [blame] | 15 | COBJS-$(CONFIG_POWER_MAX77686) += pmic_max77686.o |
Greg Guyotte | ea6f27c | 2013-08-30 16:28:42 -0400 | [diff] [blame] | 16 | COBJS-$(CONFIG_POWER_TPS65217) += pmic_tps65217.o |
Philip, Avinash | 09ee9e8 | 2013-08-30 16:28:43 -0400 | [diff] [blame] | 17 | COBJS-$(CONFIG_POWER_TPS65910) += pmic_tps65910.o |
Łukasz Majewski | 257c531 | 2012-11-13 03:21:59 +0000 | [diff] [blame] | 18 | |
| 19 | COBJS := $(COBJS-y) |
| 20 | SRCS := $(COBJS:.o=.c) |
| 21 | OBJS := $(addprefix $(obj),$(COBJS)) |
| 22 | |
| 23 | all: $(LIB) |
| 24 | |
| 25 | $(LIB): $(obj).depend $(OBJS) |
| 26 | $(call cmd_link_o_target, $(OBJS)) |
| 27 | |
| 28 | |
| 29 | ######################################################################### |
| 30 | |
| 31 | # defines $(obj).depend target |
| 32 | include $(SRCTREE)/rules.mk |
| 33 | |
| 34 | sinclude $(obj).depend |
| 35 | |
| 36 | ######################################################################## |