File: Makefile

package info (click to toggle)
mtd 20011217-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 3,492 kB
  • ctags: 5,061
  • sloc: ansic: 47,418; asm: 706; sh: 693; makefile: 319; cpp: 68
file content (33 lines) | stat: -rw-r--r-- 648 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
# $Id: Makefile,v 1.13 2001/01/26 16:00:50 nico Exp $
#

TARGETS = jffs kernel
#TARGETS = ffs2 kernel
SUBDIRS = util # boot
LINUXDIR = /usr/src/linux
all:	
	make -C $(LINUXDIR) SUBDIRS=$(shell pwd)/kernel modules
	for a in $(SUBDIRS); do \
		make -C $$a; \
	done

jffs:
	make -C $(LINUXDIR) SUBDIRS=$(shell pwd)/fs/jffs modules

jffs2:
	make -C $(LINUXDIR) SUBDIRS=$(shell pwd)/fs/jffs2 modules

ffs2:
	make -C $(LINUXDIR) SUBDIRS=$(shell pwd)/fs/ffs2 modules

util:
	make -C util

boot:
	make -C boot

clean:
	find kernel/ -name '*.[oa]' -type f | xargs rm -f
	find fs/ -name '*.[oa]' -type f | xargs rm -f
	make -C util clean
	make -C boot clean