syntax: glob
*\.o
*\.d
analysis/*
.settings/*
Debug/*
build/*
*.orig
archive/*
# STM32F0xx Makefile
# #####################################
#
# Part of the uCtools project
# uctools.github.com
#######################################
# user configuration:
BUILD_NUMBER ?= 0
# SOURCES: list of sources in the user application
SOURCES = main.c adc.c gpio.c i2c.c interrupts.c uart.c gps.c system_stm32f0xx.c system.c wspr.c rtc.c
# TARGET: name of the user application
TARGET = wsprhab-b$(BUILD_NUMBER)
# BUILD_DIR: directory to place output files in
BUILD_DIR = build
# LD_SCRIPT: location of the linker script
LD_SCRIPT = STM32F031G6_FLASH.ld
# USER_DEFS user defined macros
USER_DEFS = -D HSE_VALUE=16000000
USER_DEFS += -D WSPRHAB_BUILD_NUMBER=$(BUILD_NUMBER)
# USER_INCLUDES: user defined includes
USER_INCLUDES =
# USB_INCLUDES: includes for the usb library
# USB_INCLUDES = -IMiddlewares/ST/STM32_USB_Device_Library/Core/Inc
#USB_INCLUDES += -IMiddlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc
SI5351_INCLUDES = -Ilib/si5351
JTENCODE_INCLUDES = -Ilib/jtencode
# USER_CFLAGS: user C flags (enable warnings, enable debug info)
USER_CFLAGS = -Wall -g -ffunction-sections -fdata-sections -Os -fno-common --function-sections -fdata-sections
#USER_CFLAGS += -flto
USER_CFLAGS += --specs=nano.specs
# USER_LDFLAGS: user LD flags
USER_LDFLAGS = -fno-exceptions -ffunction-sections -fdata-sections -Wl,--gc-sections
USER_LDFLAGS += -flto
USER_LDFLAGS += --static
#USER_LDFLAGS += -nostartfiles
# TARGET_DEVICE: device to compile for
TARGET_DEVICE = STM32F031x6
# end of user configuration
# binaries
CC = arm-none-eabi-gcc
AR = arm-none-eabi-ar
RANLIB = arm-none-eabi-ranlib
SIZE = arm-none-eabi-size
OBJCOPY = arm-none-eabi-objcopy
MKDIR = mkdir -p
# core and CPU type for Cortex M0
# ARM core type (CORE_M0, CORE_M3)
CORE = CORE_M0
# ARM CPU type (cortex-m0, cortex-m3)
CPU = cortex-m0
# where to build STM32Cube
CUBELIB_BUILD_DIR = $(BUILD_DIR)/STM32Cube
# various paths within the STmicro library
CMSIS_PATH = drivers/CMSIS
CMSIS_DEVICE_PATH = $(CMSIS_PATH)/Device/ST/STM32F0xx
DRIVER_PATH = drivers/STM32F0xx_HAL_Driver
# includes for gcc
INCLUDES = -I$(CMSIS_PATH)/Include
INCLUDES += -I$(CMSIS_DEVICE_PATH)/Include
INCLUDES += -I$(DRIVER_PATH)/Inc
INCLUDES += -Iinc
#INCLUDES += $(USB_INCLUDES)
INCLUDES += $(USER_INCLUDES)
INCLUDES += $(SI5351_INCLUDES)
Status change: