annotate Makefile @ 210:15cda41fdfb6 pre-inbandtags-checkin

Fix list init
author charles
date Mon, 17 Mar 2008 19:46:59 +0000
parents f95fdc6123fb
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
179
e6e78e317308 Fix all Makefile headers to be the same format
colin
parents: 174
diff changeset
1 # Main Makefile for YAFFS
e6e78e317308 Fix all Makefile headers to be the same format
colin
parents: 174
diff changeset
2 #
e6e78e317308 Fix all Makefile headers to be the same format
colin
parents: 174
diff changeset
3 #
174
7d11ae6795e4 normalise licence headers and attributions
wookey
parents: 151
diff changeset
4 # YAFFS: Yet Another Flash File System. A NAND-flash specific file system.
205
f95fdc6123fb Cleanup patch - Remove all trailing whitespace and fix a few typos.
wookey
parents: 185
diff changeset
5 #
174
7d11ae6795e4 normalise licence headers and attributions
wookey
parents: 151
diff changeset
6 # Copyright (C) 2002-2007 Aleph One Ltd.
7d11ae6795e4 normalise licence headers and attributions
wookey
parents: 151
diff changeset
7 # for Toby Churchill Ltd and Brightstar Engineering
205
f95fdc6123fb Cleanup patch - Remove all trailing whitespace and fix a few typos.
wookey
parents: 185
diff changeset
8 #
174
7d11ae6795e4 normalise licence headers and attributions
wookey
parents: 151
diff changeset
9 # Created by Charles Manning <charles@aleph1.co.uk>
205
f95fdc6123fb Cleanup patch - Remove all trailing whitespace and fix a few typos.
wookey
parents: 185
diff changeset
10 #
174
7d11ae6795e4 normalise licence headers and attributions
wookey
parents: 151
diff changeset
11 # This program is free software; you can redistribute it and/or modify
7d11ae6795e4 normalise licence headers and attributions
wookey
parents: 151
diff changeset
12 # it under the terms of the GNU General Public License version 2 as
7d11ae6795e4 normalise licence headers and attributions
wookey
parents: 151
diff changeset
13 # published by the Free Software Foundation.
7d11ae6795e4 normalise licence headers and attributions
wookey
parents: 151
diff changeset
14
7d11ae6795e4 normalise licence headers and attributions
wookey
parents: 151
diff changeset
15
83
51cad800e99c Modified Makefile to allow 'out of kernel tree' module building for 2.6.x
marty
parents: 60
diff changeset
16 ifneq ($(KERNELRELEASE),)
88
126756b6912d Silly Marty, picked wrong guard for moduleconfig.h
marty
parents: 83
diff changeset
17 EXTRA_CFLAGS += -DYAFFS_OUT_OF_TREE
9
af67b6d281b8 *** empty log message ***
charles
parents:
diff changeset
18
83
51cad800e99c Modified Makefile to allow 'out of kernel tree' module building for 2.6.x
marty
parents: 60
diff changeset
19 obj-m := yaffs2.o
9
af67b6d281b8 *** empty log message ***
charles
parents:
diff changeset
20
83
51cad800e99c Modified Makefile to allow 'out of kernel tree' module building for 2.6.x
marty
parents: 60
diff changeset
21 yaffs2-objs := yaffs_mtdif.o yaffs_mtdif2.o
185
fa4e74c5013d Rolling in Ians and other changes
charles
parents: 179
diff changeset
22 yaffs2-objs += yaffs_mtdif1.o yaffs_packedtags1.o
83
51cad800e99c Modified Makefile to allow 'out of kernel tree' module building for 2.6.x
marty
parents: 60
diff changeset
23 yaffs2-objs += yaffs_ecc.o yaffs_fs.o yaffs_guts.o
151
b9ba4e46d2e5 Add missing files to make
charles
parents: 88
diff changeset
24 yaffs2-objs += yaffs_packedtags2.o yaffs_qsort.o
83
51cad800e99c Modified Makefile to allow 'out of kernel tree' module building for 2.6.x
marty
parents: 60
diff changeset
25 yaffs2-objs += yaffs_tagscompat.o yaffs_tagsvalidity.o
151
b9ba4e46d2e5 Add missing files to make
charles
parents: 88
diff changeset
26 yaffs2-objs += yaffs_checkptrw.o yaffs_nand.o
9
af67b6d281b8 *** empty log message ***
charles
parents:
diff changeset
27
83
51cad800e99c Modified Makefile to allow 'out of kernel tree' module building for 2.6.x
marty
parents: 60
diff changeset
28 else
51cad800e99c Modified Makefile to allow 'out of kernel tree' module building for 2.6.x
marty
parents: 60
diff changeset
29 KERNELDIR ?= /lib/modules/$(shell uname -r)/build
51cad800e99c Modified Makefile to allow 'out of kernel tree' module building for 2.6.x
marty
parents: 60
diff changeset
30 PWD := $(shell pwd)
9
af67b6d281b8 *** empty log message ***
charles
parents:
diff changeset
31
83
51cad800e99c Modified Makefile to allow 'out of kernel tree' module building for 2.6.x
marty
parents: 60
diff changeset
32 modules default:
51cad800e99c Modified Makefile to allow 'out of kernel tree' module building for 2.6.x
marty
parents: 60
diff changeset
33 $(MAKE) -C $(KERNELDIR) M=$(PWD) modules
9
af67b6d281b8 *** empty log message ***
charles
parents:
diff changeset
34
83
51cad800e99c Modified Makefile to allow 'out of kernel tree' module building for 2.6.x
marty
parents: 60
diff changeset
35 mi modules_install:
51cad800e99c Modified Makefile to allow 'out of kernel tree' module building for 2.6.x
marty
parents: 60
diff changeset
36 $(MAKE) -C $(KERNELDIR) M=$(PWD) modules_install
9
af67b6d281b8 *** empty log message ***
charles
parents:
diff changeset
37
af67b6d281b8 *** empty log message ***
charles
parents:
diff changeset
38 clean:
83
51cad800e99c Modified Makefile to allow 'out of kernel tree' module building for 2.6.x
marty
parents: 60
diff changeset
39 $(MAKE) -C $(KERNELDIR) M=$(PWD) clean
51cad800e99c Modified Makefile to allow 'out of kernel tree' module building for 2.6.x
marty
parents: 60
diff changeset
40 endif