Makefile.stm32f0 951 B

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