xref: /openbmc/u-boot/arch/sh/cpu/sh4/Makefile (revision 8f0fec74)
1*8f0fec74SPeter Tyser#
2*8f0fec74SPeter Tyser# (C) Copyright 2000-2006
3*8f0fec74SPeter Tyser# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4*8f0fec74SPeter Tyser#
5*8f0fec74SPeter Tyser# (C) Copyright 2007
6*8f0fec74SPeter Tyser# Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
7*8f0fec74SPeter Tyser#
8*8f0fec74SPeter Tyser# See file CREDITS for list of people who contributed to this
9*8f0fec74SPeter Tyser# project.
10*8f0fec74SPeter Tyser#
11*8f0fec74SPeter Tyser# This program is free software; you can redistribute it and/or
12*8f0fec74SPeter Tyser# modify it under the terms of the GNU General Public License as
13*8f0fec74SPeter Tyser# published by the Free Software Foundation; either version 2 of
14*8f0fec74SPeter Tyser# the License, or (at your option) any later version.
15*8f0fec74SPeter Tyser#
16*8f0fec74SPeter Tyser# This program is distributed in the hope that it will be useful,
17*8f0fec74SPeter Tyser# but WITHOUT ANY WARRANTY; without even the implied warranty of
18*8f0fec74SPeter Tyser# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19*8f0fec74SPeter Tyser# GNU General Public License for more details.
20*8f0fec74SPeter Tyser#
21*8f0fec74SPeter Tyser# You should have received a copy of the GNU General Public License
22*8f0fec74SPeter Tyser# along with this program; if not, write to the Free Software
23*8f0fec74SPeter Tyser# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
24*8f0fec74SPeter Tyser# MA 02111-1307 USA
25*8f0fec74SPeter Tyser#
26*8f0fec74SPeter Tyser
27*8f0fec74SPeter Tyserinclude $(TOPDIR)/config.mk
28*8f0fec74SPeter Tyser
29*8f0fec74SPeter TyserLIB	= $(obj)lib$(CPU).a
30*8f0fec74SPeter Tyser
31*8f0fec74SPeter TyserSOBJS	= start.o
32*8f0fec74SPeter TyserCOBJS	= cpu.o interrupts.o watchdog.o cache.o
33*8f0fec74SPeter Tyser
34*8f0fec74SPeter TyserSRCS	:= $(SOBJS:.o=.S) $(COBJS:.o=.c)
35*8f0fec74SPeter TyserOBJS	:= $(addprefix $(obj),$(COBJS))
36*8f0fec74SPeter TyserSOBJS	:= $(addprefix $(obj),$(SOBJS))
37*8f0fec74SPeter Tyser
38*8f0fec74SPeter Tyser$(LIB):	$(OBJS) $(SOBJS)
39*8f0fec74SPeter Tyser	$(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
40*8f0fec74SPeter Tyser
41*8f0fec74SPeter Tyserclean:
42*8f0fec74SPeter Tyser	rm -f $(SOBJS) $(OBJS)
43*8f0fec74SPeter Tyser
44*8f0fec74SPeter Tyserdistclean:	clean
45*8f0fec74SPeter Tyser	rm -f $(LIB) core *.bak $(obj).depend
46*8f0fec74SPeter Tyser
47*8f0fec74SPeter Tyser#########################################################################
48*8f0fec74SPeter Tyser
49*8f0fec74SPeter Tyser# defines $(obj).depend target
50*8f0fec74SPeter Tyserinclude $(SRCTREE)/rules.mk
51*8f0fec74SPeter Tyser
52*8f0fec74SPeter Tysersinclude $(obj).depend
53*8f0fec74SPeter Tyser
54*8f0fec74SPeter Tyser#########################################################################
55