2 # (C) Copyright 2000-2006
3 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5 # SPDX-License-Identifier: GPL-2.0+
8 include $(TOPDIR)/config.mk
10 LIB = $(obj)lib$(CPU).o
15 ifdef CONFIG_SPL_BUILD
16 ifdef CONFIG_SPL_NO_CPU_SUPPORT_CODE
21 SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)
22 OBJS := $(addprefix $(obj),$(COBJS) $(SOBJS))
23 START := $(addprefix $(obj),$(START))
25 all: $(obj).depend $(START) $(LIB)
28 $(call cmd_link_o_target, $(OBJS))
30 #########################################################################
32 # defines $(obj).depend target
33 include $(SRCTREE)/rules.mk
35 sinclude $(obj).depend
37 #########################################################################