From: batt Date: Mon, 8 Oct 2007 17:06:14 +0000 (+0000) Subject: Add right compiler options for arm CPU. X-Git-Tag: 1.0.0~403 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=cf2bb7112d8c6c931126ea74d6e4112ecd37cc4d;p=bertos.git Add right compiler options for arm CPU. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@838 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/rules.mk b/rules.mk index 41d1e1cb..0fe37a0f 100644 --- 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