From 8afb5785a131d255523593d6ec393cada25b8e7f Mon Sep 17 00:00:00 2001 From: gdisirio Date: Tue, 18 Dec 2007 14:00:01 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@149 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- demos/ARM7-LPC214x-GCC-minimal/Makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'demos/ARM7-LPC214x-GCC-minimal/Makefile') 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 -- cgit v1.2.3