| 1 | # If KERNELRELEASE is defined, we've been invoked from the |
| 2 | # kernel build system and can use its language |
| 3 | ifneq ($(KERNELRELEASE),) |
| 4 | obj-m := backfire.o |
| 5 | |
| 6 | # otherwise we were called directly from the command |
| 7 | # line; invoke the kernel build system. |
| 8 | else |
| 9 | KERNELDIR ?= /lib/modules/$(shell uname -r)/build |
| 10 | |
| 11 | modules modules_install clean:: |
| 12 | make -C $(KERNELDIR) M=$(CURDIR) $@ |
| 13 | |
| 14 | clean:: |
| 15 | rm -f *.o Module.markers modules.order |
| 16 | |
| 17 | endif |