blob: 48973fd87b469c7c379d5adc343ca8e0f41b084b [file] [log] [blame]
wdenkabf7a7c2003-12-08 01:34:36 +00001#
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002# (C) Copyright 2000-2006
wdenkabf7a7c2003-12-08 01:34:36 +00003# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
wdenkabf7a7c2003-12-08 01:34:36 +00006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carliera8d426f2010-11-05 15:48:07 +010010LIB = $(obj)lib$(ARCH).o
wdenkabf7a7c2003-12-08 01:34:36 +000011
Marian Balakowicz699ffe52008-02-27 11:00:47 +010012SOBJS-y +=
Marian Balakowiczd62379d2006-09-01 19:49:50 +020013
Marian Balakowicz699ffe52008-02-27 11:00:47 +010014COBJS-y += board.o
Dirk Eibachd2df8112013-06-26 15:55:16 +020015COBJS-$(CONFIG_CMD_BOOTM) += bootm.o
Marian Balakowicz699ffe52008-02-27 11:00:47 +010016COBJS-y += cache.o
17COBJS-y += interrupts.o
18COBJS-y += time.o
19COBJS-y += traps.o
wdenkabf7a7c2003-12-08 01:34:36 +000020
Wolfgang Denka1be4762008-05-20 16:00:29 +020021SRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
Marian Balakowicz699ffe52008-02-27 11:00:47 +010022OBJS := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
Marian Balakowiczd62379d2006-09-01 19:49:50 +020023
24$(LIB): $(obj).depend $(OBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010025 $(call cmd_link_o_target, $(OBJS))
wdenkabf7a7c2003-12-08 01:34:36 +000026
27#########################################################################
28
Marian Balakowiczd62379d2006-09-01 19:49:50 +020029# defines $(obj).depend target
30include $(SRCTREE)/rules.mk
wdenkabf7a7c2003-12-08 01:34:36 +000031
Marian Balakowiczd62379d2006-09-01 19:49:50 +020032sinclude $(obj).depend
wdenkabf7a7c2003-12-08 01:34:36 +000033
34#########################################################################