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