From cbf6b8e54b526ef9c104bd9e3d9ae2e6fe3829c8 Mon Sep 17 00:00:00 2001 From: Fergus Noble Date: Fri, 9 Sep 2011 10:20:23 -0700 Subject: Update examples Makefiles to use the make shell function rather than backticks for shell command expansion. Backticks are unreliable and don't work on all platforms. --- examples/lm3s/Makefile.include | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/lm3s/Makefile.include') diff --git a/examples/lm3s/Makefile.include b/examples/lm3s/Makefile.include index 2424832..0eafe7d 100644 --- a/examples/lm3s/Makefile.include +++ b/examples/lm3s/Makefile.include @@ -25,7 +25,7 @@ LD = $(PREFIX)-gcc OBJCOPY = $(PREFIX)-objcopy OBJDUMP = $(PREFIX)-objdump # Uncomment this line if you want to use the installed (not local) library. -# TOOLCHAIN_DIR = `dirname \`which $(CC)\``/../$(PREFIX) +# TOOLCHAIN_DIR := $(shell dirname `which $(CC)`)/../$(PREFIX) TOOLCHAIN_DIR = ../../../.. CFLAGS += -O0 -g3 -Wall -Wextra -I$(TOOLCHAIN_DIR)/include -fno-common \ -mcpu=cortex-m3 -mthumb -MD -- cgit v1.2.3