Allow passing extra flags
This commit is contained in:
parent
c93c8e16a5
commit
06bc8d6aa3
1 changed files with 3 additions and 3 deletions
|
@ -575,10 +575,10 @@ CPPFLAGS = -mmcu=$(MCU) -DF_CPU=$(F_CPU) -DARDUINO=$(ARDUINO_VERSION) \
|
|||
-I. -I$(ARDUINO_CORE_PATH) -I$(ARDUINO_VAR_PATH)/$(VARIANT) \
|
||||
$(SYS_INCLUDES) $(USER_INCLUDES) -g -Os -w -Wall \
|
||||
-ffunction-sections -fdata-sections
|
||||
CFLAGS = -std=gnu99
|
||||
CXXFLAGS = -fno-exceptions
|
||||
CFLAGS = -std=gnu99 $(EXTRA_FLAGS) $(EXTRA_CFLAGS)
|
||||
CXXFLAGS = -fno-exceptions $(EXTRA_FLAGS) $(EXTRA_CXXFLAGS)
|
||||
ASFLAGS = -mmcu=$(MCU) -I. -x assembler-with-cpp
|
||||
LDFLAGS = -mmcu=$(MCU) -Wl,--gc-sections -Os
|
||||
LDFLAGS = -mmcu=$(MCU) -Wl,--gc-sections -Os $(EXTRA_FLAGS) $(EXTRA_CXXFLAGS)
|
||||
|
||||
# Expand and pick the first port
|
||||
ARD_PORT = $(firstword $(wildcard $(ARDUINO_PORT)))
|
||||
|
|
Loading…
Reference in a new issue