aboutsummaryrefslogtreecommitdiffstats
path: root/demos/ARM7-LPC214x-GCC-minimal/Makefile
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2007-12-18 14:00:01 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2007-12-18 14:00:01 +0000
commit8afb5785a131d255523593d6ec393cada25b8e7f (patch)
treefccfaf0f4f68d6d9fb965530b7c1235d1478e8df /demos/ARM7-LPC214x-GCC-minimal/Makefile
parent51d9a97993bca9924419ba9d62b4c79c8426c91b (diff)
downloadChibiOS-8afb5785a131d255523593d6ec393cada25b8e7f.tar.gz
ChibiOS-8afb5785a131d255523593d6ec393cada25b8e7f.tar.bz2
ChibiOS-8afb5785a131d255523593d6ec393cada25b8e7f.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@149 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/ARM7-LPC214x-GCC-minimal/Makefile')
-rw-r--r--demos/ARM7-LPC214x-GCC-minimal/Makefile12
1 files changed, 6 insertions, 6 deletions
diff --git a/demos/ARM7-LPC214x-GCC-minimal/Makefile b/demos/ARM7-LPC214x-GCC-minimal/Makefile
index 3514a9090..1fe22d71a 100644
--- a/demos/ARM7-LPC214x-GCC-minimal/Makefile
+++ b/demos/ARM7-LPC214x-GCC-minimal/Makefile
@@ -127,16 +127,16 @@ ODFLAGS = -x --syms
# Thumb interwork enabled only if needed because it kills performance.
ifneq ($(TSRC),)
+ CPFLAGS += -D THUMB_PRESENT
ifneq ($(ASRC),)
- # Both ARM and THUMB case
- CPFLAGS += -mthumb-interwork -D THUMB
+ # Mixed ARM and THUMB case.
+ CPFLAGS += -mthumb-interwork
LDFLAGS += -mthumb-interwork
- ASFLAGS += -mthumb-interwork -D THUMB
else
- # Pure THUMB case, THUMB C code cannot be called by ARM asm code directly
- CPFLAGS += -D THUMB
+ # Pure THUMB case, THUMB C code cannot be called by ARM asm code directly.
+ CPFLAGS += -D THUMB_NO_INTERWORKING
LDFLAGS += -mthumb
- ASFLAGS += -mthumb-interwork -D THUMB -D THUMB_NO_INTERWORKING
+ ASFLAGS += -D THUMB_NO_INTERWORKING
endif
endif