Add defines variable
This commit is contained in:
parent
def13dc0da
commit
84bb6116b8
3
Makefile
3
Makefile
|
@ -81,8 +81,9 @@ C_INCLUDES += -IDrivers/CMSIS/Device/ST/STM32F4xx/Include
|
||||||
C_INCLUDES += -IDrivers/STM32F4xx_HAL_Driver/Inc
|
C_INCLUDES += -IDrivers/STM32F4xx_HAL_Driver/Inc
|
||||||
C_INCLUDES += -IDrivers/STM32F4xx_HAL_Driver/Inc/Legacy
|
C_INCLUDES += -IDrivers/STM32F4xx_HAL_Driver/Inc/Legacy
|
||||||
# compile gcc flags
|
# compile gcc flags
|
||||||
|
DEFINES = -DMINIZ_NO_ARCHIVE_APIS -DMINIZ_NO_STDIO -DMINIZ_NO_TIME
|
||||||
ASFLAGS = -mthumb -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard $(AS_DEFS) $(AS_INCLUDES) $(OPT) -Wall -fdata-sections -ffunction-sections
|
ASFLAGS = -mthumb -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard $(AS_DEFS) $(AS_INCLUDES) $(OPT) -Wall -fdata-sections -ffunction-sections
|
||||||
CFLAGS = -mthumb -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard $(C_DEFS) $(C_INCLUDES) $(OPT) -Wall -fdata-sections -ffunction-sections
|
CFLAGS = -mthumb -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard $(C_DEFS) $(C_INCLUDES) $(OPT) -Wall -fdata-sections -ffunction-sections $(DEFINES)
|
||||||
ifeq ($(DEBUG), 1)
|
ifeq ($(DEBUG), 1)
|
||||||
CFLAGS += -g -gdwarf-2
|
CFLAGS += -g -gdwarf-2
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in New Issue