-#Makefile for YAFFS as a module
+
#
# NB this is not yet suitable for putting into the kernel tree.
# YAFFS: Yet another FFS. A NAND-flash specific file system.
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
#
-# $Id: Makefile,v 1.13 2004-10-20 20:12:43 charles Exp $
+# $Id: Makefile,v 1.1 2004-12-23 03:15:57 charles Exp $
#
+#Makefile for manually hacking YAFFS as a module.
+
+
+SYMLINKS = yaffs_fs.c yaffs_guts.c yaffs_guts.h yaffs_ecc.c yaffs_ecc.h yaffs_mtdif.c yaffs_mtdif.h yaffs_ramem.c yaffs_nandemul.h yportenv.h yaffsinterface.h devextras.h
+
+
## Change or override KERNELDIR to your kernel
## comment out USE_xxxx if you don't want these features.
OBJS = yaffs_fs.o yaffs_guts.o yaffs_ramem.o yaffs_mtdif.o yaffs_ecc.o
-all: yaffs.o
+all: $(SYMLINKS) yaffs.o
+
+$(SYMLINKS):
+ ln -s ../$@ $@
$(OBJS): %.o: %.c Makefile
$(CC) -c $(CFLAGS) $< -o $@