aboutsummaryrefslogtreecommitdiffstats
path: root/demos/ARM7-LPC214x-GCC
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2008-08-25 14:17:38 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2008-08-25 14:17:38 +0000
commit65baafa9e6e82293a202c96e832c7779b7216550 (patch)
tree5e8168a51d1d8f8e54deb9d2b9394f9955e18705 /demos/ARM7-LPC214x-GCC
parent01afd268a5f8bb48007b44e6c2aa7c0d3eafe757 (diff)
downloadChibiOS-65baafa9e6e82293a202c96e832c7779b7216550.tar.gz
ChibiOS-65baafa9e6e82293a202c96e832c7779b7216550.tar.bz2
ChibiOS-65baafa9e6e82293a202c96e832c7779b7216550.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@404 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/ARM7-LPC214x-GCC')
-rw-r--r--demos/ARM7-LPC214x-GCC/Makefile8
-rw-r--r--demos/ARM7-LPC214x-GCC/Makefile.thumb8
2 files changed, 8 insertions, 8 deletions
diff --git a/demos/ARM7-LPC214x-GCC/Makefile b/demos/ARM7-LPC214x-GCC/Makefile
index c10ff9d94..8e1790bb2 100644
--- a/demos/ARM7-LPC214x-GCC/Makefile
+++ b/demos/ARM7-LPC214x-GCC/Makefile
@@ -111,10 +111,6 @@ OPT = -O2 -ggdb -fomit-frame-pointer -mabi=apcs-gnu
#OPT += -ffixed-r7
OPT += -falign-functions=16
-ifeq ($(LINK_GC),yes)
- OPT += -ffunction-sections -fdata-sections
-endif
-
# Define warning options here
WARN = -Wall -Wstrict-prototypes
@@ -122,6 +118,10 @@ WARN = -Wall -Wstrict-prototypes
# End of user defines
##############################################################################################
+ifeq ($(LINK_GC),yes)
+ OPT += -ffunction-sections -fdata-sections
+endif
+
INCDIR = $(patsubst %,-I%,$(DINCDIR) $(UINCDIR))
LIBDIR = $(patsubst %,-L%,$(DLIBDIR) $(ULIBDIR))
DEFS = $(DDEFS) $(UDEFS)
diff --git a/demos/ARM7-LPC214x-GCC/Makefile.thumb b/demos/ARM7-LPC214x-GCC/Makefile.thumb
index b388e64d7..4b62f9091 100644
--- a/demos/ARM7-LPC214x-GCC/Makefile.thumb
+++ b/demos/ARM7-LPC214x-GCC/Makefile.thumb
@@ -111,10 +111,6 @@ OPT = -Os -ggdb -fomit-frame-pointer -mabi=apcs-gnu
#OPT += -ffixed-r7
OPT += -falign-functions=16
-ifeq ($(LINK_GC),yes)
- OPT += -ffunction-sections -fdata-sections
-endif
-
# Define warning options here
WARN = -Wall -Wstrict-prototypes
@@ -122,6 +118,10 @@ WARN = -Wall -Wstrict-prototypes
# End of user defines
##############################################################################################
+ifeq ($(LINK_GC),yes)
+ OPT += -ffunction-sections -fdata-sections
+endif
+
INCDIR = $(patsubst %,-I%,$(DINCDIR) $(UINCDIR))
LIBDIR = $(patsubst %,-L%,$(DLIBDIR) $(ULIBDIR))
DEFS = $(DDEFS) $(UDEFS)