Fix Makefile

This commit is contained in:
2019-03-05 16:26:13 +08:00
parent f92737e3fa
commit 18207bb396

View File

@ -1,4 +1,8 @@
obj-m+=kernel-list.o
.PHONY: all clean
obj-m := simple.o
KERNEL_VERSION := $(shell uname -r)
KERNEL_DIR := /usr/src/linux-headers-$(KERNEL_VERSION)/
PWD := $(shell pwd)
all:
make -C /lib/modules/$(shell uname -r)/build/ M=$(PWD) modules
clean: