blob: 31127f082bf241c84e080f392f17c7ae8065281f [file] [log] [blame]
Ilya Yanok89847ef2010-07-07 20:16:13 +04001#
2# (C) Copyright 2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4# (C) Copyright 2010
5# Ilya Yanok, Emcraft Systems, yanok@emcraft.com
6#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02007# SPDX-License-Identifier: GPL-2.0+
Ilya Yanok89847ef2010-07-07 20:16:13 +04008#
9
10include $(TOPDIR)/config.mk
11
Sebastien Carliera8d426f2010-11-05 15:48:07 +010012LIB = $(obj)lib$(BOARD).o
Ilya Yanok89847ef2010-07-07 20:16:13 +040013
14COBJS := $(BOARD).o sdram.o
15
16SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
17OBJS := $(addprefix $(obj),$(COBJS))
18SOBJS := $(addprefix $(obj),$(SOBJS))
19
20$(LIB): $(obj).depend $(OBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010021 $(call cmd_link_o_target, $(OBJS))
Ilya Yanok89847ef2010-07-07 20:16:13 +040022
Ilya Yanok89847ef2010-07-07 20:16:13 +040023#########################################################################
24
25# defines $(obj).depend target
26include $(SRCTREE)/rules.mk
27
28sinclude $(obj).depend
29
30#########################################################################