aboutsummaryrefslogtreecommitdiffstats
path: root/boards/base/Olimex-SAM7EX256-GE8/example/Makefile
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2013-11-09 14:23:13 +1000
committerinmarket <andrewh@inmarket.com.au>2013-11-09 14:23:13 +1000
commitd00b5438310e23f0f2115ee660d066a1bfc1b23c (patch)
tree3fe4d9a2400749ebee36d5f653a95fc18915e075 /boards/base/Olimex-SAM7EX256-GE8/example/Makefile
parent5d2d6e79621a40d1a4ec4047e5c5ff8b9c7d1657 (diff)
downloaduGFX-d00b5438310e23f0f2115ee660d066a1bfc1b23c.tar.gz
uGFX-d00b5438310e23f0f2115ee660d066a1bfc1b23c.tar.bz2
uGFX-d00b5438310e23f0f2115ee660d066a1bfc1b23c.zip
Updated Makefile and new openocd config file for the Olimex SAM7EX256 board.
Makefiles modifications required for updated gcc v4.7.2
Diffstat (limited to 'boards/base/Olimex-SAM7EX256-GE8/example/Makefile')
-rw-r--r--boards/base/Olimex-SAM7EX256-GE8/example/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/boards/base/Olimex-SAM7EX256-GE8/example/Makefile b/boards/base/Olimex-SAM7EX256-GE8/example/Makefile
index cff4e7ad..d6161d5e 100644
--- a/boards/base/Olimex-SAM7EX256-GE8/example/Makefile
+++ b/boards/base/Olimex-SAM7EX256-GE8/example/Makefile
@@ -5,8 +5,9 @@
# Compiler options here.
ifeq ($(USE_OPT),)
-# USE_OPT = -O2 -ggdb -gstabs+ -fomit-frame-pointer -mabi=apcs-gnu
- USE_OPT = -O0 -ggdb -gstabs+ -fomit-frame-pointer -mabi=apcs-gnu
+ # If you are using gcc V4.5.1 or older then replace -g with -ggdb -gstabs+
+ # For debugging you probably want -O0 rather than -O2
+ USE_OPT = -O0 -g -fomit-frame-pointer -mabi=apcs-gnu
endif
# C specific options here (added to USE_OPT).
@@ -126,7 +127,8 @@ CPPC = $(TRGT)g++
# Enable loading with g++ only if you need C++ runtime support.
# NOTE: You can use C++ even without C++ support if you are careful. C++
# runtime support makes code size explode.
-LD = $(TRGT)gcc -ggdb -gstabs+
+# If you are using gcc V4.5.1 or older then add -ggdb -gstabs+ to the LD line
+LD = $(TRGT)gcc
#LD = $(TRGT)g++
CP = $(TRGT)objcopy
AS = $(TRGT)gcc -x assembler-with-cpp