Makefile.cc2538 583 B

1234567891011121314151617181920
  1. VPATH += :$(HALPATH)/cc2538
  2. #SRC += $(wildcard ./*.c)
  3. SRC += cc2538_hal.c cpu.c debug.c gpio.c interrupt.c ioc.c sys_ctrl.c uart.c cx2538_setup.c
  4. EXTRAINCDIRS += $(HALPATH)/cc2538
  5. ASRC += start.S
  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. FORMAT = binary
  13. CFLAGS=--specs=nosys.specs -mcpu=cortex-m3 -mthumb
  14. CPPFLAGS=--specs=nosys.specs -mcpu=cortex-m3 -mthumb
  15. ASFLAGS=--specs=nosys.specs -mcpu=cortex-m3 -mthumb
  16. LDFLAGS += -T $(HALPATH)/cc2538/LinkerFile.ld -lm