blob: 5680d6115dd0684abd5ca0d1d74dd271a163567c [file] [log] [blame]
Nobuhiro Iwamatsu970dc332007-05-13 20:58:00 +09001#
2# (C) Copyright 2000-2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
5# (C) Copyright 2007
6# Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
7#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02008# SPDX-License-Identifier: GPL-2.0+
Nobuhiro Iwamatsu970dc332007-05-13 20:58:00 +09009#
10
11include $(TOPDIR)/config.mk
12
Sebastien Carliera8d426f2010-11-05 15:48:07 +010013LIB = $(obj)lib$(CPU).o
Nobuhiro Iwamatsu970dc332007-05-13 20:58:00 +090014
Masahiro Yamada9c69e302013-10-21 11:53:25 +090015START = start.o
Nobuhiro Iwamatsuac890472008-11-20 16:44:42 +090016COBJS = cpu.o interrupts.o watchdog.o cache.o
Nobuhiro Iwamatsu970dc332007-05-13 20:58:00 +090017
Wolfgang Denk102740d2008-07-02 23:38:50 +020018SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
19OBJS := $(addprefix $(obj),$(COBJS))
20SOBJS := $(addprefix $(obj),$(SOBJS))
Nobuhiro Iwamatsu970dc332007-05-13 20:58:00 +090021
Masahiro Yamada9c69e302013-10-21 11:53:25 +090022all: $(START) $(LIB)
23
Wolfgang Denk102740d2008-07-02 23:38:50 +020024$(LIB): $(OBJS) $(SOBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010025 $(call cmd_link_o_target, $(OBJS) $(SOBJS))
Wolfgang Denk102740d2008-07-02 23:38:50 +020026
Nobuhiro Iwamatsu970dc332007-05-13 20:58:00 +090027#########################################################################
28
Wolfgang Denk102740d2008-07-02 23:38:50 +020029# defines $(obj).depend target
30include $(SRCTREE)/rules.mk
Nobuhiro Iwamatsu970dc332007-05-13 20:58:00 +090031
Wolfgang Denk102740d2008-07-02 23:38:50 +020032sinclude $(obj).depend
Nobuhiro Iwamatsu970dc332007-05-13 20:58:00 +090033
34#########################################################################