[xboard]07-Makefile逐行分析1
文章目录
1 版本信息
如下定义了版本信息,分别为主版本号、补丁版本号、次版本号、附加版本信息,名称等,这些与kernel的信息一致
# SPDX-License-Identifier: GPL-2.0+VERSION = 2020
PATCHLEVEL = 10
SUBLEVEL =
EXTRAVERSION =
NAME =
2 MAKEFLAGS
从make --help可知其中rR表示禁止使用make内置的隐含规则和变量定义,–include-dir表示指定包含makefile文件的路径,CURDIR表示当前路径,即本Makefile文件的所在路径。即指定包含目录,提升构建效率
-I DIRECTORY, --include-dir=DIRECTORY Search DIRECTORY for included makefiles.
-r, --no-builtin-rules Disable the built-in implicit rules.
-R, --no-builtin-variables Disable the built-in variable settings.
-w, --print-directory Print the current directory.
–no-print-directory Turn off -w, even if it was turned on implicitly.