make 是为 x86_64-pc-linux-gnu 构建的。
make 是 Linux 开发套件中的一个自动化编译控制程序。
make 从 Makefile 中读取指令, 调用 gcc ld 及相关依赖进行源代码编译。
make 所用的 Makefile 控制代码, 由 configure 脚本根据给定的参数和系统环境生成。
Voir Aussi: CMake 文档编制
基本语法
make [options] [target] ...
Options 参数
| 参数 | EN 解释 | 中文翻译 | Remarque |
|---|---|---|---|
| -b, -m | Ignored for compatibility | 忽略兼容性 | |
| -B, --always-make | Unconditionally make all targets | 无条件制作所有目标 | |
| -C DIRECTORY, --directory=DIRECTORY | Change to DIRECTORY before doing anything. | 做任何前,更改到 DIRECTORY。 | |
| -d | Print lots of debugging information. | 打印很多调试信息。 | |
| --debug[=FLAGS] | Print various types of debugging information. | 打印各种类型的调试信息。 | |
| -e, --environment-overrides | Environment variables override makefiles. | 环境变量覆盖 makefile。 | |
| --eval=STRING | Evaluate STRING as a makefile statement. | 把 STRING 估算成 makefile 语句。 | |
| -f FILE, --file=FILE, --makefile=FILE | Read FILE as a makefile. | 把 FILE 读取成 makefile。 | |
| -h, --help | Print this message and exit. | 打印此消息并退出。 | |
| -i, --ignore-errors | Ignore errors from recipes. | 忽略来自配方的错误。 | |
| -I DIRECTORY, --include-dir=DIRECTORY | Search DIRECTORY for included makefiles. | 搜索 DIRECTORY 中包括的 makefile。 | |
| -j [N], --jobs[=N] |
Allow N jobs at once; infinite jobs with no arg. |
一次允许 N 个作业; 没有 arg 无限作业。 |
|
| -k, --keep-going | Keep going when some targets can't be made. | 当无法制作某些目标时,继续前进。 | |
| -l [N], --load-average[=N], --max-load[=N] | Don't start multiple jobs unless load is below N. | 不要启动多个作业, 除非负载低于 N。 | |
| -L, --check-symlink-times | Use the latest mtime between symlinks and target. | 使用最新 mtime, 在符号链接和目标之间。 | |
| -n, --just-print, --dry-run, --recon |
Don't actually run any recipe; just print them. |
不实际运行任何配方; 只打印它们。 |
|
| -o FILE, --old-file=FILE, --assume-old=FILE | Consider FILE to be very old and don't remake it. | 考虑 FILE 很旧,且不重新制作它。 | |
| -O[TYPE], --output-sync[=TYPE] | Synchronize output of parallel jobs by TYPE. | 按 TYPE 并行作业同步输出。 | |
| -p, --print-data-base | Print make's internal database. | 打印 make 的内部数据库。 | |
| -q, --question |
Run no recipe; exit status says if up to date. |
运行没有配方; 退出状态显示是否更新。 |
|
| -r, --no-builtin-rules | Disable the built-in implicit rules. | 禁用内置隐含规则。 | |
| -R, --no-builtin-variables | Disable the built-in variable settings. | 禁用内置变量设置。 | |
| -s, --silent, --quiet | Don't echo recipes. | 不要回显配方。 | |
| -S, --no-keep-going, --stop | Turns off -k. | 关闭 -k。 | |
| -t, --touch | Touch targets instead of remaking them. | 接触目标,而不是重新制作它们。 | |
| --trace | Print tracing information. | 打印跟踪信息。 | |
| -v, --version | Print the version number of make and exit. | 打印 make 的版本号并退出。 | |
| -w, --print-directory | Print the current directory. | 打印当前目录。 | |
| --no-print-directory |
Turn off -w, even if it was turned on implicitly. |
关闭 -w, 即使它已隐含打开。 |
|
| -W FILE, --what-if=FILE, --new-file=FILE, --assume-new=FILE | Consider FILE to be infinitely new. | 考虑 FILE 是无限的新。 | |
| --warn-undefined-variables | Warn when an undefined variable is referenced. | 警告,当引用未定义的变量时。 |
| Fonction | Commande | 文字解释 | 示例 | 示例解释 |
|---|---|---|---|---|
| Version | make -v | 展示版本信息 | ||
| make --version | ||||
| 帮助 | make -h | 展示帮助信息 | ||
| make --help |
版权声明: 本文为独家原创稿件,版权归 Logiciel Numérique Heureux ,未经许可不得转载。