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