blob: a6f924d09ae453b478b797ffde80e1d0220b15b4 [file] [log] [blame]
wdenk1fe2c702003-03-06 21:55:29 +00001#
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002# (C) Copyright 2000-2006
wdenk1fe2c702003-03-06 21:55:29 +00003# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
wdenk1fe2c702003-03-06 21:55:29 +00006#
7
8include $(TOPDIR)/config.mk
Marian Balakowiczd62379d2006-09-01 19:49:50 +02009ifneq ($(OBJTREE),$(SRCTREE))
10$(shell mkdir -p $(obj)../common)
11endif
wdenk1fe2c702003-03-06 21:55:29 +000012
Sebastien Carliera8d426f2010-11-05 15:48:07 +010013LIB = $(obj)lib$(BOARD).o
wdenk1fe2c702003-03-06 21:55:29 +000014
David Müller (ELSOFT AG)d3a4d252011-05-01 21:52:51 +000015COBJS := ../common/common_util.o
16COBJS += $(BOARD).o cmd_$(BOARD).o
wdenk1fe2c702003-03-06 21:55:29 +000017
wdenk336b2bc2005-04-02 23:52:25 +000018SOBJS := lowlevel_init.o
wdenk1fe2c702003-03-06 21:55:29 +000019
Marian Balakowiczd62379d2006-09-01 19:49:50 +020020SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
21OBJS := $(addprefix $(obj),$(COBJS))
22SOBJS := $(addprefix $(obj),$(SOBJS))
23
24$(LIB): $(obj).depend $(OBJS) $(SOBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010025 $(call cmd_link_o_target, $(OBJS) $(SOBJS))
wdenk1fe2c702003-03-06 21:55:29 +000026
wdenk1fe2c702003-03-06 21:55:29 +000027#########################################################################
28
Marian Balakowiczd62379d2006-09-01 19:49:50 +020029# defines $(obj).depend target
30include $(SRCTREE)/rules.mk
wdenk1fe2c702003-03-06 21:55:29 +000031
Marian Balakowiczd62379d2006-09-01 19:49:50 +020032sinclude $(obj).depend
wdenk1fe2c702003-03-06 21:55:29 +000033
34#########################################################################