[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1294333733-7746-1-git-send-email-darren@dvhart.com>
Date: Thu, 6 Jan 2011 09:08:53 -0800
From: Darren Hart <darren@...art.com>
To: Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Cc: Steven Rostedt <rostedt@...dmis.org>,
Darren Hart <dvhart@...ux.intel.com>,
Tim Bird <tim.bird@...sony.com>
Subject: [[PATCH] trace-cmd: ] Use conditional assignment of CC and AR
From: Darren Hart <dvhart@...ux.intel.com>
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@...ux.intel.com>
CC: Tim Bird <tim.bird@...sony.com>
---
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists