blob: e707de3f8986ca61eb451031f12430bcc495722d [file] [log] [blame]
Yoshihiro Shimodaad1a3a92007-12-03 22:58:45 +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#
8# (C) Copyright 2007
9# Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com>
10#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +020011# SPDX-License-Identifier: GPL-2.0+
Yoshihiro Shimodaad1a3a92007-12-03 22:58:45 +090012#
13
14include $(TOPDIR)/config.mk
15
Sebastien Carliera8d426f2010-11-05 15:48:07 +010016LIB = $(obj)lib$(CPU).o
Yoshihiro Shimodaad1a3a92007-12-03 22:58:45 +090017
Wolfgang Denk102740d2008-07-02 23:38:50 +020018SOBJS = start.o
Nobuhiro Iwamatsuac890472008-11-20 16:44:42 +090019COBJS = cpu.o interrupts.o watchdog.o cache.o
Yoshihiro Shimodaad1a3a92007-12-03 22:58:45 +090020
Wolfgang Denk102740d2008-07-02 23:38:50 +020021SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
22OBJS := $(addprefix $(obj),$(COBJS))
23SOBJS := $(addprefix $(obj),$(SOBJS))
Yoshihiro Shimodaad1a3a92007-12-03 22:58:45 +090024
Wolfgang Denk102740d2008-07-02 23:38:50 +020025$(LIB): $(OBJS) $(SOBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010026 $(call cmd_link_o_target, $(OBJS) $(SOBJS))
Wolfgang Denk102740d2008-07-02 23:38:50 +020027
Yoshihiro Shimodaad1a3a92007-12-03 22:58:45 +090028#########################################################################
29
Wolfgang Denk102740d2008-07-02 23:38:50 +020030# defines $(obj).depend target
31include $(SRCTREE)/rules.mk
Yoshihiro Shimodaad1a3a92007-12-03 22:58:45 +090032
Wolfgang Denk102740d2008-07-02 23:38:50 +020033sinclude $(obj).depend
Yoshihiro Shimodaad1a3a92007-12-03 22:58:45 +090034
35#########################################################################