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