xref: /openbmc/u-boot/drivers/mtd/spi/Makefile (revision 3ac374c0)
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
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
34*3ac374c0SAlbin TonnerreCOBJS-$(CONFIG_SPI_M95XXX) += eeprom_m95xxx.o
35d25ce7d2SHaavard Skinnemoen
36d25ce7d2SHaavard SkinnemoenCOBJS	:= $(COBJS-y)
37d25ce7d2SHaavard SkinnemoenSRCS	:= $(COBJS:.o=.c)
38d25ce7d2SHaavard SkinnemoenOBJS	:= $(addprefix $(obj),$(COBJS))
39d25ce7d2SHaavard Skinnemoen
40d25ce7d2SHaavard Skinnemoenall:	$(LIB)
41d25ce7d2SHaavard Skinnemoen
42d25ce7d2SHaavard Skinnemoen$(LIB): $(obj).depend $(OBJS)
43d25ce7d2SHaavard Skinnemoen	$(AR) $(ARFLAGS) $@ $(OBJS)
44d25ce7d2SHaavard Skinnemoen
45d25ce7d2SHaavard Skinnemoen#########################################################################
46d25ce7d2SHaavard Skinnemoen
47d25ce7d2SHaavard Skinnemoen# defines $(obj).depend target
48d25ce7d2SHaavard Skinnemoeninclude $(SRCTREE)/rules.mk
49d25ce7d2SHaavard Skinnemoen
50d25ce7d2SHaavard Skinnemoensinclude $(obj).depend
51d25ce7d2SHaavard Skinnemoen
52d25ce7d2SHaavard Skinnemoen#########################################################################
53