Makefile: pass CPPFLAGS through to fllow customization
Without this patch there is no straight forward way to pass additional CPPFLAGS at configure-time. At TWW, everything non-vendor package is installed to its own subdirectory, so we need the following to show the preprocessor where the headers for the libraries we will link later can be found: $SHELL ./configure \ CPPFLAGS="-I${SB_VAR_CURL_INC}\ -I${SB_VAR_LIBEXPAT_INC}\ -I${SB_VAR_LIBZ_INC}\ ${CPPFLAGS+ $CPPFLAGS}" <<...>> Signed-off-by: Gary V. Vaughan <gary@thewrittenword.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Gary V. Vaughan committed
May 14, 2010 at 09:31 UTC
ebef82776512f56eec4b6ac98b076369eb5a93fa
2 files changed
+2
-1
Makefile
+1
-1
@@ -246,7 +246,7 @@ endif
246
247
CFLAGS = -g -O2 -Wall
248
LDFLAGS =
249
-ALL_CFLAGS = $(CFLAGS)
249
+ALL_CFLAGS = $(CPPFLAGS) $(CFLAGS)
250
ALL_LDFLAGS = $(LDFLAGS)
251
STRIP ?= strip
252
config.mak.in
+1
@@ -3,6 +3,7 @@
3
4
CC = @CC@
5
CFLAGS = @CFLAGS@
6
+CPPFLAGS = @CPPFLAGS@
7
LDFLAGS = @LDFLAGS@
8
CC_LD_DYNPATH = @CC_LD_DYNPATH@
9
AR = @AR@