makefile 966 B

1234567891011121314151617181920212223242526
  1. #TI_CCPATH=/home/cwuser/Downloads/ti-cgt-arm_16.9.6.LTS
  2. #TI_CC=$(TI_CCPATH)/bin/armcl
  3. #TI_CCINCLUDE+=$(TI_CCPATH)/include/
  4. #TI_CCLIB=$(TI_CCPATH)/lib/libc.a
  5. #SRC+=$(wildcard *.c)
  6. #SSRC+=$(wildcard startup/*.c)
  7. #TI_CCFLAGS+= -g -O4 --code_state=16 -mv7M3 -me -ual --abi=eabi --gen_func_subsections=on --define=CC2538_USE_ALTERNATE_INTERRUPT_MAP
  8. #TI_LIBFLAGS+= --xml_link_info="link.xml" --rom_model --heap_size=0 --stack_size=256 --map_file bar.map
  9. #assembly:
  10. # $(TI_CC) $(TI_CCFLAGS) $(SSRC) -I $(TI_CCINCLUDE) -n
  11. #TI:
  12. # $(TI_CC) $(SRC) $(SSRC) $(TI_CCFLAGS) -I $(TI_CCINCLUDE) -z $(TI_LIBFLAGS) --library=$(TI_CCLIB) --output_file=myoutput.out cx2538xf53_ccs.cmd
  13. #TI Stuff not needed anymore
  14. #####################GCC#####################################
  15. CC=arm-none-eabi-gcc
  16. CFLAGS=--specs=nosys.specs -mcpu=cortex-m3 -mthumb
  17. SRC=$(wildcard *.c)
  18. LFLAGS=-Map,foo.map
  19. ASRC=start.S
  20. gcc:
  21. $(CC) $(SRC) $(ASRC) $(CFLAGS) -o test.out -T LinkerFile.ld -Wl,$(LFLAGS)