📄 makefile
字号:
# Makefile for chapter 7TCC=tcc -Otime -cCC=armcc -Otime -cAS=armasm -cpu 5TELD=armlink -oALL: ch06test.axf main1.axf main2.axf main3.axf main4.axf# Example 6.1 is built as main1.axfmain1.axf: main1.c square.s $(CC) main1.c $(AS) square.s $(LD) main1.axf main1.o square.o# Example 6.2 is built as main2.axfmain2.axf: main1.c square2.s $(TCC) main1.c $(AS) -apcs /interwork square2.s $(LD) main2.axf main1.o square2.o# Example 6.3 is built as main3.axfmain3.axf: main3.s $(AS) main3.s $(LD) main3.axf main3.o# Example 6.4 is built as main4.axfmain4.axf: main4.c sumof.s $(CC) main4.c $(AS) sumof.s $(LD) main4.axf main4.o sumof.o# Other chapter 6 examples are built in ch06test.axfFILES=ch06test.o bitstream.o matrix.o memset.o merge.o ref.o shift.o \switch.o tolower.o unalign.och06test.axf: $(FILES) $(LD) ch06test.axf $(FILES)ch06test.o: ch06test.c $(CC) ch06test.cref.o: ref.c $(CC) ref.cbitstream.o: bitstream.s $(AS) bitstream.smatrix.o: matrix.s $(AS) matrix.smemset.o: memset.s $(AS) memset.smerge.o: merge.s $(AS) merge.sshift.o: shift.s $(AS) shift.sswitch.o: switch.s $(AS) switch.stolower.o: tolower.s $(AS) tolower.sunalign.o: unalign.s $(AS) unalign.sclean: rm *.o *.axf
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -