blob: fdae010b1bd0c8c1a267416b94b3f06769e86987 [file] [log] [blame]
stroese7fa6ddd2004-12-16 18:23:14 +00001#
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002# (C) Copyright 2000-2006
stroese7fa6ddd2004-12-16 18:23:14 +00003# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
stroese7fa6ddd2004-12-16 18:23:14 +00006#
7
8include $(TOPDIR)/config.mk
Marian Balakowiczd62379d2006-09-01 19:49:50 +02009ifneq ($(OBJTREE),$(SRCTREE))
10$(shell mkdir -p $(obj)../common)
11endif
stroese7fa6ddd2004-12-16 18:23:14 +000012
Sebastien Carliera8d426f2010-11-05 15:48:07 +010013LIB = $(obj)lib$(BOARD).o
stroese7fa6ddd2004-12-16 18:23:14 +000014
Matthias Fuchsc8452fa2007-07-09 10:10:06 +020015COBJS = $(BOARD).o flash.o \
16 ../common/misc.o \
17 ../common/esd405ep_nand.o \
18 ../common/auto_update.o
Marian Balakowiczd62379d2006-09-01 19:49:50 +020019
20SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
21OBJS := $(addprefix $(obj),$(COBJS))
22SOBJS := $(addprefix $(obj),$(SOBJS))
stroese7fa6ddd2004-12-16 18:23:14 +000023
24$(LIB): $(OBJS) $(SOBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010025 $(call cmd_link_o_target, $(OBJS))
stroese7fa6ddd2004-12-16 18:23:14 +000026
stroese7fa6ddd2004-12-16 18:23:14 +000027#########################################################################
28
Marian Balakowiczd62379d2006-09-01 19:49:50 +020029# defines $(obj).depend target
30include $(SRCTREE)/rules.mk
stroese7fa6ddd2004-12-16 18:23:14 +000031
Marian Balakowiczd62379d2006-09-01 19:49:50 +020032sinclude $(obj).depend
stroese7fa6ddd2004-12-16 18:23:14 +000033
34#########################################################################