]> git.ipfire.org Git - thirdparty/u-boot.git/blame - drivers/power/pmic/Makefile
Add GPL-2.0+ SPDX-License-Identifier to source files
[thirdparty/u-boot.git] / drivers / power / pmic / Makefile
CommitLineData
e0a0cbf2
ŁM
1#
2# Copyright (C) 2012 Samsung Electronics
3# Lukasz Majewski <l.majewski@samsung.com>
4#
1a459660 5# SPDX-License-Identifier: GPL-2.0+
e0a0cbf2
ŁM
6#
7
8include $(TOPDIR)/config.mk
9
10LIB := $(obj)libpmic.o
11
be3b51aa
ŁM
12COBJS-$(CONFIG_POWER_MAX8998) += pmic_max8998.o
13COBJS-$(CONFIG_POWER_MAX8997) += pmic_max8997.o
294a97da 14COBJS-$(CONFIG_POWER_MUIC_MAX8997) += muic_max8997.o
857765e9 15COBJS-$(CONFIG_POWER_MAX77686) += pmic_max77686.o
e0a0cbf2
ŁM
16
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########################################################################