rendered paste body--- aodv-uu-0.9.2/Makefile 2005-12-06 23:48:50.000000000 -0500
+++ aodv-uu-0.9.2.working/Makefile 2006-09-12 21:35:07.000000000 -0400
@@ -17,19 +17,24 @@
OBJS_NS = $(SRC_NS:%.c=%-ns.o)
OBJS_NS_CPP = $(SRC_NS_CPP:%.cc=%-ns.o)
-KERNEL=$(shell uname -r)
+# KERNEL=$(shell uname -r)
+KERNEL:=2.6.12.1
# Change to compile against different kernel (can be overridden):
-KERNEL_DIR=/lib/modules/$(KERNEL)/build
-KERNEL_INC=$(KERNEL_DIR)/include
+# KERNEL_DIR=/lib/modules/$(KERNEL)/build
+KERNEL_DIR:=/home/russell/buildroot/linux-2.6.12.1
+KERNEL_INC:=$(KERNEL_DIR)/include
# Compiler and options:
-CC=gcc
-LD=ld
+#CC=gcc
+CC:=/home/russell/buildroot/build_i586/staging_dir/bin/i586-linux-gcc
+#LD=ld
+LD:=/home/russell/buildroot/build_i586/staging_dir/bin/i586-linux-ld
ARM_CC=arm-linux-gcc
ARM_LD=arm-linux-ld
MIPS_CC=mipsel-linux-gcc
MIPS_LD=mipsel-linux-ld
-CPP=g++
+#CPP=g++
+CPP:=/home/russell/buildroot/build_i586/staging_dir/bin/i586-linux-g++
OPTS=-Wall -O3
CPP_OPTS=-Wall
@@ -119,7 +124,7 @@
# Kernel module:
kaodv:
- $(MAKE) -C $(AODVDIR)/lnx KERNEL_DIR=$(KERNEL_DIR) KCC=$(CC) XDEFS=$(XDEFS)
+ $(MAKE) -C $(AODVDIR)/lnx KERNEL_DIR=$(KERNEL_DIR) KCC=$(CC) CC=$(CC) LD=$(LD) XDEFS=$(XDEFS)
kaodv-arm:
$(MAKE) -C $(AODVDIR)/lnx kaodv-arm.o KERNEL_DIR=$(KERNEL_DIR) KCC=$(ARM_CC) LD=$(ARM_LD)
--- aodv-uu-0.9.2/lnx/Makefile 2005-12-06 23:19:02.000000000 -0500
+++ aodv-uu-0.9.2.working/lnx/Makefile 2006-09-12 21:33:16.000000000 -0400
@@ -8,15 +8,15 @@
KOBJS_ARM := $(KOBJS:%.o=%-arm.o)
KOBJS_MIPS := $(KOBJS:%.o=%-mips.o)
-KERNEL=$(shell uname -r)
-KERNEL_DIR=/lib/modules/$(KERNEL)/build
-KERNEL_INC=$(KERNEL_DIR)/include
+KERNEL?=$(shell uname -r)
+KERNEL_DIR?=/lib/modules/$(KERNEL)/build
+KERNEL_INC?=$(KERNEL_DIR)/include
THIS_DIR=$(shell pwd)
# You might want to use gcc32 for the kernel module on Fedora core 1
-KCC=gcc
-LD=ld
-XDEFS=
+KCC?=gcc
+LD?=ld
+XDEFS?=
# Some shell scripting to find out Linux kernel version
VERSION=$(shell if [ ! -d $(KERNEL_DIR) ]; then echo "No linux source found!!! Check your setup..."; exit; fi; grep ^VERSION $(KERNEL_DIR)/Makefile | cut -d' ' -f 3)