]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Makefile: Add CPPFLAGS handling
authorCyrill Gorcunov <gorcunov@gmail.com>
Fri, 26 Mar 2010 15:48:11 +0000 (18:48 +0300)
committerPekka Enberg <penberg@cs.helsinki.fi>
Fri, 26 Mar 2010 16:21:08 +0000 (18:21 +0200)
Some developers may need to pass specific flags
to compiler, usually due to different include/
directory and etc. So add well known CPPFLAGS
here.

Example:

$ CPPFLAGS="-I/home/include" make

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
tools/kvm/Makefile

index 0bc48915fa569fb9271b3730770c21ecf02d18e1..bd1488a4375f00d77d2e2f54f6a1ea62532c4a53 100644 (file)
@@ -5,7 +5,7 @@ OBJS    += kvm.o
 OBJS   += main.o
 OBJS   += util.o
 
-CFLAGS += -Iinclude
+CFLAGS += $(CPPFLAGS) -Iinclude
 
 WARNINGS += -Wall
 WARNINGS += -Wcast-align