- KERNELPATH ?= /usr/src/`uname -r`/build
-
- # Guess the gcc include directory
- # The gcc version is in the last line returned by gcc -v
- # gcc version 4.3.2 (Debian 4.3.2-1.1)
- MYGCC_VER ?= $(shell gcc -v 2>&1 |tail -n 1 | cut -d " " -f 3)
- # We don't know the exact directory unde /usr/lib/gcc so we guess
+ KERNELPATH ?= /usr/src/`uname -r`
+
+ # We need to figure out the gcc include directory, if not
+ # set by the user through MYGCC_INCLUDE
+ # Find compiler version (3rd field in last line returned by gcc -v)
+ # e.g. gcc version 4.3.2 (Debian 4.3.2-1.1)
+ MYGCC_VER ?= $(shell $(CC) -v 2>&1 |tail -n 1 | cut -d " " -f 3)
+ # We don't know the exact directory under /usr/lib/gcc so we guess