#
# Makefile for Atheros AR531X watchdog.
#
# Note! Dependencies are done automagically by 'make dep', which also
# removes any old dependencies. DON'T put your own dependencies here
# unless it's something special (ie not a .c file).
#
# Note 2! The CFLAGS definitions are now in the main makefile...
export MODULEPATH_EXTENDIO=$(FS_PATH)/lib/modules/2.6.15/io

obj= 

obj-m			 += keypad.o


INCS += -I.

EXTRA_CFLAGS+=$(INCS) ${COPTS}
#EXTRA_CFLAGS+=-DUPGRADE_GRAPH

STRIP=	${TOOLPREFIX}strip


all:
	$(MAKE)	-C ${KERNELPATH} SUBDIRS=$(shell pwd) modules
	test -d $(MODULEPATH_EXTENDIO) || mkdir -p $(MODULEPATH_EXTENDIO)

install: all
	$(STRIP) -S keypad.o
	cp keypad.ko ${MODULEPATH_EXTENDIO}/
clean:
	-rm -f *~ *.o *.ko *.mod.c
	-rm -f .version .*.o.flags .*.o.d .*.o.cmd .*.ko.cmd 
	-rm -rf .tmp_versions
