All pastes #1702 Raw Edit

Anonymous

public text v1 · immutable
#1702 ·published 2004-10-24 20:34 UTC
rendered paste body
--- asterisk-20041014/zaptel/Makefile.orig      2004-10-14 10:24:35.497280408 -0400
+++ asterisk-20041014/zaptel/Makefile   2004-10-14 11:02:09.561772322 -0400
@@ -65,6 +65,7 @@
 PRIMARY=torisa
 #PRIMARY=wcfxo
 PWD=$(shell pwd)
+KVER   := $(shell uname -r)

 all: $(BUILDVER)

@@ -72,8 +73,8 @@

 linux26:
 linux26: prereq $(BINS)
-       @if ! [ -d /usr/src/linux-2.6 ]; then echo "Link /usr/src/linux-2.6 to
your kernel sources first!"; exit 1 ; fi
-       make -C /usr/src/linux-2.6 SUBDIRS=$(PWD) modules
+       @if ! [ -d /lib/modules/$(KVER)/build ]; then echo "Make sure that you
have your kernel build environment at /lib/modules/$(KVER)/build"; exit 1 ; fi
+       make -C /lib/modules/$(KVER)/build SUBDIRS=$(PWD) modules

 obj-m := $(MODULESO) ztdummy.o