blob: 5d451a78b637c5927d4581ef3e2829cf248af1b5 [file] [log] [blame]
Guennadi Liakhovetski8c170c52008-08-31 00:39:46 +02001#
2# (C) Copyright 2000-2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
5# (C) Copyright 2008
6# Guennadi Liakhovetki, DENX Software Engineering, <lg@denx.de>
7#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02008# SPDX-License-Identifier: GPL-2.0+
Guennadi Liakhovetski8c170c52008-08-31 00:39:46 +02009#
10
11include $(TOPDIR)/config.mk
12
Sebastien Carliera8d426f2010-11-05 15:48:07 +010013LIB = $(obj)lib$(CPU).o
Guennadi Liakhovetski8c170c52008-08-31 00:39:46 +020014
15START = start.o
16COBJS = cpu.o
17
18SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)
19OBJS := $(addprefix $(obj),$(COBJS) $(SOBJS))
20START := $(addprefix $(obj),$(START))
21
22all: $(obj).depend $(START) $(LIB)
23
24$(LIB): $(OBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010025 $(call cmd_link_o_target, $(OBJS))
Guennadi Liakhovetski8c170c52008-08-31 00:39:46 +020026
27#########################################################################
28
29# defines $(obj).depend target
30include $(SRCTREE)/rules.mk
31
32sinclude $(obj).depend
33
34#########################################################################