blob: e7d8903814ff59fa704becf29eb6cc29caa1d2c6 [file] [log] [blame]
Nobuhiro Iwamatsu0b135cf2007-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 Denk1a459662013-07-08 09:37:19 +02008# SPDX-License-Identifier: GPL-2.0+
Nobuhiro Iwamatsu0b135cf2007-05-13 20:58:00 +09009#
10
11include $(TOPDIR)/config.mk
12
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010013LIB = $(obj)lib$(CPU).o
Nobuhiro Iwamatsu0b135cf2007-05-13 20:58:00 +090014
Wolfgang Denka30cc5a2008-07-02 23:38:50 +020015SOBJS = start.o
Nobuhiro Iwamatsue9d5f352008-11-20 16:44:42 +090016COBJS = cpu.o interrupts.o watchdog.o cache.o
Nobuhiro Iwamatsu0b135cf2007-05-13 20:58:00 +090017
Wolfgang Denka30cc5a2008-07-02 23:38:50 +020018SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
19OBJS := $(addprefix $(obj),$(COBJS))
20SOBJS := $(addprefix $(obj),$(SOBJS))
Nobuhiro Iwamatsu0b135cf2007-05-13 20:58:00 +090021
Wolfgang Denka30cc5a2008-07-02 23:38:50 +020022$(LIB): $(OBJS) $(SOBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010023 $(call cmd_link_o_target, $(OBJS) $(SOBJS))
Wolfgang Denka30cc5a2008-07-02 23:38:50 +020024
Nobuhiro Iwamatsu0b135cf2007-05-13 20:58:00 +090025#########################################################################
26
Wolfgang Denka30cc5a2008-07-02 23:38:50 +020027# defines $(obj).depend target
28include $(SRCTREE)/rules.mk
Nobuhiro Iwamatsu0b135cf2007-05-13 20:58:00 +090029
Wolfgang Denka30cc5a2008-07-02 23:38:50 +020030sinclude $(obj).depend
Nobuhiro Iwamatsu0b135cf2007-05-13 20:58:00 +090031
32#########################################################################