2006-09-01 19:49:50 +02:00
|
|
|
#
|
2007-11-24 21:26:56 +01:00
|
|
|
# (C) Copyright 2000-2007
|
2006-09-01 19:49:50 +02:00
|
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
#
|
|
|
|
# See file CREDITS for list of people who contributed to this
|
|
|
|
# project.
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU General Public License as
|
|
|
|
# published by the Free Software Foundation; either version 2 of
|
|
|
|
# the License, or (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software
|
|
|
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
|
|
|
# MA 02111-1307 USA
|
|
|
|
#
|
|
|
|
|
2006-03-05 18:57:33 +01:00
|
|
|
include $(TOPDIR)/config.mk
|
|
|
|
|
2010-11-05 15:48:07 +01:00
|
|
|
LIB := $(obj)libmtd.o
|
2006-09-01 19:49:50 +02:00
|
|
|
|
2009-05-12 14:31:18 +02:00
|
|
|
COBJS-$(CONFIG_MTD_DEVICE) += mtdcore.o
|
|
|
|
COBJS-$(CONFIG_MTD_PARTITIONS) += mtdpart.o
|
2009-05-12 14:29:39 +02:00
|
|
|
COBJS-$(CONFIG_MTD_CONCAT) += mtdconcat.o
|
2008-08-13 01:40:42 +02:00
|
|
|
COBJS-$(CONFIG_HAS_DATAFLASH) += at45.o
|
|
|
|
COBJS-$(CONFIG_FLASH_CFI_DRIVER) += cfi_flash.o
|
2008-11-17 15:57:58 +01:00
|
|
|
COBJS-$(CONFIG_FLASH_CFI_MTD) += cfi_mtd.o
|
2008-04-01 07:30:51 +02:00
|
|
|
COBJS-$(CONFIG_HAS_DATAFLASH) += dataflash.o
|
2011-04-15 21:37:11 +00:00
|
|
|
COBJS-$(CONFIG_FTSMC020) += ftsmc020.o
|
2007-12-07 23:35:02 +01:00
|
|
|
COBJS-$(CONFIG_FLASH_CFI_LEGACY) += jedec_flash.o
|
2008-08-13 01:40:42 +02:00
|
|
|
COBJS-$(CONFIG_MW_EEPROM) += mw_eeprom.o
|
2010-01-15 19:15:45 +05:30
|
|
|
COBJS-$(CONFIG_SPEARSMI) += spr_smi.o
|
2006-09-01 19:49:50 +02:00
|
|
|
|
2007-11-24 21:26:56 +01:00
|
|
|
COBJS := $(COBJS-y)
|
2008-04-01 07:30:51 +02:00
|
|
|
SRCS := $(COBJS:.o=.c)
|
|
|
|
OBJS := $(addprefix $(obj),$(COBJS))
|
2006-03-05 18:57:33 +01:00
|
|
|
|
|
|
|
all: $(LIB)
|
|
|
|
|
2006-09-01 19:49:50 +02:00
|
|
|
$(LIB): $(obj).depend $(OBJS)
|
2010-11-05 15:48:07 +01:00
|
|
|
$(call cmd_link_o_target, $(OBJS))
|
2006-03-05 18:57:33 +01:00
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
|
2006-09-01 19:49:50 +02:00
|
|
|
# defines $(obj).depend target
|
|
|
|
include $(SRCTREE)/rules.mk
|
2006-03-05 18:57:33 +01:00
|
|
|
|
2006-09-01 19:49:50 +02:00
|
|
|
sinclude $(obj).depend
|
|
|
|
|
|
|
|
#########################################################################
|