[[PATCH] trace-cmd: ] Use conditional assignment of CC and AR

From: Darren Hart
Date: Thu Jan 06 2011 - 12:09:56 EST


From: Darren Hart <dvhart@xxxxxxxxxxxxxxx>

Allow the user to specify CC and AR via the environment by only
setting them in the Makefile if they don't already exist. This is
useful for external build systems for example.

Signed-off-by: Darren Hart <dvhart@xxxxxxxxxxxxxxx>
CC: Tim Bird <tim.bird@xxxxxxxxxxx>
---
Makefile | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 74f2c44..52d422c 100644
--- a/Makefile
+++ b/Makefile
@@ -13,8 +13,8 @@ FILE_VERSION = 6

MAKEFLAGS += --no-print-directory

-CC = $(CROSS_COMPILE)gcc
-AR = $(CROSS_COMPILE)ar
+CC ?= $(CROSS_COMPILE)gcc
+AR ?= $(CROSS_COMPILE)ar
EXT = -std=gnu99
INSTALL = install

--
1.7.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/