blob: 7e78d447549929eb8e088432d28c3d911f97f043 [file] [log] [blame]
Daniel Hellstrom9d7c6b22008-03-28 09:47:00 +01001#
2# (C) Copyright 2000-2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Daniel Hellstrom9d7c6b22008-03-28 09:47:00 +01006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carliera8d426f2010-11-05 15:48:07 +010010LIB = $(obj)lib$(ARCH).o
Daniel Hellstrom9d7c6b22008-03-28 09:47:00 +010011
12SOBJS =
13
Dirk Eibachd2df8112013-06-26 15:55:16 +020014COBJS = board.o cache.o interrupts.o time.o
15COBJS-$(CONFIG_CMD_BOOTM) += bootm.o
Daniel Hellstrom9d7c6b22008-03-28 09:47:00 +010016
Wolfgang Denka1be4762008-05-20 16:00:29 +020017SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
Daniel Hellstrom9d7c6b22008-03-28 09:47:00 +010018OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))
19
20$(LIB): $(obj).depend $(OBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010021 $(call cmd_link_o_target, $(OBJS))
Daniel Hellstrom9d7c6b22008-03-28 09:47:00 +010022
23#########################################################################
24
25# defines $(obj).depend target
26include $(SRCTREE)/rules.mk
27
28sinclude $(obj).depend
29
30#########################################################################