76 lines
2.2 KiB
Makefile
76 lines
2.2 KiB
Makefile
################################################################################
|
|
# 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 src/subdir.mk
|
|
-include generated/Src/subdir.mk
|
|
-include generated/Middlewares/ST/STM32_USB_Device_Library/Core/Src/subdir.mk
|
|
-include generated/Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Src/subdir.mk
|
|
-include generated/Drivers/STM32F0xx_HAL_Driver/Src/subdir.mk
|
|
-include generated/Drivers/CMSIS/Device/ST/STM32F0xx/Source/Templates/gcc/subdir.mk
|
|
-include generated/Drivers/CMSIS/Device/ST/STM32F0xx/Source/Templates/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 $(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
|
|
|
|
# Add inputs and outputs from these tool invocations to the build variables
|
|
|
|
# All Target
|
|
all: eeprom_programmer.elf
|
|
|
|
# Tool invocations
|
|
eeprom_programmer.elf: $(OBJS) $(USER_OBJS)
|
|
@echo 'Building target: $@'
|
|
@echo 'Invoking: MCU G++ Linker'
|
|
arm-none-eabi-g++ -mcpu=cortex-m0 -mthumb -mfloat-abi=soft -specs=nosys.specs -specs=nano.specs -T"D:\f0projects\eeprom_programmer\LinkerScript.ld" -Wl,-Map=output.map -Wl,--gc-sections -fno-exceptions -fno-rtti -lm -o "eeprom_programmer.elf" @"objects.list" $(USER_OBJS) $(LIBS)
|
|
@echo 'Finished building target: $@'
|
|
@echo ' '
|
|
$(MAKE) --no-print-directory post-build
|
|
|
|
# Other Targets
|
|
clean:
|
|
-$(RM) *
|
|
-@echo ' '
|
|
|
|
post-build:
|
|
-@echo 'Generating binary and Printing size information:'
|
|
arm-none-eabi-objcopy -O binary "eeprom_programmer.elf" "eeprom_programmer.bin"
|
|
arm-none-eabi-size "eeprom_programmer.elf"
|
|
-@echo ' '
|
|
|
|
.PHONY: all clean dependents
|
|
.SECONDARY: post-build
|
|
|
|
-include ../makefile.targets
|