2 # Copyright (C) 2012 Samsung Electronics
3 # Lukasz Majewski <l.majewski@samsung.com>
5 # SPDX-License-Identifier: GPL-2.0+
8 include $(TOPDIR)/config.mk
10 LIB := $(obj)libpmic.o
12 COBJS-$(CONFIG_POWER_MAX8998) += pmic_max8998.o
13 COBJS-$(CONFIG_POWER_MAX8997) += pmic_max8997.o
14 COBJS-$(CONFIG_POWER_MUIC_MAX8997) += muic_max8997.o
15 COBJS-$(CONFIG_POWER_MAX77686) += pmic_max77686.o
18 SRCS := $(COBJS:.o=.c)
19 OBJS := $(addprefix $(obj),$(COBJS))
23 $(LIB): $(obj).depend $(OBJS)
24 $(call cmd_link_o_target, $(OBJS))
27 #########################################################################
29 # defines $(obj).depend target
30 include $(SRCTREE)/rules.mk
32 sinclude $(obj).depend
34 ########################################################################