removed - more testing
[yaffs/.git] / Makefile
1 #Makefile for YAFFS as a module
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 ## comment out USE_xxxx if you don't want these features.
17
18 KERNELDIR = /usr/src/kernel-headers-2.4.18
19 USE_RAM_FOR_TEST = -DYAFFS_RAM_ENABLED
20 USE_MTD = -DYAFFS_MTD_ENABLED
21
22
23 CFLAGS = -D__KERNEL__ -DMODULE $(USE_RAM_FOR_TEST) $(USE_MTD)  -I$(KERNELDIR)/include -O2 -Wall
24
25
26 OBJS = yaffs_fs.o yaffs_guts.o yaffs_ramem.o yaffs_mtdif.o
27
28
29 all: yaffs.o
30
31 $(OBJS): %.o: %.c
32         gcc -c $(CFLAGS) $< -o $@
33
34 yaffs.o: $(OBJS)
35         ld -r $(OBJS) -o $@
36
37 clean:
38         rm -f $(OBJS) core