# Makefile for kernel 2.6 modules.
# You must be root as the kernel makefile system
# needs write access to the kernel 2.6 src tree.

ifneq ($(KERNELRELEASE),)
obj-m := chrdev.o
else
LINUXVER = $(shell uname -r)
CWD      = $(shell pwd)
all:
	make -C /usr/src/linux-$(LINUXVER) SUBDIRS=$(CWD) modules
clean realclean:
	rm -f *.o core*
	rm -f *.ko *.cmd *. .*.ko .*.cmd *.mod.c
endif
