diff options
Diffstat (limited to 'linux-2.4.x/fs/jffs2/Makefile')
-rw-r--r-- | linux-2.4.x/fs/jffs2/Makefile | 49 |
1 files changed, 33 insertions, 16 deletions
diff --git a/linux-2.4.x/fs/jffs2/Makefile b/linux-2.4.x/fs/jffs2/Makefile index a63c353..41f2c97 100644 --- a/linux-2.4.x/fs/jffs2/Makefile +++ b/linux-2.4.x/fs/jffs2/Makefile @@ -1,25 +1,42 @@ # -# Makefile for the linux Journalling Flash FileSystem (JFFS) routines. +# fs/jffs2/Makefile.24 # -# $Id: Makefile,v 1.25.2.1 2002/10/11 09:04:44 dwmw2 Exp $ -# -# Note! Dependencies are done automagically by 'make dep', which also -# removes any old dependencies. DON'T put your own dependencies here -# unless it's something special (ie not a .c file). -# -# Note 2! The CFLAGS definitions are now in the main makefile... +# $Id: Makefile,v 1.43 2003/10/06 12:54:49 dwmw2 Exp $ +ifdef OUT_OF_TREE_BUILD +include $(mtd)/defconfig -COMPR_OBJS := compr.o compr_rubin.o compr_rtime.o pushpull.o \ - compr_zlib.o -JFFS2_OBJS := crc32.o dir.o file.o ioctl.o nodelist.o malloc.o \ - read.o nodemgmt.o readinode.o super.o write.o scan.o gc.o \ - symlink.o build.o erase.o background.o +# This must be first in the include path, so it goes in $(CC) rather +# then $(EXTRA_CFLAGS) -O_TARGET := jffs2.o +CC += -I$(mtd)/../../include +EXTRA_CFLAGS := -g -Werror + +ifndef CONFIG_MTD +EXTRA_CFLAGS += -DMTD_OUT_OF_TREE +endif + +ifdef NONAND +EXTRA_CFLAGS += -DNONAND +endif +endif + +obj-$(CONFIG_JFFS2_FS) += jffs2.o -obj-y := $(COMPR_OBJS) $(JFFS2_OBJS) -obj-m := $(O_TARGET) +JFFS2_OBJS := compr.o dir.o file.o ioctl.o nodelist.o malloc.o +JFFS2_OBJS += read.o nodemgmt.o readinode.o write.o scan.o gc.o +JFFS2_OBJS += symlink-v24.o build.o erase.o background.o fs.o writev.o + +LINUX_OBJS += super-v24.o crc32.o rbtree.o + +WBUF_OBJS-$(CONFIG_JFFS2_FS_WRITEBUFFER) += wbuf.o + +COMPR_OBJS-$(CONFIG_JFFS2_RUBIN) += compr_rubin.o +COMPR_OBJS-$(CONFIG_JFFS2_RTIME) += compr_rtime.o +COMPR_OBJS-$(CONFIG_JFFS2_ZLIB) += compr_zlib.o + +obj-y := $(COMPR_OBJS-y) $(JFFS2_OBJS) $(LINUX_OBJS) $(WBUF_OBJS-y) +O_TARGET := jffs2.o include $(TOPDIR)/Rules.make |