aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPerry Hung <iperry@gmail.com>2011-02-27 02:53:28 -0500
committerPerry Hung <iperry@gmail.com>2011-02-27 02:53:28 -0500
commit3377208e4e0969be71575278069314910e4c4225 (patch)
treebaa7cdec64c1d98fae0a496339ae7e1a034a81f1 /Makefile
parent41500ea3473227ae6f39836edff3b0818b42972c (diff)
Increase debug symbol output for gdb.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 9bf0c9d..a709696 100644
--- a/Makefile
+++ b/Makefile
@@ -33,7 +33,7 @@ LIBMAPLE_PATH := $(SRCROOT)/libmaple
SUPPORT_PATH := $(SRCROOT)/support
# Useful variables
-GLOBAL_CFLAGS := -Os -g -mcpu=cortex-m3 -mthumb -march=armv7-m -nostdlib \
+GLOBAL_CFLAGS := -Os -g3 -gdwarf-2 -mcpu=cortex-m3 -mthumb -march=armv7-m -nostdlib \
-ffunction-sections -fdata-sections -Wl,--gc-sections \
-DBOARD_$(BOARD) -DMCU_$(MCU)
GLOBAL_CXXFLAGS := -fno-rtti -fno-exceptions -Wall -DBOARD_$(BOARD) -DMCU_$(MCU)