*** empty log message ***
[yaffs/.git] / utils / Makefile
index a628641d7faf9f60e638dcf8158fcc1e70f4999e..1e0d4328d5a8de02bda5ca89f217a4f7b1440267 100644 (file)
@@ -17,6 +17,8 @@
 KERNELDIR = /usr/src/kernel-headers-2.4.18
 
 CFLAGS =   -I$(KERNELDIR)/include -I.. -O2 -Wall
+CFLAGS+=   -Wshadow -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-declarations
+CFLAGS+=   -Wmissing-prototypes -Wredundant-decls -Wnested-externs -Winline
 
 
 MKYAFFSOBJS = mkyaffs.o
@@ -38,5 +40,9 @@ $(MKYAFFSOBJS): %.o: %.c
 mkyaffs: $(MKYAFFSOBJS)
        gcc -o $@ $(MKYAFFSOBJS)
 
+nand_ecc.c:
+       ln -s ../nand_ecc.c nand_ecc.c
+
+
 clean:
        rm -f $(MKYAFFSOBJS) $(MKYAFFSIMAGEOBJS) core