Makefile.stm32f2 935 B

1234567891011121314151617181920212223242526
  1. VPATH += :$(HALPATH)/stm32f2
  2. SRC += stm32f2_hal.c stm32f2_hal_lowlevel.c stm32f2_sysmem.c
  3. EXTRAINCDIRS += $(HALPATH)/stm32f2 $(HALPATH)/stm32f2/CMSIS $(HALPATH)/stm32f2/CMSIS/core $(HALPATH)/stm32f2/CMSIS/device $(HALPATH)/stm32f2/Legacy
  4. ASRC += stm32f2_startup.S
  5. MCU_FLAGS = -mcpu=cortex-m3
  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 -fmessage-length=0 -ffunction-sections
  15. CPPFLAGS += -mthumb -mfloat-abi=soft -fmessage-length=0 -ffunction-sections
  16. ASFLAGS += -mthumb -mfloat-abi=soft -fmessage-length=0 -ffunction-sections
  17. CDEFS += -DSTM32F205RETx -DSTM32F2 -DSTM32 -DDEBUG
  18. CPPDEFS += -DSTM32F205RETx -DSTM32F2 -DSTM32 -DDEBUG
  19. LDFLAGS += --specs=nano.specs -T $(HALPATH)/stm32f2/LinkerScript.ld -Wl,--gc-sections -lm