File: GNUmakefile

package info (click to toggle)
mtd 20050122-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 6,244 kB
  • ctags: 9,869
  • sloc: ansic: 97,013; asm: 1,055; sh: 558; makefile: 356; cpp: 68
file content (38 lines) | stat: -rw-r--r-- 858 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# JFFS2 Id: GNUmakefile,v 1.9 2003/10/02 16:30:46 dwmw2  Exp
# $Id: GNUmakefile,v 3.1 2004/12/09 16:05:02 dwmw2 Exp $

LINUXDIR=/lib/modules/$(shell uname -r)/build

ifndef VERSION

# Someone just typed 'make'. Invoke the kernel makefiles properly...
OUT_OF_TREE_BUILD=1
export OUT_OF_TREE_BUILD

modules:
	make -C $(LINUXDIR) SUBDIRS=`pwd` mtd=`pwd` modules

nonand:
	make -C $(LINUXDIR) SUBDIRS=`pwd` mtd=`pwd` NONAND=1 modules

dep:
	make -C $(LINUXDIR) SUBDIRS=`pwd` mtd=`pwd` dep

clean:
	rm -f `find . -name \*.ko` `find . -name \*.o`

veryclean:
	for a in `find . -type f  -a \! -path \*/CVS/\*` ; do  \
		grep -q ^/`basename $$a`/ `dirname $$a`/CVS/Entries ||  \
			rm -v $$a ; \
	done

else

# 2.5 explicitly states <subdir>/Makefile rather than using recursive make,
# so we handle all that in there...

obj := $(shell pwd)
include Makefile

endif