2006-09-01 17:49:50 +00:00
|
|
|
#
|
2007-11-24 20:26:56 +00:00
|
|
|
# (C) Copyright 2000-2007
|
2006-09-01 17:49:50 +00: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 17:57:33 +00:00
|
|
|
include $(TOPDIR)/config.mk
|
|
|
|
|
2008-04-01 05:30:51 +00:00
|
|
|
LIB := $(obj)libmtd.a
|
2006-09-01 17:49:50 +00:00
|
|
|
|
2009-05-12 12:31:18 +00:00
|
|
|
COBJS-$(CONFIG_MTD_DEVICE) += mtdcore.o
|
|
|
|
COBJS-$(CONFIG_MTD_PARTITIONS) += mtdpart.o
|
2009-05-12 12:29:39 +00:00
|
|
|
COBJS-$(CONFIG_MTD_CONCAT) += mtdconcat.o
|
2008-08-12 23:40:42 +00:00
|
|
|
COBJS-$(CONFIG_HAS_DATAFLASH) += at45.o
|
|
|
|
COBJS-$(CONFIG_FLASH_CFI_DRIVER) += cfi_flash.o
|
2008-11-17 14:57:58 +00:00
|
|
|
COBJS-$(CONFIG_FLASH_CFI_MTD) += cfi_mtd.o
|
2008-04-01 05:30:51 +00:00
|
|
|
COBJS-$(CONFIG_HAS_DATAFLASH) += dataflash.o
|
2007-12-07 22:35:02 +00:00
|
|
|
COBJS-$(CONFIG_FLASH_CFI_LEGACY) += jedec_flash.o
|
2008-08-12 23:40:42 +00:00
|
|
|
COBJS-$(CONFIG_MW_EEPROM) += mw_eeprom.o
|
2006-09-01 17:49:50 +00:00
|
|
|
|
2007-11-24 20:26:56 +00:00
|
|
|
COBJS := $(COBJS-y)
|
2008-04-01 05:30:51 +00:00
|
|
|
SRCS := $(COBJS:.o=.c)
|
|
|
|
OBJS := $(addprefix $(obj),$(COBJS))
|
2006-03-05 17:57:33 +00:00
|
|
|
|
|
|
|
all: $(LIB)
|
|
|
|
|
2006-09-01 17:49:50 +00:00
|
|
|
$(LIB): $(obj).depend $(OBJS)
|
2006-10-08 23:02:05 +00:00
|
|
|
$(AR) $(ARFLAGS) $@ $(OBJS)
|
2006-03-05 17:57:33 +00:00
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
|
2006-09-01 17:49:50 +00:00
|
|
|
# defines $(obj).depend target
|
|
|
|
include $(SRCTREE)/rules.mk
|
2006-03-05 17:57:33 +00:00
|
|
|
|
2006-09-01 17:49:50 +00:00
|
|
|
sinclude $(obj).depend
|
|
|
|
|
|
|
|
#########################################################################
|