1 # If KERNELRELEASE is defined, we've been invoked from the
2 # kernel build system and can use its language
3 ifneq ($(KERNELRELEASE
),)
6 # Otherwise we were called directly from the command-line;
7 # invoke the kernel buid system
10 KERNELDIR ?
= /lib
/modules
/$(shell uname
-r
)/build
15 $(MAKE
) -C
$(KERNELDIR
) M
=$(PWD
) modules
20 rm -f
*.ko
*.o
*.mod.c
*~ .
*.cmd