xref: /openbmc/u-boot/arch/sh/cpu/sh3/Makefile (revision 425faf74)
1#
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#
11# SPDX-License-Identifier:	GPL-2.0+
12#
13
14include $(TOPDIR)/config.mk
15
16LIB	= $(obj)lib$(CPU).o
17
18SOBJS	= start.o
19COBJS	= cpu.o interrupts.o watchdog.o cache.o
20
21SRCS	:= $(SOBJS:.o=.S) $(COBJS:.o=.c)
22OBJS	:= $(addprefix $(obj),$(COBJS))
23SOBJS	:= $(addprefix $(obj),$(SOBJS))
24
25$(LIB):	$(OBJS) $(SOBJS)
26	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
27
28#########################################################################
29
30# defines $(obj).depend target
31include $(SRCTREE)/rules.mk
32
33sinclude $(obj).depend
34
35#########################################################################
36