blob: 73e16354d03dcf20bc0fed762d44a25df252ad2a [file] [log] [blame]
wdenkc6097192002-11-03 00:24:07 +00001#
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002# (C) Copyright 2000-2006
wdenkc6097192002-11-03 00:24:07 +00003# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
wdenkc6097192002-11-03 00:24:07 +00006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carliera8d426f2010-11-05 15:48:07 +010010LIB = $(obj)lib$(CPU).o
wdenkc6097192002-11-03 00:24:07 +000011
12START = start.o
Jean-Christophe PLAGNIOL-VILLARDf7110262009-03-29 23:01:42 +020013COBJS = interrupts.o cpu.o
wdenkc6097192002-11-03 00:24:07 +000014
Marian Balakowiczd62379d2006-09-01 19:49:50 +020015SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)
16OBJS := $(addprefix $(obj),$(COBJS) $(SOBJS))
17START := $(addprefix $(obj),$(START))
18
19all: $(obj).depend $(START) $(LIB)
wdenkc6097192002-11-03 00:24:07 +000020
21$(LIB): $(OBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010022 $(call cmd_link_o_target, $(OBJS))
wdenkc6097192002-11-03 00:24:07 +000023
24#########################################################################
25
Marian Balakowiczd62379d2006-09-01 19:49:50 +020026# defines $(obj).depend target
27include $(SRCTREE)/rules.mk
wdenkc6097192002-11-03 00:24:07 +000028
Marian Balakowiczd62379d2006-09-01 19:49:50 +020029sinclude $(obj).depend
wdenkc6097192002-11-03 00:24:07 +000030
31#########################################################################