makefile

来自「1. 8623L平台」· 代码 · 共 28 行

TXT
28
字号
TARGET_TYPE := BINARY_FILETARGET := init_pt110.binMAIN_SRC := init.S# when building inside RMF, avoid to inherit pthread, dl, rdynamic...COMPILKIND :=LDFLAGS += -Xlinker -Ttext -Xlinker 0x0 -nostartfilesCROSS := arm-elf-ifneq ($(findstring $(MAIN_SRC), $(wildcard $(MAIN_SRC))), $(MAIN_SRC))ifneq ($(findstring init_pt110_bin.h, $(wildcard init_pt110_bin.h)), init_pt110_bin.h)$(error No target and no source, please help me!!!)endifTARGET :=MAIN_SRC :=elseendifinclude ../scripts/inc.Makefileinit_pt110_bin.h: $(TARGET)	( \	    echo "static RMuint8 init_pt110_bin[] = {" ; \	    hexdump -v -e '"\t" 8/1 "0x%02x, " "\n"' $< ; \	    echo "};"\	) | perl -pe 's/0x\s*,//mg' > $@

⌨️ 快捷键说明

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