4 # Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
6 # This program is free software; you can redistribute it and/or
7 # modify it under the terms of the GNU General Public License as
8 # published by the Free Software Foundation; either version 2 of
9 # the License, or (at your option) any later version.
11 # This program is distributed "as is" WITHOUT ANY WARRANTY of any
12 # kind, whether express or implied; without even the implied warranty
13 # of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
17 include $(TOPDIR)/config.mk
19 LIB = $(obj)lib$(BOARD).o
21 ifdef CONFIG_SPL_BUILD
25 SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
26 OBJS := $(addprefix $(obj),$(COBJS))
27 SOBJS := $(addprefix $(obj),$(SOBJS))
29 $(LIB): $(obj).depend $(OBJS) $(SOBJS)
30 $(call cmd_link_o_target, $(OBJS) $(SOBJS))
33 rm -f $(SOBJS) $(OBJS)
36 rm -f $(LIB) core *.bak $(obj).depend
38 #########################################################################
40 # defines $(obj).depend target
41 include $(SRCTREE)/rules.mk
43 sinclude $(obj).depend
45 #########################################################################