Below is a little patch that should help the zaptel Makefile do a
better job finding the kernel source tree on any modern Linux box. It
will also make it easier to compile zaptel against another kernel (by
just redefining KVERSION).
Steve
--
steve@silug.org | Southern Illinois Linux Users Group
(618)398-7360 | See web site for meeting details.
Steven Pritchard | http://www.silug.org/
-#
-# Okay, the people at RedHat have to break everything they can possibly even attempt to.
-# So, we have to look in /usr/src/linux-2.4/include for header files given their brain dead
-# crappy installation. (Mind you, I'm a RedHat user myself, so I suppose I'm just as
-# stupid as they are). Everyone else who is mildly sane of course links /usr/include/linux
-# to their working kernel source directory, the way God himself does, of course
-# (assuming He's running Linux -- which we all know He must).
-#
-KINCLUDES=$(shell if [ -d /usr/src/linux-2.4/include ]; then echo /usr/src/linux-2.4/include ; else echo /usr/src/linux/include ; fi)
+KVERSION=$(shell uname -r)
+KSRCDIR=$(shell if [ -d /lib/modules/$(KVERSION)/build ]; then echo /lib/modules/$(KVERSION)/build ; else echo /usr/src/linux ; fi)
+KINCLUDES=$(KSRCDIR)/include
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum