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 Vifndef CONFIG_SPL_BUILD 31bcae7211SAneesh VCOBJS += cache_v7.o 32bcae7211SAneesh Vendif 33bcae7211SAneesh V 34*87d3da7bSAneesh VCOBJS += cpu.o 3587d98d3bSStefano BabicCOBJS += syslib.o 36f56348afSSteve Sakoman 37f56348afSSteve SakomanSRCS := $(START:.o=.S) $(COBJS:.o=.c) 38f56348afSSteve SakomanOBJS := $(addprefix $(obj),$(COBJS)) 39f56348afSSteve SakomanSTART := $(addprefix $(obj),$(START)) 40f56348afSSteve Sakoman 41f56348afSSteve Sakomanall: $(obj).depend $(START) $(LIB) 42f56348afSSteve Sakoman 43f56348afSSteve Sakoman$(LIB): $(OBJS) 446d8962e8SSebastien Carlier $(call cmd_link_o_target, $(OBJS)) 45f56348afSSteve Sakoman 46f56348afSSteve Sakoman######################################################################### 47f56348afSSteve Sakoman 48f56348afSSteve Sakoman# defines $(obj).depend target 49f56348afSSteve Sakomaninclude $(SRCTREE)/rules.mk 50f56348afSSteve Sakoman 51f56348afSSteve Sakomansinclude $(obj).depend 52f56348afSSteve Sakoman 53f56348afSSteve Sakoman######################################################################### 54