diff --git a/Makefile b/Makefile index 922edc6..8cc0db6 100644 --- a/Makefile +++ b/Makefile @@ -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: