Initial revision
[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 -O2 -Wall
20
21
22 OBJS = mkyaffs.o
23
24
25 all: mkyaffs
26
27 $(OBJS): %.o: %.c
28         gcc -c $(CFLAGS) $< -o $@
29
30 mkyaffs: $(OBJS)
31         gcc -o $@ $(OBJS)
32
33 clean:
34         rm -f $(OBJS) core