Makefile.sam4l 718 B

123456789101112131415161718192021222324
  1. VPATH += :$(HALPATH)/sam4l
  2. SRC += startup_sam4l.c sam4l_hal.c hwaes.c uart.c
  3. EXTRAINCDIRS += $(HALPATH)/sam4l $(HALPATH)/sam4l/asf/sam4l4/include $(HALPATH)/saml11/CMSIS
  4. MCU_FLAGS = -mcpu=cortex-m4
  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 -mthumb -mlong-calls -mfloat-abi=soft
  14. CPPFLAGS += $(CFLAGS)
  15. ASFLAGS += -mthumb -mfloat-abi=soft
  16. CDEFS += -D__ATSAM4LC2A__
  17. CPPDEFS += $(CDEFS)
  18. LDFLAGS += -specs=nano.specs -specs=nosys.specs -T $(HALPATH)/sam4l/sam4lc2a_flash.ld -Wl,--gc-sections -lm