From bbb3d7eb10a0d83ea3c962e105385d128199e79f Mon Sep 17 00:00:00 2001 From: Oliver Hartkopp Date: Thu, 10 Sep 2009 08:01:00 +0000 Subject: [PATCH] Introduce KERNELDIR variable to allow override when invoking make on commandline. --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c6c3857..5f32ef4 100644 --- a/Makefile +++ b/Makefile @@ -40,9 +40,11 @@ # # Send feedback to +KERNELDIR = ../kernel/2.6 + MAKEFLAGS = -k -CFLAGS = -O2 -Wall -Wno-parentheses -I../kernel/2.6/include \ +CFLAGS = -O2 -Wall -Wno-parentheses -I$(KERNELDIR)/include \ -fno-strict-aliasing \ -DPF_CAN=29 \ -DAF_CAN=PF_CAN