Stefan Roese | 033848e | 2012-08-16 17:55:41 +0000 | [diff] [blame] | 1 | # |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 2 | # SPDX-License-Identifier: GPL-2.0+ |
Stefan Roese | 033848e | 2012-08-16 17:55:41 +0000 | [diff] [blame] | 3 | # |
| 4 | |
| 5 | include $(TOPDIR)/config.mk |
| 6 | |
| 7 | LIB := $(obj)libbootcount.o |
| 8 | |
| 9 | COBJS-y += bootcount.o |
| 10 | COBJS-$(CONFIG_AT91SAM9XE) += bootcount_at91.o |
| 11 | COBJS-$(CONFIG_BLACKFIN) += bootcount_blackfin.o |
| 12 | COBJS-$(CONFIG_SOC_DA8XX) += bootcount_davinci.o |
| 13 | COBJS-$(CONFIG_BOOTCOUNT_RAM) += bootcount_ram.o |
| 14 | |
| 15 | COBJS := $(COBJS-y) |
| 16 | SRCS := $(COBJS:.o=.c) |
| 17 | OBJS := $(addprefix $(obj),$(COBJS)) |
| 18 | |
| 19 | $(LIB): $(obj).depend $(OBJS) |
| 20 | $(call cmd_link_o_target, $(OBJS)) |
| 21 | |
| 22 | ######################################################################### |
| 23 | |
| 24 | # defines $(obj).depend target |
| 25 | include $(SRCTREE)/rules.mk |
| 26 | |
| 27 | sinclude $(obj).depend |
| 28 | |
| 29 | ######################################################################## |