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$(SOC).o 11 12COBJS-y := cpu.o \ 13 reset.o \ 14 timer.o 15 16ifdef CONFIG_SPL_BUILD 17COBJS-y += spl.o spl_boot.o 18COBJS-$(CONFIG_SPEAR600) += spear600.o 19COBJS-$(CONFIG_DDR_MT47H64M16) += spr600_mt47h64m16_3_333_cl5_psync.o 20COBJS-$(CONFIG_DDR_MT47H32M16) += spr600_mt47h32m16_333_cl5_psync.o 21COBJS-$(CONFIG_DDR_MT47H32M16) += spr600_mt47h32m16_37e_166_cl4_sync.o 22COBJS-$(CONFIG_DDR_MT47H128M8) += spr600_mt47h128m8_3_266_cl5_async.o 23endif 24 25SRCS := $(START:.o=.S) $(COBJS-y:.o=.c) 26OBJS := $(addprefix $(obj),$(COBJS-y)) 27START := $(addprefix $(obj),$(START)) 28 29all: $(obj).depend $(LIB) 30 31$(LIB): $(OBJS) 32 $(call cmd_link_o_target, $(OBJS)) 33 34######################################################################### 35 36# defines $(obj).depend target 37include $(SRCTREE)/rules.mk 38 39sinclude $(obj).depend 40 41######################################################################### 42