2021-06-13 18:27:17 +00:00
|
|
|
################################################################################
|
|
|
|
# Automatically-generated file. Do not edit!
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
-include ../makefile.init
|
|
|
|
|
|
|
|
RM := rm -rf
|
|
|
|
|
|
|
|
# All of the sources participating in the build are defined here
|
|
|
|
-include sources.mk
|
|
|
|
-include system/src/ve_direct_protocol/subdir.mk
|
|
|
|
-include system/src/umb_master/subdir.mk
|
2022-04-10 19:47:42 +00:00
|
|
|
-include system/src/tiny-aes/subdir.mk
|
2021-06-13 18:27:17 +00:00
|
|
|
-include system/src/stm32l4-hal-driver/subdir.mk
|
|
|
|
-include system/src/modbus_rtu/subdir.mk
|
2022-03-19 11:47:38 +00:00
|
|
|
-include system/src/http_client/subdir.mk
|
2022-01-24 20:51:45 +00:00
|
|
|
-include system/src/gsm/subdir.mk
|
2022-09-22 20:44:20 +00:00
|
|
|
-include system/src/fatfs/subdir.mk
|
2022-09-20 18:58:11 +00:00
|
|
|
-include system/src/dust_sensor/subdir.mk
|
2021-06-13 18:27:17 +00:00
|
|
|
-include system/src/drivers/l4/subdir.mk
|
|
|
|
-include system/src/drivers/subdir.mk
|
|
|
|
-include system/src/diag/subdir.mk
|
|
|
|
-include system/src/davis_vantage/subdir.mk
|
|
|
|
-include system/src/cmsis/stm32l4xx/subdir.mk
|
|
|
|
-include system/src/aprs/subdir.mk
|
2022-10-20 07:06:54 +00:00
|
|
|
-include system/src/subdir.mk
|
2023-06-30 21:01:36 +00:00
|
|
|
-include src/stored_configuration_nvm/subdir.mk
|
2023-06-27 20:49:35 +00:00
|
|
|
-include src/kiss_protocol/subdir.mk
|
2021-06-13 18:27:17 +00:00
|
|
|
-include src/subdir.mk
|
|
|
|
-include subdir.mk
|
|
|
|
-include objects.mk
|
|
|
|
|
|
|
|
ifneq ($(MAKECMDGOALS),clean)
|
|
|
|
ifneq ($(strip $(CC_DEPS)),)
|
|
|
|
-include $(CC_DEPS)
|
|
|
|
endif
|
|
|
|
ifneq ($(strip $(C++_DEPS)),)
|
|
|
|
-include $(C++_DEPS)
|
|
|
|
endif
|
|
|
|
ifneq ($(strip $(C_UPPER_DEPS)),)
|
|
|
|
-include $(C_UPPER_DEPS)
|
|
|
|
endif
|
|
|
|
ifneq ($(strip $(CXX_DEPS)),)
|
|
|
|
-include $(CXX_DEPS)
|
|
|
|
endif
|
|
|
|
ifneq ($(strip $(ASM_DEPS)),)
|
|
|
|
-include $(ASM_DEPS)
|
|
|
|
endif
|
|
|
|
ifneq ($(strip $(S_UPPER_DEPS)),)
|
|
|
|
-include $(S_UPPER_DEPS)
|
|
|
|
endif
|
|
|
|
ifneq ($(strip $(C_DEPS)),)
|
|
|
|
-include $(C_DEPS)
|
|
|
|
endif
|
|
|
|
ifneq ($(strip $(CPP_DEPS)),)
|
|
|
|
-include $(CPP_DEPS)
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
-include ../makefile.defs
|
|
|
|
|
2023-04-16 08:14:12 +00:00
|
|
|
OPTIONAL_TOOL_DEPS := \
|
|
|
|
$(wildcard ../makefile.defs) \
|
|
|
|
$(wildcard ../makefile.init) \
|
|
|
|
$(wildcard ../makefile.targets) \
|
|
|
|
|
|
|
|
|
|
|
|
BUILD_ARTIFACT_NAME := ParaTNC
|
|
|
|
BUILD_ARTIFACT_EXTENSION := elf
|
|
|
|
BUILD_ARTIFACT_PREFIX :=
|
|
|
|
BUILD_ARTIFACT := $(BUILD_ARTIFACT_PREFIX)$(BUILD_ARTIFACT_NAME)$(if $(BUILD_ARTIFACT_EXTENSION),.$(BUILD_ARTIFACT_EXTENSION),)
|
|
|
|
|
2021-06-13 18:27:17 +00:00
|
|
|
# Add inputs and outputs from these tool invocations to the build variables
|
|
|
|
SECONDARY_FLASH += \
|
|
|
|
ParaTNC.hex \
|
|
|
|
|
2023-10-16 09:58:47 +00:00
|
|
|
SECONDARY_LIST += \
|
|
|
|
ParaTNC.lst \
|
|
|
|
|
2021-06-13 18:27:17 +00:00
|
|
|
SECONDARY_SIZE += \
|
|
|
|
ParaTNC.siz \
|
|
|
|
|
|
|
|
|
|
|
|
# All Target
|
2023-04-16 08:14:12 +00:00
|
|
|
all: main-build
|
|
|
|
|
|
|
|
# Main-build Target
|
|
|
|
main-build: ParaTNC.elf secondary-outputs
|
2021-06-13 18:27:17 +00:00
|
|
|
|
|
|
|
# Tool invocations
|
2023-04-16 08:14:12 +00:00
|
|
|
ParaTNC.elf: $(OBJS) $(USER_OBJS) makefile objects.mk $(OPTIONAL_TOOL_DEPS)
|
2021-06-13 18:27:17 +00:00
|
|
|
@echo 'Building target: $@'
|
|
|
|
@echo 'Invoking: Cross ARM C++ Linker'
|
2023-04-16 08:14:12 +00:00
|
|
|
arm-none-eabi-g++ -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -Og -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -ffreestanding -fno-move-loop-invariants -g3 -T STM32L471RETx_FLASH.ld -Xlinker --gc-sections -L"../ldscripts/stm32l476" -L"../system/src/dsp" -Wl,-Map,"ParaTNC.map" -Xlinker --cref --specs=nano.specs -u _printf_float --specs=nosys.specs -o "ParaTNC.elf" $(OBJS) $(USER_OBJS) $(LIBS)
|
2021-06-13 18:27:17 +00:00
|
|
|
@echo 'Finished building target: $@'
|
|
|
|
@echo ' '
|
|
|
|
|
2023-04-16 08:14:12 +00:00
|
|
|
ParaTNC.hex: ParaTNC.elf makefile objects.mk $(OPTIONAL_TOOL_DEPS)
|
2021-06-13 18:27:17 +00:00
|
|
|
@echo 'Invoking: Cross ARM GNU Create Flash Image'
|
|
|
|
arm-none-eabi-objcopy -O ihex "ParaTNC.elf" "ParaTNC.hex"
|
|
|
|
@echo 'Finished building: $@'
|
|
|
|
@echo ' '
|
|
|
|
|
2023-10-16 09:58:47 +00:00
|
|
|
ParaTNC.lst: ParaTNC.elf makefile objects.mk $(OPTIONAL_TOOL_DEPS)
|
|
|
|
@echo 'Invoking: Cross ARM GNU Create Listing'
|
|
|
|
arm-none-eabi-objdump --source --all-headers --demangle --line-numbers --wide "ParaTNC.elf" > "ParaTNC.lst"
|
|
|
|
@echo 'Finished building: $@'
|
|
|
|
@echo ' '
|
|
|
|
|
2023-04-16 08:14:12 +00:00
|
|
|
ParaTNC.siz: ParaTNC.elf makefile objects.mk $(OPTIONAL_TOOL_DEPS)
|
2021-06-13 18:27:17 +00:00
|
|
|
@echo 'Invoking: Cross ARM GNU Print Size'
|
|
|
|
arm-none-eabi-size --format=berkeley "ParaTNC.elf"
|
|
|
|
@echo 'Finished building: $@'
|
|
|
|
@echo ' '
|
|
|
|
|
|
|
|
# Other Targets
|
|
|
|
clean:
|
2023-10-16 09:58:47 +00:00
|
|
|
-$(RM) $(CC_DEPS)$(C++_DEPS)$(OBJS)$(C_UPPER_DEPS)$(CXX_DEPS)$(SECONDARY_FLASH)$(SECONDARY_LIST)$(SECONDARY_SIZE)$(ASM_DEPS)$(S_UPPER_DEPS)$(C_DEPS)$(CPP_DEPS) ParaTNC.elf
|
2021-06-13 18:27:17 +00:00
|
|
|
-@echo ' '
|
|
|
|
|
2023-10-16 09:58:47 +00:00
|
|
|
secondary-outputs: $(SECONDARY_FLASH) $(SECONDARY_LIST) $(SECONDARY_SIZE)
|
2021-06-13 18:27:17 +00:00
|
|
|
|
2023-04-16 08:14:12 +00:00
|
|
|
.PHONY: all clean dependents main-build
|
2021-06-13 18:27:17 +00:00
|
|
|
|
|
|
|
-include ../makefile.targets
|