1
0
mirror of https://github.com/peterantypas/maiana.git synced 2025-05-20 17:30:10 -07:00
2024-02-12 19:15:27 -08:00

109 lines
3.2 KiB
Makefile

################################################################################
# Automatically-generated file. Do not edit!
################################################################################
-include ../makefile.init
RM := rm
# All of the sources participating in the build are defined here
-include sources.mk
-include startup/subdir.mk
-include Src/bsp/subdir.mk
-include Src/subdir.mk
-include Drivers/STM32L4xx_HAL_Driver/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 $(CCM_DEPS)),)
-include $(CCM_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 $(CXXM_DEPS)),)
-include $(CXXM_DEPS)
endif
ifneq ($(strip $(C++M_DEPS)),)
-include $(C++M_DEPS)
endif
ifneq ($(strip $(C_DEPS)),)
-include $(C_DEPS)
endif
ifneq ($(strip $(CPP_DEPS)),)
-include $(CPP_DEPS)
endif
endif
-include ../makefile.defs
OPTIONAL_TOOL_DEPS := \
$(wildcard ../makefile.defs) \
$(wildcard ../makefile.init) \
$(wildcard ../makefile.targets) \
BUILD_ARTIFACT_NAME := maiana-transponder
BUILD_ARTIFACT_EXTENSION := elf
BUILD_ARTIFACT_PREFIX :=
BUILD_ARTIFACT := $(BUILD_ARTIFACT_PREFIX)$(BUILD_ARTIFACT_NAME)$(if $(BUILD_ARTIFACT_EXTENSION),.$(BUILD_ARTIFACT_EXTENSION),)
# Add inputs and outputs from these tool invocations to the build variables
SECONDARY_FLASH += \
maiana-transponder.bin \
SECONDARY_SIZE += \
maiana-transponder.siz \
# All Target
all: main-build
# Main-build Target
main-build: maiana-transponder.elf
# Tool invocations
maiana-transponder.elf: $(OBJS) $(USER_OBJS) makefile objects.mk $(OPTIONAL_TOOL_DEPS)
@echo 'Building target: $@'
@echo 'Invoking: Cross ARM GNU C++ Linker'
arm-none-eabi-g++ -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -ffreestanding -fsingle-precision-constant -flto -Wall -T "/Users/peter/github/maiana/latest/Firmware/Transponder/STM32L4xx_FLASH-Bootloader.ld" -Xlinker --gc-sections -s -Wl,-Map,"maiana-transponder.map" --specs=nano.specs --specs=rdimon.specs -o "maiana-transponder.elf" $(OBJS) $(USER_OBJS) $(LIBS)
@echo 'Finished building target: $@'
@echo ' '
maiana-transponder.bin: maiana-transponder.elf makefile objects.mk $(OPTIONAL_TOOL_DEPS)
@echo 'Invoking: Cross ARM GNU Create Flash Image'
arm-none-eabi-objcopy -O binary "maiana-transponder.elf" "maiana-transponder.bin"
@echo 'Finished building: $@'
@echo ' '
maiana-transponder.siz: maiana-transponder.elf makefile objects.mk $(OPTIONAL_TOOL_DEPS)
@echo 'Invoking: Cross ARM GNU Print Size'
arm-none-eabi-size --format=sysv "maiana-transponder.elf"
@echo 'Finished building: $@'
@echo ' '
# Other Targets
clean:
-$(RM) $(CCM_DEPS)$(C_UPPER_DEPS)$(SECONDARY_SIZE)$(CXXM_DEPS)$(C_DEPS)$(CC_DEPS)$(C++_DEPS)$(OBJS)$(CXX_DEPS)$(SECONDARY_FLASH)$(ASM_DEPS)$(S_UPPER_DEPS)$(C++M_DEPS)$(CPP_DEPS) maiana-transponder.elf
-@echo ' '
.PHONY: all clean dependents main-build
-include ../makefile.targets