xref: /openbmc/u-boot/drivers/power/pmic/Makefile (revision 3765b3e7)
1#
2# Copyright (C) 2012 Samsung Electronics
3# Lukasz Majewski <l.majewski@samsung.com>
4#
5# SPDX-License-Identifier:	GPL-2.0+
6#
7
8include $(TOPDIR)/config.mk
9
10LIB	:= $(obj)libpmic.o
11
12COBJS-$(CONFIG_POWER_MAX8998) += pmic_max8998.o
13COBJS-$(CONFIG_POWER_MAX8997) += pmic_max8997.o
14COBJS-$(CONFIG_POWER_MUIC_MAX8997) += muic_max8997.o
15COBJS-$(CONFIG_POWER_MAX77686) += pmic_max77686.o
16COBJS-$(CONFIG_POWER_TPS65217) += pmic_tps65217.o
17COBJS-$(CONFIG_POWER_TPS65910) += pmic_tps65910.o
18
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########################################################################
37