xref: /openbmc/u-boot/drivers/mtd/spi/Makefile (revision 6d8962e8)
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
26*6d8962e8SSebastien CarlierLIB	:= $(obj)libspi_flash.o
27d25ce7d2SHaavard Skinnemoen
28d25ce7d2SHaavard SkinnemoenCOBJS-$(CONFIG_SPI_FLASH)	+= spi_flash.o
29d25ce7d2SHaavard SkinnemoenCOBJS-$(CONFIG_SPI_FLASH_ATMEL)	+= atmel.o
307ce6031aSPrafulla 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
34d394a779SJason McMullanCOBJS-$(CONFIG_SPI_FLASH_WINBOND)	+= winbond.o
35e0987e25SReinhard MeyerCOBJS-$(CONFIG_SPI_FRAM_RAMTRON)	+= ramtron.o
363ac374c0SAlbin TonnerreCOBJS-$(CONFIG_SPI_M95XXX) += eeprom_m95xxx.o
37d25ce7d2SHaavard Skinnemoen
38d25ce7d2SHaavard SkinnemoenCOBJS	:= $(COBJS-y)
39d25ce7d2SHaavard SkinnemoenSRCS	:= $(COBJS:.o=.c)
40d25ce7d2SHaavard SkinnemoenOBJS	:= $(addprefix $(obj),$(COBJS))
41d25ce7d2SHaavard Skinnemoen
42d25ce7d2SHaavard Skinnemoenall:	$(LIB)
43d25ce7d2SHaavard Skinnemoen
44d25ce7d2SHaavard Skinnemoen$(LIB): $(obj).depend $(OBJS)
45*6d8962e8SSebastien Carlier	$(call cmd_link_o_target, $(OBJS))
46d25ce7d2SHaavard Skinnemoen
47d25ce7d2SHaavard Skinnemoen#########################################################################
48d25ce7d2SHaavard Skinnemoen
49d25ce7d2SHaavard Skinnemoen# defines $(obj).depend target
50d25ce7d2SHaavard Skinnemoeninclude $(SRCTREE)/rules.mk
51d25ce7d2SHaavard Skinnemoen
52d25ce7d2SHaavard Skinnemoensinclude $(obj).depend
53d25ce7d2SHaavard Skinnemoen
54d25ce7d2SHaavard Skinnemoen#########################################################################
55