From: Oliver Hartkopp Date: Thu, 10 Sep 2009 08:01:00 +0000 (+0000) Subject: Introduce KERNELDIR variable to allow override when invoking make on commandline. X-Git-Url: https://rtime.felk.cvut.cz/gitweb/sojka/can-utils.git/commitdiff_plain/bbb3d7eb10a0d83ea3c962e105385d128199e79f?ds=sidebyside Introduce KERNELDIR variable to allow override when invoking make on commandline. --- 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