blob: 0834476731ebada391360a1b5736302ea9db17ba [file] [log] [blame]
wdenkef3386f2004-10-10 21:27:30 +00001#
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002# (C) Copyright 2000-2006
wdenkef3386f2004-10-10 21:27:30 +00003# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
wdenkef3386f2004-10-10 21:27:30 +00006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carliera8d426f2010-11-05 15:48:07 +010010LIB = $(obj)lib$(CPU).o
wdenkef3386f2004-10-10 21:27:30 +000011
12START = start.o
Marian Balakowiczd62379d2006-09-01 19:49:50 +020013SOBJS = exceptions.o
Scott McNutt4a889822010-03-19 19:03:28 -040014COBJS = cpu.o interrupts.o sysid.o traps.o epcs.o
Joachim Foerster089ba382011-10-26 14:25:00 +020015COBJS += fdt.o
wdenkef3386f2004-10-10 21:27:30 +000016
Marian Balakowiczd62379d2006-09-01 19:49:50 +020017SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)
18OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))
19START := $(addprefix $(obj),$(START))
wdenkef3386f2004-10-10 21:27:30 +000020
Marian Balakowiczd62379d2006-09-01 19:49:50 +020021all: $(obj).depend $(START) $(LIB)
22
23$(LIB): $(OBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010024 $(call cmd_link_o_target, $(OBJS))
wdenkef3386f2004-10-10 21:27:30 +000025
26#########################################################################
27
Marian Balakowiczd62379d2006-09-01 19:49:50 +020028# defines $(obj).depend target
29include $(SRCTREE)/rules.mk
wdenkef3386f2004-10-10 21:27:30 +000030
Marian Balakowiczd62379d2006-09-01 19:49:50 +020031sinclude $(obj).depend
wdenkef3386f2004-10-10 21:27:30 +000032
33#########################################################################