xref: /openbmc/u-boot/arch/sh/cpu/sh4/Makefile (revision 1a459660)
18f0fec74SPeter Tyser#
28f0fec74SPeter Tyser# (C) Copyright 2000-2006
38f0fec74SPeter Tyser# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
48f0fec74SPeter Tyser#
58f0fec74SPeter Tyser# (C) Copyright 2007
68f0fec74SPeter Tyser# Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
78f0fec74SPeter Tyser#
8*1a459660SWolfgang Denk# SPDX-License-Identifier:	GPL-2.0+
98f0fec74SPeter Tyser#
108f0fec74SPeter Tyser
118f0fec74SPeter Tyserinclude $(TOPDIR)/config.mk
128f0fec74SPeter Tyser
136d8962e8SSebastien CarlierLIB	= $(obj)lib$(CPU).o
148f0fec74SPeter Tyser
158f0fec74SPeter TyserSOBJS	= start.o
168f0fec74SPeter TyserCOBJS	= cpu.o interrupts.o watchdog.o cache.o
178f0fec74SPeter Tyser
188f0fec74SPeter TyserSRCS	:= $(SOBJS:.o=.S) $(COBJS:.o=.c)
198f0fec74SPeter TyserOBJS	:= $(addprefix $(obj),$(COBJS))
208f0fec74SPeter TyserSOBJS	:= $(addprefix $(obj),$(SOBJS))
218f0fec74SPeter Tyser
228f0fec74SPeter Tyser$(LIB):	$(OBJS) $(SOBJS)
236d8962e8SSebastien Carlier	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
248f0fec74SPeter Tyser
258f0fec74SPeter Tyser#########################################################################
268f0fec74SPeter Tyser
278f0fec74SPeter Tyser# defines $(obj).depend target
288f0fec74SPeter Tyserinclude $(SRCTREE)/rules.mk
298f0fec74SPeter Tyser
308f0fec74SPeter Tysersinclude $(obj).depend
318f0fec74SPeter Tyser
328f0fec74SPeter Tyser#########################################################################
33