xref: /openbmc/u-boot/arch/arm/cpu/armv7/Makefile (revision 87d98d3b)
1f56348afSSteve Sakoman#
2f56348afSSteve Sakoman# (C) Copyright 2000-2003
3f56348afSSteve Sakoman# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4f56348afSSteve Sakoman#
5f56348afSSteve Sakoman# See file CREDITS for list of people who contributed to this
6f56348afSSteve Sakoman# project.
7f56348afSSteve Sakoman#
8f56348afSSteve Sakoman# This program is free software; you can redistribute it and/or
9f56348afSSteve Sakoman# modify it under the terms of the GNU General Public License as
10f56348afSSteve Sakoman# published by the Free Software Foundation; either version 2 of
11f56348afSSteve Sakoman# the License, or (at your option) any later version.
12f56348afSSteve Sakoman#
13f56348afSSteve Sakoman# This program is distributed in the hope that it will be useful,
14f56348afSSteve Sakoman# but WITHOUT ANY WARRANTY; without even the implied warranty of
15f56348afSSteve Sakoman# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16f56348afSSteve Sakoman# GNU General Public License for more details.
17f56348afSSteve Sakoman#
18f56348afSSteve Sakoman# You should have received a copy of the GNU General Public License
19f56348afSSteve Sakoman# along with this program; if not, write to the Free Software
20f56348afSSteve Sakoman# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
21f56348afSSteve Sakoman# MA 02111-1307 USA
22f56348afSSteve Sakoman#
23f56348afSSteve Sakoman
24f56348afSSteve Sakomaninclude $(TOPDIR)/config.mk
25f56348afSSteve Sakoman
26f56348afSSteve SakomanLIB	= $(obj)lib$(CPU).a
27f56348afSSteve Sakoman
28f56348afSSteve SakomanSTART	:= start.o
29f56348afSSteve SakomanCOBJS	:= cpu.o
30*87d98d3bSStefano BabicCOBJS  += syslib.o
31f56348afSSteve Sakoman
32f56348afSSteve SakomanSRCS	:= $(START:.o=.S) $(COBJS:.o=.c)
33f56348afSSteve SakomanOBJS	:= $(addprefix $(obj),$(COBJS))
34f56348afSSteve SakomanSTART	:= $(addprefix $(obj),$(START))
35f56348afSSteve Sakoman
36f56348afSSteve Sakomanall:	$(obj).depend $(START) $(LIB)
37f56348afSSteve Sakoman
38f56348afSSteve Sakoman$(LIB):	$(OBJS)
39f56348afSSteve Sakoman	$(AR) $(ARFLAGS) $@ $(OBJS)
40f56348afSSteve Sakoman
41f56348afSSteve Sakoman#########################################################################
42f56348afSSteve Sakoman
43f56348afSSteve Sakoman# defines $(obj).depend target
44f56348afSSteve Sakomaninclude $(SRCTREE)/rules.mk
45f56348afSSteve Sakoman
46f56348afSSteve Sakomansinclude $(obj).depend
47f56348afSSteve Sakoman
48f56348afSSteve Sakoman#########################################################################
49