blob: 4bf315da9b0503798a678dd44eb098c8e7cf33f7 [file] [log] [blame]
Łukasz Majewskieba42392012-11-13 03:22:01 +00001#
2# Copyright (C) 2012 Samsung Electronics
3# Lukasz Majewski <l.majewski@samsung.com>
4#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Łukasz Majewskieba42392012-11-13 03:22:01 +00006#
7
8include $(TOPDIR)/config.mk
9
10LIB := $(obj)libbattery.o
11
12COBJS-$(CONFIG_POWER_BATTERY_TRATS) += bat_trats.o
Piotr Wilczeka88aab62013-09-20 15:01:25 +020013COBJS-$(CONFIG_POWER_BATTERY_TRATS2) += bat_trats2.o
Łukasz Majewskieba42392012-11-13 03:22:01 +000014
15COBJS := $(COBJS-y)
16SRCS := $(COBJS:.o=.c)
17OBJS := $(addprefix $(obj),$(COBJS))
18
19all: $(LIB)
20
21$(LIB): $(obj).depend $(OBJS)
22 $(call cmd_link_o_target, $(OBJS))
23
24
25#########################################################################
26
27# defines $(obj).depend target
28include $(SRCTREE)/rules.mk
29
30sinclude $(obj).depend
31
32########################################################################