makefile 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. ################################################################################
  2. # Automatically-generated file. Do not edit!
  3. ################################################################################
  4. -include ../makefile.init
  5. RM := rm -rf
  6. # All of the sources participating in the build are defined here
  7. -include sources.mk
  8. -include startup/subdir.mk
  9. -include Src/subdir.mk
  10. -include Source/subdir.mk
  11. -include Drivers/STM32F4xx_HAL_Driver/Src/subdir.mk
  12. -include subdir.mk
  13. -include objects.mk
  14. ifneq ($(MAKECMDGOALS),clean)
  15. ifneq ($(strip $(S_UPPER_DEPS)),)
  16. -include $(S_UPPER_DEPS)
  17. endif
  18. ifneq ($(strip $(C_DEPS)),)
  19. -include $(C_DEPS)
  20. endif
  21. endif
  22. -include ../makefile.defs
  23. # Add inputs and outputs from these tool invocations to the build variables
  24. # All Target
  25. all: Init.elf
  26. # Tool invocations
  27. Init.elf: $(OBJS) $(USER_OBJS) ../STM32F401RCTx_FLASH.ld
  28. @echo 'Building target: $@'
  29. @echo 'Invoking: MCU GCC Linker'
  30. arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -specs=nosys.specs -specs=nano.specs -T"../STM32F401RCTx_FLASH.ld" -Wl,-Map=output.map -Wl,--gc-sections -o "Init.elf" @"objects.list" $(USER_OBJS) $(LIBS) -lm
  31. @echo 'Finished building target: $@'
  32. @echo ' '
  33. $(MAKE) --no-print-directory post-build
  34. # Other Targets
  35. clean:
  36. -$(RM) *
  37. -@echo ' '
  38. post-build:
  39. -@echo 'Generating hex and Printing size information:'
  40. arm-none-eabi-objcopy -O ihex "Init.elf" "Init.hex"
  41. arm-none-eabi-size "Init.elf"
  42. -@echo ' '
  43. .PHONY: all clean dependents
  44. .SECONDARY: post-build
  45. -include ../makefile.targets