patch-2.4.0-test3 linux/fs/jffs/Makefile

Next file: linux/fs/jffs/inode-v23.c
Previous file: linux/fs/isofs/rock.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test2/linux/fs/jffs/Makefile linux/fs/jffs/Makefile
@@ -0,0 +1,33 @@
+#
+# Makefile for the linux Journalling Flash FileSystem (JFFS) routines.
+#
+# 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...
+
+ifndef CONFIG_MTD
+
+# We're being invoked outside a normal kernel build. Fake it
+EXTRA_CFLAGS= -I$(shell pwd)/../../include
+
+# You need to change this to build for 2.2, dunno how to check for it.
+#INODE_O := inode-v22.o
+INODE_O := inode-v23.o
+
+else
+
+ifeq ($(PATCHLEVEL),2)
+	INODE_O := inode-v22.o
+else
+	INODE_O := inode-v23.o
+endif
+
+endif
+
+O_TARGET := jffs.o
+M_OBJS   := $(O_TARGET)
+O_OBJS   := jffs_fm.o intrep.o $(INODE_O)
+
+include $(TOPDIR)/Rules.make

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)