4 # Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
6 # SPDX-License-Identifier: GPL-2.0+
9 include $(TOPDIR)/config.mk
11 LIB = $(obj)lib$(BOARD).o
13 ifeq ($(CONFIG_SPL_BUILD)$(CONFIG_NOR_BOOT),y)
18 SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
19 OBJS := $(addprefix $(obj),$(COBJS))
20 SOBJS := $(addprefix $(obj),$(SOBJS))
22 $(LIB): $(obj).depend $(OBJS) $(SOBJS)
23 $(call cmd_link_o_target, $(OBJS) $(SOBJS))
26 rm -f $(SOBJS) $(OBJS)
29 rm -f $(LIB) core *.bak $(obj).depend
31 #########################################################################
33 # defines $(obj).depend target
34 include $(SRCTREE)/rules.mk
36 sinclude $(obj).depend
38 #########################################################################