xref: /openbmc/u-boot/drivers/bootcount/Makefile (revision 3765b3e7)
1#
2# SPDX-License-Identifier:	GPL-2.0+
3#
4
5include $(TOPDIR)/config.mk
6
7LIB 	:= $(obj)libbootcount.o
8
9COBJS-y				+= bootcount.o
10COBJS-$(CONFIG_AT91SAM9XE)	+= bootcount_at91.o
11COBJS-$(CONFIG_BLACKFIN)	+= bootcount_blackfin.o
12COBJS-$(CONFIG_SOC_DA8XX)	+= bootcount_davinci.o
13COBJS-$(CONFIG_BOOTCOUNT_RAM)	+= bootcount_ram.o
14
15COBJS	:= $(COBJS-y)
16SRCS 	:= $(COBJS:.o=.c)
17OBJS 	:= $(addprefix $(obj),$(COBJS))
18
19$(LIB):	$(obj).depend $(OBJS)
20	$(call cmd_link_o_target, $(OBJS))
21
22#########################################################################
23
24# defines $(obj).depend target
25include $(SRCTREE)/rules.mk
26
27sinclude $(obj).depend
28
29########################################################################
30