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