comparison BSDmakefile.arm @ 1:7a08db98ae8b

Split out compile flags for easier editing. Allow toolchain suffixes (needed for when arm-elf works). Add debug target.
author Daniel O'Connor <darius@dons.net.au>
date Sat, 08 Oct 2011 20:33:47 +1030
parents c59513fd84fb
children 74e9b3baac1e
comparison
equal deleted inserted replaced
0:c59513fd84fb 1:7a08db98ae8b
3 .SUFFIXES: .bin .elf .hex .map .lst .dmp 3 .SUFFIXES: .bin .elf .hex .map .lst .dmp
4 4
5 .MAIN: ${PROG}.bin 5 .MAIN: ${PROG}.bin
6 6
7 TCHAIN= arm-none-eabi 7 TCHAIN= arm-none-eabi
8 #TCHAIN= arm-elf
9 #TCHAINSF= -4.6
8 10
9 CC= ${TCHAIN}-gcc 11 CC= ${TCHAIN}-gcc${TCHAINSF}
10 AS= ${TCHAIN}-gcc 12 AS= ${TCHAIN}-gcc${TCHAINSF}
11 CXX= ${TCHAIN}-g++ 13 CXX= ${TCHAIN}-g++${TCHAINSF}
12 AR= ${TCHAIN}-ar 14 AR= ${TCHAIN}-ar${TCHAINSF}
13 OBJCOPY= ${TCHAIN}-objcopy 15 OBJCOPY= ${TCHAIN}-objcopy${TCHAINSF}
16 GDB= ${TCHAIN}-gdb
14 RM= rm -f 17 RM= rm -f
15 18
16 CFLAGS+= ${COMMONFLAGS} 19 CFLAGS+= ${COMMONFLAGS}
17 20
18 LDFLAGS+= ${COMMONFLAGS} 21 LDFLAGS+= ${COMMONFLAGS}