blob: e5caf2331ada52a51b58af002b7b60c6177931a1 [file] [log] [blame]
wdenkab255f22002-09-18 09:04:55 +00001#
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002# (C) Copyright 2000-2006
wdenkab255f22002-09-18 09:04:55 +00003# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
wdenkab255f22002-09-18 09:04:55 +00006#
7
8include $(TOPDIR)/config.mk
Marian Balakowiczd62379d2006-09-01 19:49:50 +02009ifneq ($(OBJTREE),$(SRCTREE))
10$(shell mkdir -p $(obj)../common)
11endif
wdenkab255f22002-09-18 09:04:55 +000012
Sebastien Carliera8d426f2010-11-05 15:48:07 +010013LIB = $(obj)lib$(BOARD).o
wdenkab255f22002-09-18 09:04:55 +000014
Marian Balakowiczd62379d2006-09-01 19:49:50 +020015COBJS = $(BOARD).o flash.o ../common/misc.o
16
17SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
18OBJS := $(addprefix $(obj),$(COBJS))
19SOBJS := $(addprefix $(obj),$(SOBJS))
wdenkab255f22002-09-18 09:04:55 +000020
21$(LIB): $(OBJS) $(SOBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010022 $(call cmd_link_o_target, $(OBJS))
wdenkab255f22002-09-18 09:04:55 +000023
wdenkab255f22002-09-18 09:04:55 +000024#########################################################################
25
Marian Balakowiczd62379d2006-09-01 19:49:50 +020026# defines $(obj).depend target
27include $(SRCTREE)/rules.mk
wdenkab255f22002-09-18 09:04:55 +000028
Marian Balakowiczd62379d2006-09-01 19:49:50 +020029sinclude $(obj).depend
wdenkab255f22002-09-18 09:04:55 +000030
31#########################################################################