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