Browse Source

Makefile: add -O2 to CFLAGS

master
Emil Renner Berthing 5 years ago
parent
commit
0acbfcf61f
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      Makefile

+ 3
- 3
Makefile View File

@ -8,7 +8,7 @@ LD := $(CROSS_COMPILE)ld
OBJCOPY := $(CROSS_COMPILE)objcopy
PROJECTNAME=template
PROJECTNAME = template
SOURCES := main.c hw_pinout.c
GECKO_SDK_PATH := lib/GeckoSDK
@ -36,9 +36,9 @@ VPATH = .:src:$(EMLIB_SRC_PATH):$(EMLIB_DEVICE_PATH):$(EFM_DEVICE_PATH)/Source
INCLUDE_DIRS := inc $(EFM_DEVICE_PATH)/Include $(EMLIB_PATH)/inc \
$(CMSIS_PATH)/Include
CFLAGS := -Wall -Wextra -mcpu=cortex-m3 -mthumb \
CFLAGS := -O2 -std=c99 -Wall -Wextra -mcpu=cortex-m3 -mthumb \
-mfix-cortex-m3-ldrd -ffunction-sections \
-fdata-sections -fomit-frame-pointer -std=c99 \
-fdata-sections -fomit-frame-pointer \
-DEFM32TG110F32 \
$(addprefix -I, $(INCLUDE_DIRS))


Loading…
Cancel
Save