Fixed makefile
authorSapan Bhatia <gwsapan@gmail.com>
Tue, 9 Apr 2013 01:47:58 +0000 (21:47 -0400)
committerSapan Bhatia <gwsapan@gmail.com>
Tue, 9 Apr 2013 01:47:58 +0000 (21:47 -0400)
Makefile

index f703516..a328711 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
+       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