|
| 1 | +################################################################################ |
| 2 | +# Automatically-generated file. Do not edit! |
| 3 | +################################################################################ |
| 4 | + |
| 5 | +-include ../makefile.init |
| 6 | + |
| 7 | +RM := rm -rf |
| 8 | + |
| 9 | +# All of the sources participating in the build are defined here |
| 10 | +-include sources.mk |
| 11 | +-include system/src/stm32f0xx/subdir.mk |
| 12 | +-include system/src/newlib/subdir.mk |
| 13 | +-include system/src/diag/subdir.mk |
| 14 | +-include system/src/cortexm/subdir.mk |
| 15 | +-include system/src/cmsis/subdir.mk |
| 16 | +-include src/subdir.mk |
| 17 | +-include subdir.mk |
| 18 | +-include objects.mk |
| 19 | + |
| 20 | +ifneq ($(MAKECMDGOALS),clean) |
| 21 | +ifneq ($(strip $(CC_DEPS)),) |
| 22 | +-include $(CC_DEPS) |
| 23 | +endif |
| 24 | +ifneq ($(strip $(C++_DEPS)),) |
| 25 | +-include $(C++_DEPS) |
| 26 | +endif |
| 27 | +ifneq ($(strip $(C_UPPER_DEPS)),) |
| 28 | +-include $(C_UPPER_DEPS) |
| 29 | +endif |
| 30 | +ifneq ($(strip $(CXX_DEPS)),) |
| 31 | +-include $(CXX_DEPS) |
| 32 | +endif |
| 33 | +ifneq ($(strip $(ASM_DEPS)),) |
| 34 | +-include $(ASM_DEPS) |
| 35 | +endif |
| 36 | +ifneq ($(strip $(S_UPPER_DEPS)),) |
| 37 | +-include $(S_UPPER_DEPS) |
| 38 | +endif |
| 39 | +ifneq ($(strip $(C_DEPS)),) |
| 40 | +-include $(C_DEPS) |
| 41 | +endif |
| 42 | +ifneq ($(strip $(CPP_DEPS)),) |
| 43 | +-include $(CPP_DEPS) |
| 44 | +endif |
| 45 | +endif |
| 46 | + |
| 47 | +-include ../makefile.defs |
| 48 | + |
| 49 | +# Add inputs and outputs from these tool invocations to the build variables |
| 50 | +SECONDARY_FLASH += \ |
| 51 | +turtle.hex \ |
| 52 | + |
| 53 | +SECONDARY_SIZE += \ |
| 54 | +turtle.siz \ |
| 55 | + |
| 56 | + |
| 57 | +# All Target |
| 58 | +all: turtle.elf secondary-outputs |
| 59 | + |
| 60 | +# Tool invocations |
| 61 | +turtle.elf: $(OBJS) $(USER_OBJS) |
| 62 | + @echo 'Building target: $@' |
| 63 | + @echo 'Invoking: Cross ARM GNU C++ Linker' |
| 64 | + arm-none-eabi-g++ -mcpu=cortex-m0 -mthumb -Og -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -ffreestanding -fno-move-loop-invariants -Wall -Wextra -g3 -T mem.ld -T libs.ld -T sections.ld -nostartfiles -Xlinker --gc-sections -L"../ldscripts" -Wl,-Map,"turtle.map" --specs=nano.specs -o "turtle.elf" $(OBJS) $(USER_OBJS) $(LIBS) |
| 65 | + @echo 'Finished building target: $@' |
| 66 | + @echo ' ' |
| 67 | + |
| 68 | +turtle.hex: turtle.elf |
| 69 | + @echo 'Invoking: Cross ARM GNU Create Flash Image' |
| 70 | + arm-none-eabi-objcopy -O ihex "turtle.elf" "turtle.hex" |
| 71 | + @echo 'Finished building: $@' |
| 72 | + @echo ' ' |
| 73 | + |
| 74 | +turtle.siz: turtle.elf |
| 75 | + @echo 'Invoking: Cross ARM GNU Print Size' |
| 76 | + arm-none-eabi-size --format=berkeley "turtle.elf" |
| 77 | + @echo 'Finished building: $@' |
| 78 | + @echo ' ' |
| 79 | + |
| 80 | +# Other Targets |
| 81 | +clean: |
| 82 | + -$(RM) $(CC_DEPS)$(C++_DEPS)$(OBJS)$(C_UPPER_DEPS)$(CXX_DEPS)$(SECONDARY_FLASH)$(SECONDARY_SIZE)$(ASM_DEPS)$(S_UPPER_DEPS)$(C_DEPS)$(CPP_DEPS) turtle.elf |
| 83 | + -@echo ' ' |
| 84 | + |
| 85 | +secondary-outputs: $(SECONDARY_FLASH) $(SECONDARY_SIZE) |
| 86 | + |
| 87 | +.PHONY: all clean dependents |
| 88 | + |
| 89 | +-include ../makefile.targets |
0 commit comments