blob: b4c214c704cc05ecff5abe66486d1bb955a2c0f6 [file] [log] [blame]
wdenk6f213472003-08-29 22:00:43 +00001#
Marian Balakowiczf9328632006-09-01 19:49:50 +02002# (C) Copyright 2000-2006
wdenk6f213472003-08-29 22:00:43 +00003# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
wdenk6f213472003-08-29 22:00:43 +00006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010010LIB = $(obj)lib$(CPU).o
wdenk6f213472003-08-29 22:00:43 +000011
12START = start.o
Ilya Yanok2f3427c2011-11-28 06:37:32 +000013COBJS = cpu.o cache.o
wdenk6f213472003-08-29 22:00:43 +000014
Marek Vasut99bd3412011-10-24 00:14:23 +000015ifdef CONFIG_SPL_BUILD
16ifdef CONFIG_SPL_NO_CPU_SUPPORT_CODE
17START :=
18endif
19endif
20
Marian Balakowiczf9328632006-09-01 19:49:50 +020021SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)
22OBJS := $(addprefix $(obj),$(COBJS) $(SOBJS))
23START := $(addprefix $(obj),$(START))
24
25all: $(obj).depend $(START) $(LIB)
wdenk6f213472003-08-29 22:00:43 +000026
27$(LIB): $(OBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010028 $(call cmd_link_o_target, $(OBJS))
wdenk6f213472003-08-29 22:00:43 +000029
30#########################################################################
31
Marian Balakowiczf9328632006-09-01 19:49:50 +020032# defines $(obj).depend target
33include $(SRCTREE)/rules.mk
wdenk6f213472003-08-29 22:00:43 +000034
Marian Balakowiczf9328632006-09-01 19:49:50 +020035sinclude $(obj).depend
wdenk6f213472003-08-29 22:00:43 +000036
37#########################################################################