芯路恒电子技术论坛

 找回密码
 立即注册
热搜: 合集
查看: 5643|回复: 1

make 编译工具的参数简介

[复制链接]
  • TA的每日心情
    开心
    2018-6-1 20:44
  • 5

    主题

    5

    帖子

    26

    积分

    新手上路

    Rank: 2

    积分
    26
    发表于 2018-6-1 21:04:48 | 显示全部楼层 |阅读模式
    Usage: make [options] [target] ...
    Options: //选项
      -b, -m                                 Ignored for compatibility.//忽略兼容性
      -B, --always-make               Unconditionally make all targets.//无条件make所有目标
      -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.//在执行时忽略所有的错误,和-k参数结合使用能够得到所有的编译错误信息
      -I DIRECTORY, --include-dir=DIRECTORY  Search DIRECTORY for included makefiles. //指定一个被包含makefile的搜索目标。可以使用多个"-i"参数来指定多个目标
      -j [N], --jobs[=N]                 Allow N jobs at once; infinite jobs with no arg. //同时允许N个任务;无参数表明允许无限个任务
      -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. //使用软连接及软连接目标中修改时间较晚的一个
      -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.//touch 目标而不是重新创建它们
      --trace                                 Print tracing information. //打印tracing 信息
      -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默认开启
      -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.//当引用未定义变量的时候发出警告

    越是困难,越要前行。
    回复

    使用道具 举报

  • TA的每日心情
    开心
    2022-6-29 15:57
  • 13

    主题

    246

    帖子

    3625

    积分

    超级版主

    Rank: 8Rank: 8

    积分
    3625
    发表于 2018-6-3 16:23:14 | 显示全部楼层
    感谢楼主分享~
    回复 支持 反对

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    QQ|小黑屋|Archiver|芯路恒电子技术论坛 |鄂ICP备2021003648号

    GMT+8, 2024-4-19 10:03 , Processed in 0.118047 second(s), 32 queries .

    Powered by Discuz! X3.4

    © 2001-2017 Comsenz Inc. Template By 【未来科技】【 www.wekei.cn 】

    快速回复 返回顶部 返回列表