1# 2# (C) Copyright 2000-2006 3# Wolfgang Denk, DENX Software Engineering, wd@denx.de. 4# 5# SPDX-License-Identifier: GPL-2.0+ 6# 7 8include $(TOPDIR)/config.mk 9 10LIB = $(obj)lib$(CPU).o 11 12START = start.o 13COBJS = cpu.o cache.o 14 15ifdef CONFIG_SPL_BUILD 16ifdef CONFIG_SPL_NO_CPU_SUPPORT_CODE 17START := 18endif 19endif 20 21SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c) 22OBJS := $(addprefix $(obj),$(COBJS) $(SOBJS)) 23START := $(addprefix $(obj),$(START)) 24 25all: $(obj).depend $(START) $(LIB) 26 27$(LIB): $(OBJS) 28 $(call cmd_link_o_target, $(OBJS)) 29 30######################################################################### 31 32# defines $(obj).depend target 33include $(SRCTREE)/rules.mk 34 35sinclude $(obj).depend 36 37######################################################################### 38