blob: 686bb7910aa35e044f7b9e2311bb2c3aa20224b9 [file] [log] [blame]
Nobuhiro Iwamatsu5b6918e2008-08-31 22:48:33 +09001#
2# (C) Copyright 2000-2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
5# Copyright (C) 2007,2008 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
6# Copyright (C) 2008 Renesas Solutions Corp.
7#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02008# SPDX-License-Identifier: GPL-2.0+
Nobuhiro Iwamatsu5b6918e2008-08-31 22:48:33 +09009#
10
11include $(TOPDIR)/config.mk
12
Sebastien Carliera8d426f2010-11-05 15:48:07 +010013LIB = $(obj)lib$(CPU).o
Nobuhiro Iwamatsu5b6918e2008-08-31 22:48:33 +090014
Masahiro Yamada9c69e302013-10-21 11:53:25 +090015START = start.o
Kieran Binghamc7e4e352008-12-30 01:16:03 +000016COBJS = cpu.o interrupts.o watchdog.o
Nobuhiro Iwamatsu5b6918e2008-08-31 22:48:33 +090017
Kieran Binghamc7e4e352008-12-30 01:16:03 +000018SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
19OBJS := $(addprefix $(obj),$(COBJS))
20SOBJS := $(addprefix $(obj),$(SOBJS))
Nobuhiro Iwamatsu5b6918e2008-08-31 22:48:33 +090021
Masahiro Yamada9c69e302013-10-21 11:53:25 +090022all: $(START) $(LIB)
23
Kieran Binghamc7e4e352008-12-30 01:16:03 +000024$(LIB): $(OBJS) $(SOBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010025 $(call cmd_link_o_target, $(OBJS) $(SOBJS))
Nobuhiro Iwamatsu5b6918e2008-08-31 22:48:33 +090026
Kieran Binghamc7e4e352008-12-30 01:16:03 +000027#########################################################################
Nobuhiro Iwamatsu5b6918e2008-08-31 22:48:33 +090028
29# defines $(obj).depend target
30include $(SRCTREE)/rules.mk
31
32sinclude $(obj).depend
33
34#########################################################################