This commit is contained in:
2019-03-07 04:27:08 -08:00
commit ef25eb0e44
2 changed files with 77 additions and 0 deletions

9
Makefile Normal file
View File

@ -0,0 +1,9 @@
obj-m := sample.o
PWD := $(shell pwd)
KERNEL_VERSION := $(shell uname -r)
KERNEL_DIR := /usr/src/linux-headers-$(KERNEL_VERSION)/
all:
make -C $(KERNEL_DIR) M=$(PWD) modules
clean:
make -C $(KERNEL_DIR) M=$(PWD) clean