Add debug flag by default, no need not to have it in the elf.
authorKarl Palsson <karlp@tweak.net.au>
Sat, 22 Oct 2011 02:06:35 +0000 (02:06 +0000)
committerKarl Palsson <karlp@tweak.net.au>
Sat, 22 Oct 2011 02:06:35 +0000 (02:06 +0000)
example/blink/Makefile
example/lcd/Makefile

index 1b310b1765e8984d1c92b8ef4a7239789934695d..0f4f7127718fa3236b14d3f65792af10157f2228 100644 (file)
@@ -4,7 +4,7 @@ BIN_IMAGE=blink.bin
 CC=arm-none-eabi-gcc
 OBJCOPY=arm-none-eabi-objcopy
 
-CFLAGS=-O2 -mlittle-endian -mthumb
+CFLAGS=-O2 -mlittle-endian -mthumb -g
 CFLAGS+=-mcpu=cortex-m3 -ffreestanding -nostdlib -nostdinc
 
 # to run from SRAM
index 0febe491283e4cfb9b6b913f002ba8eb9df1e91a..0f31ae68b0d2b83a74ab0c398dfe5a2413d74670 100644 (file)
@@ -2,7 +2,7 @@ ELF=lcd.elf
 
 CC=arm-none-eabi-gcc
 
-CFLAGS=-O2 -mlittle-endian -mthumb
+CFLAGS=-O2 -mlittle-endian -mthumb -g
 CFLAGS+=-mcpu=cortex-m3 -ffreestanding -nostdlib -nostdinc
 
 CFLAGS+=-I.