makefile
来自「dsp6713开发板的许多例程.对入门特别有用」· 代码 · 共 35 行
TXT
35 行
#
# ======== makefile ========
#
# This "top level" make file can be used with GNU's make utility
# to (re)build XDAS examples
#
# To (re)build from scratch type the following:
# gmake clean
# gmake
#
# subdirs = list of all sub-directories containing a makefile
# submake = a definition to perform a sub-make with an embedded new
# line. Do not remove the blank line! This line is required
# to ensure that the $(foreach ...) function used below
# generates a separate line for each sub-directory
# makeall = recursive sub-make for each directory defined in $(subdirs)
#
subdirs = $(dir $(wildcard */makefile))
define submake
$(MAKE) -C $(var) $@
endef
makeall = $(foreach var,$(subdirs),$(submake))
all:
@echo making all files in the directories $(subdirs) ...
+@$(makeall)
clean::
@echo "cleaning $(subdirs) ..."
@$(makeall)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?