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