projects
/
bertos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
241cc32
)
Add right compiler options for arm CPU.
author
batt
<batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 8 Oct 2007 17:06:14 +0000
(17:06 +0000)
committer
batt
<batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 8 Oct 2007 17:06:14 +0000
(17:06 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@838
38d2e660
-2303-0410-9eaa-
f027e97ec537
rules.mk
patch
|
blob
|
history
diff --git
a/rules.mk
b/rules.mk
index 41d1e1cb9e33d948c5df814735c8f11cff2b0154..0fe37a0f8f98c0c967d2595a7be7d54653653750 100644
(file)
--- a/
rules.mk
+++ b/
rules.mk
@@
-63,6
+63,14
@@
$(1)_ASFLAGS += -mmcu=$$($(1)_MCU)
$(1)_CPPAFLAGS += -mmcu=$$($(1)_MCU)
$(1)_LDFLAGS += -mmcu=$$($(1)_MCU)
endif
+ifneq ($$(strip $$($(1)_CPU)),)
+# Define all project specific object files
+$(1)_CFLAGS += -mcpu=$$($(1)_CPU)
+$(1)_CXXFLAGS += -mcpu=$$($(1)_CPU)
+$(1)_ASFLAGS += -mcpu=$$($(1)_CPU)
+$(1)_CPPAFLAGS += -mcpu=$$($(1)_CPU)
+$(1)_LDFLAGS += -mcpu=$$($(1)_CPU)
+endif
ifneq ($$(strip $$($(1)_LDSCRIPT)),)
$(1)_LDFLAGS += -Wl,-T$$($(1)_LDSCRIPT)
endif