blob: 17dd09783b44ee58a5315c684f1e1ad1a4d95c08 [file] [log] [blame]
stroese22a40b02003-09-12 08:42:13 +00001#
Marian Balakowiczf9328632006-09-01 19:49:50 +02002# (C) Copyright 2000-2006
stroese22a40b02003-09-12 08:42:13 +00003# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
stroese22a40b02003-09-12 08:42:13 +00006#
7
8include $(TOPDIR)/config.mk
Marian Balakowiczf9328632006-09-01 19:49:50 +02009ifneq ($(OBJTREE),$(SRCTREE))
10$(shell mkdir -p $(obj)../common)
11endif
stroese22a40b02003-09-12 08:42:13 +000012
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010013LIB = $(obj)lib$(BOARD).o
stroese22a40b02003-09-12 08:42:13 +000014
Matthias Fuchsbd84ee42007-07-09 10:10:06 +020015COBJS = $(BOARD).o flash.o \
16 ../common/misc.o \
17 ../common/esd405ep_nand.o \
Marian Balakowiczf9328632006-09-01 19:49:50 +020018
19SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
20OBJS := $(addprefix $(obj),$(COBJS))
21SOBJS := $(addprefix $(obj),$(SOBJS))
stroese22a40b02003-09-12 08:42:13 +000022
23$(LIB): $(OBJS) $(SOBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010024 $(call cmd_link_o_target, $(OBJS))
stroese22a40b02003-09-12 08:42:13 +000025
stroese22a40b02003-09-12 08:42:13 +000026#########################################################################
27
Marian Balakowiczf9328632006-09-01 19:49:50 +020028# defines $(obj).depend target
29include $(SRCTREE)/rules.mk
stroese22a40b02003-09-12 08:42:13 +000030
Marian Balakowiczf9328632006-09-01 19:49:50 +020031sinclude $(obj).depend
stroese22a40b02003-09-12 08:42:13 +000032
33#########################################################################