xref: /openbmc/u-boot/arch/arm/cpu/armv7/Makefile (revision ea7b96b6)
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
266d8962e8SSebastien CarlierLIB	= $(obj)lib$(CPU).o
27f56348afSSteve Sakoman
28f56348afSSteve SakomanSTART	:= start.o
29bcae7211SAneesh V
30bcae7211SAneesh VCOBJS	+= cache_v7.o
31bcae7211SAneesh V
3287d3da7bSAneesh VCOBJS	+= cpu.o
3387d98d3bSStefano BabicCOBJS	+= syslib.o
34f56348afSSteve Sakoman
35*ea7b96b6SMatt Porterifneq ($(CONFIG_AM33XX)$(CONFIG_OMAP44XX)$(CONFIG_OMAP54XX)$(CONFIG_TEGRA)$(CONFIG_MX6)$(CONFIG_TI814X),)
3641aebf81STom RiniSOBJS	+= lowlevel_init.o
3741aebf81STom Riniendif
3841aebf81STom Rini
39f56348afSSteve SakomanSRCS	:= $(START:.o=.S) $(COBJS:.o=.c)
4041aebf81STom RiniOBJS	:= $(addprefix $(obj),$(COBJS) $(SOBJS))
41f56348afSSteve SakomanSTART	:= $(addprefix $(obj),$(START))
42f56348afSSteve Sakoman
43f56348afSSteve Sakomanall:	$(obj).depend $(START) $(LIB)
44f56348afSSteve Sakoman
45f56348afSSteve Sakoman$(LIB):	$(OBJS)
466d8962e8SSebastien Carlier	$(call cmd_link_o_target, $(OBJS))
47f56348afSSteve Sakoman
48f56348afSSteve Sakoman#########################################################################
49f56348afSSteve Sakoman
50f56348afSSteve Sakoman# defines $(obj).depend target
51f56348afSSteve Sakomaninclude $(SRCTREE)/rules.mk
52f56348afSSteve Sakoman
53f56348afSSteve Sakomansinclude $(obj).depend
54f56348afSSteve Sakoman
55f56348afSSteve Sakoman#########################################################################
56