Mercurial > yaffs-ecoscentric
annotate Makefile @ 210:15cda41fdfb6 pre-inbandtags-checkin
Fix list init
| author | charles |
|---|---|
| date | Mon, 17 Mar 2008 19:46:59 +0000 |
| parents | f95fdc6123fb |
| children |
| rev | line source |
|---|---|
| 179 | 1 # Main Makefile for YAFFS |
| 2 # | |
| 3 # | |
| 174 | 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 | 6 # Copyright (C) 2002-2007 Aleph One Ltd. |
| 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 | 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 | 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 | |
|
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 | 17 EXTRA_CFLAGS += -DYAFFS_OUT_OF_TREE |
| 9 | 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 | 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 | 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 | 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 | 26 yaffs2-objs += yaffs_checkptrw.o yaffs_nand.o |
| 9 | 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 | 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 | 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 | 37 |
| 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 |
