diff options
author | Darren Hart <dvhart@linux.intel.com> | 2011-01-06 12:08:53 -0500 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2011-01-06 21:56:46 -0500 |
commit | 6c696cec3f264a9399241b6e648f58bc97117d49 (patch) | |
tree | dadcc6e0e0b475a56bb0192f981a83fc3053f0a6 /Makefile | |
parent | 905aba94809d5689bd3aa06a70939db14bc6835a (diff) |
trace-cmd: Use conditional assignment of CC and AR
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@linux.intel.com>
LKML-Reference: <1294333733-7746-1-git-send-email-darren@dvhart.com>
CC: Tim Bird <tim.bird@am.sony.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -13,8 +13,8 @@ FILE_VERSION = 6 | |||
13 | 13 | ||
14 | MAKEFLAGS += --no-print-directory | 14 | MAKEFLAGS += --no-print-directory |
15 | 15 | ||
16 | CC = $(CROSS_COMPILE)gcc | 16 | CC ?= $(CROSS_COMPILE)gcc |
17 | AR = $(CROSS_COMPILE)ar | 17 | AR ?= $(CROSS_COMPILE)ar |
18 | EXT = -std=gnu99 | 18 | EXT = -std=gnu99 |
19 | INSTALL = install | 19 | INSTALL = install |
20 | 20 | ||