add -m flags for linking

This commit is contained in:
NIIBE Yutaka
2012-05-22 19:51:52 +09:00
parent 84e3a5c1a6
commit d3af289b3c

View File

@@ -16,7 +16,7 @@ OBJCOPY = $(TRGT)objcopy
OBJDUMP = $(TRGT)objdump OBJDUMP = $(TRGT)objdump
# THUMB-specific options here # THUMB-specific options here
TOPT = -mthumb -DTHUMB TOPT = -mthumb -DTHUMB -mno-thumb-interwork
# Define C warning options here # Define C warning options here
CWARN = -Wall -Wextra -Wstrict-prototypes CWARN = -Wall -Wextra -Wstrict-prototypes
MCFLAGS= -mcpu=$(MCU) -mfix-cortex-m3-ldrd MCFLAGS= -mcpu=$(MCU) -mfix-cortex-m3-ldrd
@@ -25,7 +25,7 @@ DEFS = -DFREE_STANDING
CFLAGS = -O2 -g CFLAGS = -O2 -g
CFLAGS += $(CWARN) -fno-common $(MCFLAGS) $(TOPT) $(DEFS) CFLAGS += $(CWARN) -fno-common $(MCFLAGS) $(TOPT) $(DEFS)
LDFLAGS = -T$(LDSCRIPT) -nostartfiles LDFLAGS = -T$(LDSCRIPT) -nostartfiles $(MCFLAGS) $(TOPT)
#################### ####################