Makefile.saml11 715 B

123456789101112131415161718192021222324
  1. VPATH += :$(HALPATH)/saml11
  2. SRC += saml11_hal.c startup_saml11e16a.c system_saml11e16a.c
  3. EXTRAINCDIRS += $(HALPATH)/saml11 $(HALPATH)/saml11/CMSIS
  4. MCU_FLAGS = -mcpu=cortex-m23
  5. CC = arm-none-eabi-gcc
  6. OBJCOPY = arm-none-eabi-objcopy
  7. OBJDUMP = arm-none-eabi-objdump
  8. SIZE = arm-none-eabi-size
  9. AR = arm-none-eabi-ar rcs
  10. NM = arm-none-eabi-nm
  11. #Output Format = Binary for this target
  12. FORMAT = binary
  13. CFLAGS += -fdata-sections -ffunction-sections -funsigned-char -funsigned-bitfields -mthumb -D_SAML11E16A -mlong-calls
  14. CPPFLAGS += $(CFLAGS)
  15. ASFLAGS += -mthumb
  16. CDEFS += -D__SAML11E16A__
  17. CPPDEFS += $(CDEFS)
  18. LDFLAGS += -specs=nano.specs -specs=nosys.specs -T $(HALPATH)/saml11/saml11e16a_flash.ld -Wl,--gc-sections -lm