*** empty log message ***
[yaffs/.git] / linux-module / Makefile
similarity index 92%
rename from Makefile
rename to linux-module/Makefile
index 9b084cbde6b8aebe312c7507f3632d6f228361fe..dc10880bd0de480d125893757124f9be1a089a76 100644 (file)
--- a/Makefile
@@ -1,4 +1,4 @@
-#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.
 
@@ -114,7 +120,10 @@ CFLAGS = -D__KERNEL__ -DMODULE  $(YAFFS_CONFIGS)  -I $(KERNELDIR)/include -O2 -W
 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 $@