diff 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
line wrap: on
line diff
--- a/BSDmakefile.arm	Mon Oct 03 21:19:15 2011 +1030
+++ b/BSDmakefile.arm	Sat Oct 08 20:33:47 2011 +1030
@@ -5,12 +5,15 @@
 .MAIN:		${PROG}.bin
 
 TCHAIN=		arm-none-eabi
+#TCHAIN=		arm-elf
+#TCHAINSF=	-4.6
 
-CC=		${TCHAIN}-gcc
-AS=		${TCHAIN}-gcc
-CXX=		${TCHAIN}-g++
-AR=		${TCHAIN}-ar
-OBJCOPY=	${TCHAIN}-objcopy
+CC=		${TCHAIN}-gcc${TCHAINSF}
+AS=		${TCHAIN}-gcc${TCHAINSF}
+CXX=		${TCHAIN}-g++${TCHAINSF}
+AR=		${TCHAIN}-ar${TCHAINSF}
+OBJCOPY=	${TCHAIN}-objcopy${TCHAINSF}
+GDB=		${TCHAIN}-gdb
 RM=		rm -f
 
 CFLAGS+=	${COMMONFLAGS}