184ad6884SPeter Tyser#
284ad6884SPeter Tyser# (C) Copyright 2000-2006
384ad6884SPeter Tyser# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
484ad6884SPeter Tyser#
584ad6884SPeter Tyser# See file CREDITS for list of people who contributed to this
684ad6884SPeter Tyser# project.
784ad6884SPeter Tyser#
884ad6884SPeter Tyser# This program is free software; you can redistribute it and/or
984ad6884SPeter Tyser# modify it under the terms of the GNU General Public License as
1084ad6884SPeter Tyser# published by the Free Software Foundation; either version 2 of
1184ad6884SPeter Tyser# the License, or (at your option) any later version.
1284ad6884SPeter Tyser#
1384ad6884SPeter Tyser# This program is distributed in the hope that it will be useful,
1484ad6884SPeter Tyser# but WITHOUT ANY WARRANTY; without even the implied warranty of
1584ad6884SPeter Tyser# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1684ad6884SPeter Tyser# GNU General Public License for more details.
1784ad6884SPeter Tyser#
1884ad6884SPeter Tyser# You should have received a copy of the GNU General Public License
1984ad6884SPeter Tyser# along with this program; if not, write to the Free Software
2084ad6884SPeter Tyser# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
2184ad6884SPeter Tyser# MA 02111-1307 USA
2284ad6884SPeter Tyser#
2384ad6884SPeter Tyser
2484ad6884SPeter Tyserinclude $(TOPDIR)/config.mk
2584ad6884SPeter Tyser
266d8962e8SSebastien CarlierLIB	= $(obj)lib$(SOC).o
2784ad6884SPeter Tyser
28*4ae8bc43SStefan RoeseCOBJS-y	:= cpu.o \
29962d026bSVipin KUMAR	   reset.o \
3084ad6884SPeter Tyser	   timer.o
3184ad6884SPeter Tyser
32*4ae8bc43SStefan Roeseifdef CONFIG_SPL_BUILD
33*4ae8bc43SStefan RoeseCOBJS-y	+= spl.o spl_boot.o
34*4ae8bc43SStefan RoeseCOBJS-$(CONFIG_SPEAR600) += spear600.o
35*4ae8bc43SStefan RoeseCOBJS-$(CONFIG_DDR_MT47H64M16) += spr600_mt47h64m16_3_333_cl5_psync.o
36*4ae8bc43SStefan RoeseCOBJS-$(CONFIG_DDR_MT47H32M16) += spr600_mt47h32m16_333_cl5_psync.o
37*4ae8bc43SStefan RoeseCOBJS-$(CONFIG_DDR_MT47H32M16) += spr600_mt47h32m16_37e_166_cl4_sync.o
38*4ae8bc43SStefan RoeseCOBJS-$(CONFIG_DDR_MT47H128M8) += spr600_mt47h128m8_3_266_cl5_async.o
39*4ae8bc43SStefan Roeseendif
4084ad6884SPeter Tyser
41*4ae8bc43SStefan RoeseSRCS	:= $(START:.o=.S) $(COBJS-y:.o=.c)
42*4ae8bc43SStefan RoeseOBJS	:= $(addprefix $(obj),$(COBJS-y))
43*4ae8bc43SStefan RoeseSTART	:= $(addprefix $(obj),$(START))
44*4ae8bc43SStefan Roese
45*4ae8bc43SStefan Roeseall:	$(obj).depend $(LIB)
46*4ae8bc43SStefan Roese
47*4ae8bc43SStefan Roese$(LIB):	$(OBJS)
48*4ae8bc43SStefan Roese	$(call cmd_link_o_target, $(OBJS))
4984ad6884SPeter Tyser
5084ad6884SPeter Tyser#########################################################################
5184ad6884SPeter Tyser
5284ad6884SPeter Tyser# defines $(obj).depend target
5384ad6884SPeter Tyserinclude $(SRCTREE)/rules.mk
5484ad6884SPeter Tyser
5584ad6884SPeter Tysersinclude $(obj).depend
5684ad6884SPeter Tyser
5784ad6884SPeter Tyser#########################################################################
58