Widen page count field in blockinfo to allow lots of pages per block
[yaffs/.git] / utils / Makefile
1 #Makefile for mkyaffs
2 #
3 # NB this is not yet suitable for putting into the kernel tree.
4 # YAFFS: Yet another FFS. A NAND-flash specific file system. 
5 #
6 # Copyright (C) 2002 Aleph One Ltd.
7 #   for Toby Churchill Ltd and Brightstar Engineering
8 #
9 # Created by Charles Manning <charles@aleph1.co.uk>
10 #
11 # This program is free software; you can redistribute it and/or modify
12 # it under the terms of the GNU General Public License version 2 as
13 # published by the Free Software Foundation.
14
15 ## Change or override  KERNELDIR to your kernel
16
17 KERNELDIR = /usr/src/kernel-headers-2.4.18
18
19 CFLAGS =   -I$(KERNELDIR)/include -I.. -O2 -Wall -DCONFIG_YAFFS_UTIL
20 CFLAGS+=   -Wshadow -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-declarations
21 CFLAGS+=   -Wmissing-prototypes -Wredundant-decls -Wnested-externs -Winline
22
23 ## Change if you are using a cross-compiler
24 MAKETOOLS = 
25
26 CC=$(MAKETOOLS)gcc
27
28 MKYAFFSOBJS = mkyaffs.o
29
30 MKYAFFSIMAGEOBJS = mkyaffsimage.o nand_ecc.o
31
32
33 all: mkyaffs mkyaffsimage
34
35 $(MKYAFFSIMAGEOBJS): %.o: %.c
36         $(CC) -c $(CFLAGS) $< -o $@
37
38 mkyaffsimage: $(MKYAFFSIMAGEOBJS)
39         $(CC) -o $@ $(MKYAFFSIMAGEOBJS)
40
41 $(MKYAFFSOBJS): %.o: %.c
42         $(CC) -c $(CFLAGS) $< -o $@
43
44 mkyaffs: $(MKYAFFSOBJS)
45         $(CC) -o $@ $(MKYAFFSOBJS)
46
47 nand_ecc.c:
48         ln -s ../nand_ecc.c nand_ecc.c
49
50
51 clean:
52         rm -f $(MKYAFFSOBJS) $(MKYAFFSIMAGEOBJS) core