18f0fec74SPeter Tyser# 28f0fec74SPeter Tyser# (C) Copyright 2000-2006 38f0fec74SPeter Tyser# Wolfgang Denk, DENX Software Engineering, wd@denx.de. 48f0fec74SPeter Tyser# 58f0fec74SPeter Tyser# (C) Copyright 2007 68f0fec74SPeter Tyser# Nobuhiro Iwamatsu <iwamatsu@nigauri.org> 78f0fec74SPeter Tyser# 88f0fec74SPeter Tyser# See file CREDITS for list of people who contributed to this 98f0fec74SPeter Tyser# project. 108f0fec74SPeter Tyser# 118f0fec74SPeter Tyser# This program is free software; you can redistribute it and/or 128f0fec74SPeter Tyser# modify it under the terms of the GNU General Public License as 138f0fec74SPeter Tyser# published by the Free Software Foundation; either version 2 of 148f0fec74SPeter Tyser# the License, or (at your option) any later version. 158f0fec74SPeter Tyser# 168f0fec74SPeter Tyser# This program is distributed in the hope that it will be useful, 178f0fec74SPeter Tyser# but WITHOUT ANY WARRANTY; without even the implied warranty of 188f0fec74SPeter Tyser# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 198f0fec74SPeter Tyser# GNU General Public License for more details. 208f0fec74SPeter Tyser# 218f0fec74SPeter Tyser# You should have received a copy of the GNU General Public License 228f0fec74SPeter Tyser# along with this program; if not, write to the Free Software 238f0fec74SPeter Tyser# Foundation, Inc., 59 Temple Place, Suite 330, Boston, 248f0fec74SPeter Tyser# MA 02111-1307 USA 258f0fec74SPeter Tyser# 268f0fec74SPeter Tyser 278f0fec74SPeter Tyserinclude $(TOPDIR)/config.mk 288f0fec74SPeter Tyser 29*6d8962e8SSebastien CarlierLIB = $(obj)lib$(CPU).o 308f0fec74SPeter Tyser 318f0fec74SPeter TyserSOBJS = start.o 328f0fec74SPeter TyserCOBJS = cpu.o interrupts.o watchdog.o cache.o 338f0fec74SPeter Tyser 348f0fec74SPeter TyserSRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) 358f0fec74SPeter TyserOBJS := $(addprefix $(obj),$(COBJS)) 368f0fec74SPeter TyserSOBJS := $(addprefix $(obj),$(SOBJS)) 378f0fec74SPeter Tyser 388f0fec74SPeter Tyser$(LIB): $(OBJS) $(SOBJS) 39*6d8962e8SSebastien Carlier $(call cmd_link_o_target, $(OBJS) $(SOBJS)) 408f0fec74SPeter Tyser 418f0fec74SPeter Tyserclean: 428f0fec74SPeter Tyser rm -f $(SOBJS) $(OBJS) 438f0fec74SPeter Tyser 448f0fec74SPeter Tyserdistclean: clean 458f0fec74SPeter Tyser rm -f $(LIB) core *.bak $(obj).depend 468f0fec74SPeter Tyser 478f0fec74SPeter Tyser######################################################################### 488f0fec74SPeter Tyser 498f0fec74SPeter Tyser# defines $(obj).depend target 508f0fec74SPeter Tyserinclude $(SRCTREE)/rules.mk 518f0fec74SPeter Tyser 528f0fec74SPeter Tysersinclude $(obj).depend 538f0fec74SPeter Tyser 548f0fec74SPeter Tyser######################################################################### 55