Makefile.stm32f1 897 B

123456789101112131415161718192021222324252627
  1. VPATH += :$(HALPATH)/stm32f1
  2. SRC += stm32f1_hal.c stm32f1_hal_lowlevel.c
  3. EXTRAINCDIRS += $(HALPATH)/stm32f1 $(HALPATH)/stm32f1/CMSIS $(HALPATH)/stm32f1/CMSIS/core $(HALPATH)/stm32f1/CMSIS/device $(HALPATH)/stm32f1/Legacy
  4. ASRC += stm32f1_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 -ffunction-sections
  15. CPPFLAGS += -mthumb -mfloat-abi=soft -ffunction-sections
  16. ASFLAGS += -mthumb -mfloat-abi=soft -ffunction-sections
  17. CDEFS += -DSTM32F100xB -DSTM32F1 -DSTM32 -DDEBUG
  18. CPPDEFS += -DSTM32F100xB -DSTM32F1 -DSTM32 -DDEBUG
  19. LDFLAGS += --specs=nano.specs -T $(HALPATH)/stm32f1/LinkerScript.ld -Wl,--gc-sections -lm
  20. LDFLAGS += -mthumb -mcpu=cortex-m3