Makefile.stm32f0_nano 961 B

12345678910111213141516171819202122232425262728
  1. VPATH += :$(HALPATH)/stm32f0
  2. VPATH += :$(HALPATH)/stm32f0_nano
  3. SRC += stm32f0_hal_nano.c stm32f0_hal_lowlevel.c
  4. EXTRAINCDIRS += $(HALPATH)/stm32f0 $(HALPATH)/stm32f0/CMSIS $(HALPATH)/stm32f0/CMSIS/core $(HALPATH)/stm32f0/CMSIS/device $(HALPATH)/stm32f0/Legacy
  5. ASRC += stm32f0_startup.S
  6. MCU_FLAGS = -mcpu=cortex-m0
  7. CC = arm-none-eabi-gcc
  8. OBJCOPY = arm-none-eabi-objcopy
  9. OBJDUMP = arm-none-eabi-objdump
  10. SIZE = arm-none-eabi-size
  11. AR = arm-none-eabi-ar rcs
  12. NM = arm-none-eabi-nm
  13. #Output Format = Binary for this target
  14. FORMAT = binary
  15. CFLAGS += -mthumb -mfloat-abi=soft -ffunction-sections
  16. CPPFLAGS += -mthumb -mfloat-abi=soft -ffunction-sections
  17. ASFLAGS += -mthumb -mfloat-abi=soft -ffunction-sections
  18. CDEFS += -DSTM32F030x6 -DSTM32F0 -DSTM32 -DDEBUG
  19. CPPDEFS += -DSTM32F030x6 -DSTM32F0 -DSTM32 -DDEBUG
  20. LDFLAGS += --specs=nano.specs --specs=nosys.specs -T $(HALPATH)/stm32f0_nano/LinkerScript.ld -Wl,--gc-sections -lm
  21. LDFLAGS += -mthumb -mcpu=cortex-m0