blob: c522a2b84eaefbcb4966615a5e3461d4d7072da2 [file] [log] [blame]
Steve Sakoman1b3dd5d2010-06-08 13:07:46 -07001#
2# (C) Copyright 2000, 2001, 2002
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Steve Sakoman1b3dd5d2010-06-08 13:07:46 -07006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carliera8d426f2010-11-05 15:48:07 +010010LIB = $(obj)lib$(BOARD).o
Steve Sakoman1b3dd5d2010-06-08 13:07:46 -070011
Sricharan9310ff72011-11-15 09:49:55 -050012COBJS := sdp.o
13
Aneesh Vb8e60b92011-07-21 09:10:21 -040014ifndef CONFIG_SPL_BUILD
Sricharan9310ff72011-11-15 09:49:55 -050015COBJS += cmd_bat.o
Aneesh Vb8e60b92011-07-21 09:10:21 -040016endif
Steve Sakoman1b3dd5d2010-06-08 13:07:46 -070017
18SRCS := $(COBJS:.o=.c)
19OBJS := $(addprefix $(obj),$(COBJS))
20
21$(LIB): $(obj).depend $(OBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010022 $(call cmd_link_o_target, $(OBJS))
Steve Sakoman1b3dd5d2010-06-08 13:07:46 -070023
Steve Sakoman1b3dd5d2010-06-08 13:07:46 -070024#########################################################################
25
26# defines $(obj).depend target
27include $(SRCTREE)/rules.mk
28
29sinclude $(obj).depend
30
31#########################################################################