]> rtime.felk.cvut.cz Git - sojka/can-utils.git/commitdiff
Introduce KERNELDIR variable to allow override when invoking make on commandline.
authorOliver Hartkopp <socketcan@hartkopp.net>
Thu, 10 Sep 2009 08:01:00 +0000 (08:01 +0000)
committerOliver Hartkopp <socketcan@hartkopp.net>
Thu, 10 Sep 2009 08:01:00 +0000 (08:01 +0000)
Makefile

index c6c3857ebe0e50827dd953d3266f5157db504512..5f32ef4824e5e383d18745075c75aba78b3dfdf3 100644 (file)
--- a/Makefile
+++ b/Makefile
 #
 #  Send feedback to <socketcan-users@lists.berlios.de>
 
+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