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