makefile 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. ################################################################################
  2. # Automatically-generated file. Do not edit!
  3. # Toolchain: GNU Tools for STM32 (9-2020-q2-update)
  4. ################################################################################
  5. -include ../makefile.init
  6. RM := rm -rf
  7. # All of the sources participating in the build are defined here
  8. -include sources.mk
  9. -include Drivers/ssd1306/subdir.mk
  10. -include Drivers/STM32L1xx_HAL_Driver/Src/subdir.mk
  11. -include Core/Startup/subdir.mk
  12. -include Core/Src/subdir.mk
  13. -include subdir.mk
  14. -include objects.mk
  15. ifneq ($(MAKECMDGOALS),clean)
  16. ifneq ($(strip $(S_DEPS)),)
  17. -include $(S_DEPS)
  18. endif
  19. ifneq ($(strip $(S_UPPER_DEPS)),)
  20. -include $(S_UPPER_DEPS)
  21. endif
  22. ifneq ($(strip $(C_DEPS)),)
  23. -include $(C_DEPS)
  24. endif
  25. endif
  26. -include ../makefile.defs
  27. OPTIONAL_TOOL_DEPS := \
  28. $(wildcard ../makefile.defs) \
  29. $(wildcard ../makefile.init) \
  30. $(wildcard ../makefile.targets) \
  31. BUILD_ARTIFACT_NAME := dosim-v1
  32. BUILD_ARTIFACT_EXTENSION := elf
  33. BUILD_ARTIFACT_PREFIX :=
  34. BUILD_ARTIFACT := $(BUILD_ARTIFACT_PREFIX)$(BUILD_ARTIFACT_NAME)$(if $(BUILD_ARTIFACT_EXTENSION),.$(BUILD_ARTIFACT_EXTENSION),)
  35. # Add inputs and outputs from these tool invocations to the build variables
  36. EXECUTABLES += \
  37. dosim-v1.elf \
  38. SIZE_OUTPUT += \
  39. default.size.stdout \
  40. OBJDUMP_LIST += \
  41. dosim-v1.list \
  42. OBJCOPY_BIN += \
  43. dosim-v1.bin \
  44. # All Target
  45. all: main-build
  46. # Main-build Target
  47. main-build: dosim-v1.elf secondary-outputs
  48. # Tool invocations
  49. dosim-v1.elf: $(OBJS) $(USER_OBJS) /home/radioman/work/detector/dosimeter/stm32workspace/dosim-v1/STM32L151CBTXA_FLASH.ld makefile objects.list $(OPTIONAL_TOOL_DEPS)
  50. arm-none-eabi-gcc -o "dosim-v1.elf" @"objects.list" $(USER_OBJS) $(LIBS) -mcpu=cortex-m3 -T"/home/radioman/work/detector/dosimeter/stm32workspace/dosim-v1/STM32L151CBTXA_FLASH.ld" --specs=nosys.specs -Wl,-Map="dosim-v1.map" -Wl,--gc-sections -static --specs=nano.specs -mfloat-abi=soft -mthumb -u _printf_float -Wl,--start-group -lc -lm -Wl,--end-group
  51. @echo 'Finished building target: $@'
  52. @echo ' '
  53. default.size.stdout: $(EXECUTABLES) makefile objects.list $(OPTIONAL_TOOL_DEPS)
  54. arm-none-eabi-size $(EXECUTABLES)
  55. @echo 'Finished building: $@'
  56. @echo ' '
  57. dosim-v1.list: $(EXECUTABLES) makefile objects.list $(OPTIONAL_TOOL_DEPS)
  58. arm-none-eabi-objdump -h -S $(EXECUTABLES) > "dosim-v1.list"
  59. @echo 'Finished building: $@'
  60. @echo ' '
  61. dosim-v1.bin: $(EXECUTABLES) makefile objects.list $(OPTIONAL_TOOL_DEPS)
  62. arm-none-eabi-objcopy -O binary $(EXECUTABLES) "dosim-v1.bin"
  63. @echo 'Finished building: $@'
  64. @echo ' '
  65. # Other Targets
  66. clean:
  67. -$(RM) $(SIZE_OUTPUT)$(OBJDUMP_LIST)$(EXECUTABLES)$(OBJS)$(S_DEPS)$(S_UPPER_DEPS)$(C_DEPS)$(OBJCOPY_BIN) dosim-v1.elf
  68. -@echo ' '
  69. secondary-outputs: $(SIZE_OUTPUT) $(OBJDUMP_LIST) $(OBJCOPY_BIN)
  70. fail-specified-linker-script-missing:
  71. @echo 'Error: Cannot find the specified linker script. Check the linker settings in the build configuration.'
  72. @exit 2
  73. warn-no-linker-script-specified:
  74. @echo 'Warning: No linker script specified. Check the linker settings in the build configuration.'
  75. .PHONY: all clean dependents fail-specified-linker-script-missing warn-no-linker-script-specified
  76. -include ../makefile.targets