makefile
来自「《DSP系统入门与实践》」· 代码 · 共 50 行
TXT
50 行
# Makefile for creation of the program named by the PROG variable
#
# The following naming conventions are used by this makefile:
# <prog>.asm - C54 assembly language source file
# <prog>.obj - C54 object file (compiled/assembled source)
# <prog>.out - C54 executable (fully linked program)
# <prog>cfg.s54 - configuration assembly source file generated
# by Configuration Tool
# <prog>cfg.h54 - configuration assembly header file generated
# by Configuration Tool
# <prog>cfg.cmd - configuration linker command file generated
# by Configuration Tool
#
TI_DIR := $(subst \,/,$(TI_DIR))
include $(TI_DIR)/c5400/bios/include/c54rules.mak
#
# Compiler, assembler, and linker options.
#
# -g enable symbolic debugging
CC54OPTS = -g
# -g enable symbolic debugging
AS54OPTS = -g
# -c ROM autoinotoalization model
# -stack 0x400 set C stack syze to 0x400 words
# -heap 0x400 set heap size to 0x400 words
# -q quiet run
LD54OPTS = -c -stack 0x400 -heap 0x400 -q
PROG = hello
OBJS = vectors.obj
LIBS = -lrts.lib
CMDS = $(PROG).cmd
#
# Targets:
#
all:: $(PROG).out
$(PROG).out: $(OBJS) $(CMDS)
$(PROG).obj:
.clean clean::
@ echo removing object files and binaries ...
@$(REMOVE) -f *.obj *.out *.lst *.map
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?