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