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