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