blob: d5dce67abe215b9186e96dc3e1a5d6880b419f34 [file] [log] [blame]
wdenk5c952cf2004-10-10 21:27:30 +00001#
Marian Balakowiczf9328632006-09-01 19:49:50 +02002# (C) Copyright 2000-2006
wdenk5c952cf2004-10-10 21:27:30 +00003# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
wdenk5c952cf2004-10-10 21:27:30 +00006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010010LIB = $(obj)lib$(ARCH).o
wdenk5c952cf2004-10-10 21:27:30 +000011
Marian Balakowicz823afe72008-02-27 11:00:47 +010012SOBJS-y += cache.o
wdenk5c952cf2004-10-10 21:27:30 +000013
Marian Balakowicz823afe72008-02-27 11:00:47 +010014COBJS-y += board.o
Dirk Eibachb8eee432013-06-26 15:55:16 +020015COBJS-$(CONFIG_CMD_BOOTM) += bootm.o
Thomas Chou8d52ea62010-05-15 06:00:05 +080016COBJS-y += libgcc.o
Marian Balakowicz823afe72008-02-27 11:00:47 +010017COBJS-y += time.o
wdenk5c952cf2004-10-10 21:27:30 +000018
Wolfgang Denk53677ef2008-05-20 16:00:29 +020019SRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
Marian Balakowicz823afe72008-02-27 11:00:47 +010020OBJS := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
wdenk5c952cf2004-10-10 21:27:30 +000021
Marian Balakowiczf9328632006-09-01 19:49:50 +020022$(LIB): $(obj).depend $(OBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010023 $(call cmd_link_o_target, $(OBJS))
wdenk5c952cf2004-10-10 21:27:30 +000024
25#########################################################################
26
Marian Balakowiczf9328632006-09-01 19:49:50 +020027# defines $(obj).depend target
28include $(SRCTREE)/rules.mk
wdenk5c952cf2004-10-10 21:27:30 +000029
Marian Balakowiczf9328632006-09-01 19:49:50 +020030sinclude $(obj).depend
wdenk5c952cf2004-10-10 21:27:30 +000031
32#########################################################################