# $Id: GNUmakefile,v 1.1.1.1 2004/01/05 03:09:22 lance Exp $

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

ifndef VERSION

# Someone just typed 'make'. Invoke the kernel makefiles properly...

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`

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
