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 266d8962e8SSebastien CarlierLIB := $(obj)libspi_flash.o 27d25ce7d2SHaavard Skinnemoen 28d25ce7d2SHaavard SkinnemoenCOBJS-$(CONFIG_SPI_FLASH) += spi_flash.o 29d25ce7d2SHaavard SkinnemoenCOBJS-$(CONFIG_SPI_FLASH_ATMEL) += atmel.o 30*d1d90656SChong HuangCOBJS-$(CONFIG_SPI_FLASH_EON) += eon.o 317ce6031aSPrafulla WadaskarCOBJS-$(CONFIG_SPI_FLASH_MACRONIX) += macronix.o 326805e4bfSMingkai HuCOBJS-$(CONFIG_SPI_FLASH_SPANSION) += spansion.o 331c587437SMike FrysingerCOBJS-$(CONFIG_SPI_FLASH_SST) += sst.o 347b7a869aSTsiChung LiewCOBJS-$(CONFIG_SPI_FLASH_STMICRO) += stmicro.o 35d394a779SJason McMullanCOBJS-$(CONFIG_SPI_FLASH_WINBOND) += winbond.o 36e0987e25SReinhard MeyerCOBJS-$(CONFIG_SPI_FRAM_RAMTRON) += ramtron.o 373ac374c0SAlbin TonnerreCOBJS-$(CONFIG_SPI_M95XXX) += eeprom_m95xxx.o 38d25ce7d2SHaavard Skinnemoen 39d25ce7d2SHaavard SkinnemoenCOBJS := $(COBJS-y) 40d25ce7d2SHaavard SkinnemoenSRCS := $(COBJS:.o=.c) 41d25ce7d2SHaavard SkinnemoenOBJS := $(addprefix $(obj),$(COBJS)) 42d25ce7d2SHaavard Skinnemoen 43d25ce7d2SHaavard Skinnemoenall: $(LIB) 44d25ce7d2SHaavard Skinnemoen 45d25ce7d2SHaavard Skinnemoen$(LIB): $(obj).depend $(OBJS) 466d8962e8SSebastien Carlier $(call cmd_link_o_target, $(OBJS)) 47d25ce7d2SHaavard Skinnemoen 48d25ce7d2SHaavard Skinnemoen######################################################################### 49d25ce7d2SHaavard Skinnemoen 50d25ce7d2SHaavard Skinnemoen# defines $(obj).depend target 51d25ce7d2SHaavard Skinnemoeninclude $(SRCTREE)/rules.mk 52d25ce7d2SHaavard Skinnemoen 53d25ce7d2SHaavard Skinnemoensinclude $(obj).depend 54d25ce7d2SHaavard Skinnemoen 55d25ce7d2SHaavard Skinnemoen######################################################################### 56