makefile

来自「SH 的 Diab C源码。包括启动程序crt0.s」· 代码 · 共 31 行

TXT
31
字号
# example/sh/makefile: makefile for Bubble Sort example program.## Target: SH, ELF, no floating point (-tSH3EN).#         Link for execution by rtasim library (-t...:rtasim).OBJECTS = crt0.o bubble.o swap.oTARGET = -tSH3EN:windissLFLAGS = $(TARGET) -m6LIBS   = -lc -limplbubble.out : $(OBJECTS) bubble.dld	dld $(LFLAGS) -o bubble.out $(OBJECTS) $(LIBS)  bubble.dld > bubble.map.c.o :	dcc $(TARGET) -c -o $*.o $<.s.o :	das $(TARGET) $<clean :	rm *.o bubble.out bubble.map.SUFFIXES: .s   # required by some makes# Notes:# - OBJECTS     Put crt0.o first so dld will link it first.# - dld         -lc: link libc.a from directory selected by -tSH3EN:rtasim.# - dcc         Add -g for debugging, -XO for highly optimized code.# - das         Add -g for debugging.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?