aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2012-08-05 12:59:36 -0400
committerMarti Bolivar <mbolivar@leaflabs.com>2012-08-05 12:59:36 -0400
commit3feaff9754eaaab7d212ead606969bf66c44fce2 (patch)
treec84506dd8cc145e6fff8eb942ec553f63f83fd56 /Makefile
parent36b24f9cce2c0fc0be5d64afe126f61ed722022f (diff)
Makefile: move flag settings after build-rules and -templates.
We'll need to mess with the linker flags to add support for ARM toolchains other than CodeSourcery's. Since the toolchain is determined in build-rules.mk, decisions that depend on it have to happen after it's included. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 7 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index a212ede..3c36bec 100644
--- a/Makefile
+++ b/Makefile
@@ -35,6 +35,13 @@ MEMORY_TARGET ?= flash
include $(MAKEDIR)/target-config.mk
##
+## Build rules and useful templates
+##
+
+include $(MAKEDIR)/build-rules.mk
+include $(MAKEDIR)/build-templates.mk
+
+##
## Compilation flags
##
@@ -57,13 +64,6 @@ LDFLAGS = $(TARGET_LDFLAGS) -mcpu=cortex-m3 -mthumb \
# -Xlinker --print-gc-sections \
##
-## Build rules and useful templates
-##
-
-include $(MAKEDIR)/build-rules.mk
-include $(MAKEDIR)/build-templates.mk
-
-##
## Set all submodules here
##