Makefile.efm32tg11b 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. VPATH += :$(HALPATH)/efm32tg11b
  2. VPATH += :$(HALPATH)/silabs_sdk/platform/Device/SiliconLabs/EFM32TG11B/Source/GCC
  3. VPATH += :$(HALPATH)/silabs_sdk/platform/Device/SiliconLabs/EFM32TG11B/Source
  4. VPATH += :$(HALPATH)/silabs_sdk/platform/emlib/src
  5. SRC += system_efm32tg11b.c efm32tg11b_hal.c
  6. ASRC += startup_efm32tg11b.S
  7. EXTRAINCDIRS += $(HALPATH)/efm32tg11b
  8. EXTRAINCDIRS += $(HALPATH)/silabs_sdk/platform/CMSIS/Include
  9. EXTRAINCDIRS += $(HALPATH)/silabs_sdk/platform/Device/SiliconLabs/EFM32TG11B/Include
  10. MCU_FLAGS = -mcpu=cortex-m0plus
  11. CC = arm-none-eabi-gcc
  12. OBJCOPY = arm-none-eabi-objcopy
  13. OBJDUMP = arm-none-eabi-objdump
  14. SIZE = arm-none-eabi-size
  15. AR = arm-none-eabi-ar rcs
  16. NM = arm-none-eabi-nm
  17. #Output Format = Binary for this target
  18. FORMAT = binary
  19. CFLAGS += -gdwarf-2 -mthumb -fmessage-length=0 -mno-sched-prolog -fno-builtin -ffunction-sections -fdata-sections
  20. CPPFLAGS += $(CFLAGS)
  21. ASFLAGS += $(CFLAGS)
  22. CDEFS += -DEFM32TG11B340F64GQ48
  23. #-D__STARTUP_COPY_MULTIPLE -D__STARTUP_CLEAR_BSS_MULTIPLE
  24. LDFLAGS += --specs=nano.specs -T $(HALPATH)/silabs_sdk/platform/Device/SiliconLabs/EFM32TG11B/Source/GCC/efm32tg11b.ld -Wl,--gc-sections -Wl,--start-group -lgcc -lc -lnosys -Wl,--end-group -lm