]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
Use /lib/modules/$(uname -r)/build instead of /usr/src/linux as KERNEL_DIR default
authorPatrick McHardy <kaber@trash.net>
Tue, 14 Nov 2006 06:39:24 +0000 (06:39 +0000)
committerPatrick McHardy <kaber@trash.net>
Tue, 14 Nov 2006 06:39:24 +0000 (06:39 +0000)
Makefile

index a5c8d07a6a4af3e8d9caa39d19fcb346f20af0bf..cc1de3bdf6b8f7a083b8bd63b9b72136dc958ecf 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -12,7 +12,7 @@
 TOPLEVEL_INCLUDED=YES
 
 ifndef KERNEL_DIR
-KERNEL_DIR=/usr/src/linux
+KERNEL_DIR="/lib/modules/$(shell uname -r)/build"
 endif
 IPTABLES_VERSION:=1.3.6
 OLD_IPTABLES_VERSION:=1.3.5