--- Makefile.orig	2007-05-26 18:03:18.000000000 -0400
+++ Makefile	2007-05-26 17:03:54.000000000 -0400
@@ -6,6 +6,8 @@
 DISTNAME=omfs-$(VERSION)
 DISTFILES=*.[ch] Makefile README COPYING ChangeLog
 
+KVERS ?= $(shell uname -r)
+
 ifneq ($(KERNELRELEASE),)
 
 	obj-m := omfs.o
@@ -13,7 +15,7 @@
 
 else
 
-	KERNELDIR ?= /lib/modules/$(shell uname -r)/build
+	KERNELDIR ?= /lib/modules/$(KVERS)/build
 	PWD	:= $(shell pwd)
 
 default: modules
