Patch from Thomas Dreibholtz for compatibility with kernel 3.10
[procprotect.git] / Makefile
index f703516..04471df 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
 obj-m += procprotect.o
 
-all:
-       make -C /lib/modules/3.8.1-201.fc18.x86_64/build M=$(PWD) modules
+all: 
+       make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
 
 clean:
-       make -C /lib/modules/3.8.1-201.fc18.x86_64/build M=$(PWD) clean
+       make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean