blob: b86f980e16d58d6df933506c39282c31274f2a2f [file] [log] [blame]
wdenk507bbe32004-04-18 21:13:41 +00001#
Marian Balakowiczf9328632006-09-01 19:49:50 +02002# (C) Copyright 2003-2006
wdenk507bbe32004-04-18 21:13:41 +00003# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
wdenk507bbe32004-04-18 21:13:41 +00006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010010LIB = $(obj)lib$(ARCH).o
wdenk507bbe32004-04-18 21:13:41 +000011
Marian Balakowicz823afe72008-02-27 11:00:47 +010012SOBJS-y +=
wdenk507bbe32004-04-18 21:13:41 +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
David Holsgrove2281ba52012-11-06 23:01:24 +100016COBJS-y += muldi3.o
wdenk507bbe32004-04-18 21:13:41 +000017
Wolfgang Denk53677ef2008-05-20 16:00:29 +020018SRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
Marian Balakowicz823afe72008-02-27 11:00:47 +010019OBJS := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
wdenk507bbe32004-04-18 21:13:41 +000020
Marian Balakowiczf9328632006-09-01 19:49:50 +020021$(LIB): $(obj).depend $(OBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010022 $(call cmd_link_o_target, $(OBJS))
wdenk507bbe32004-04-18 21:13:41 +000023
24#########################################################################
25
Marian Balakowiczf9328632006-09-01 19:49:50 +020026# defines $(obj).depend target
27include $(SRCTREE)/rules.mk
wdenk507bbe32004-04-18 21:13:41 +000028
Marian Balakowiczf9328632006-09-01 19:49:50 +020029sinclude $(obj).depend
wdenk507bbe32004-04-18 21:13:41 +000030
31#########################################################################