zoukankan      html  css  js  c++  java
  • GNU make manual 翻译(十九)

    继续翻译

       After recompiling whichever object files need it, `make' decides  
    whether to relink `edit'.  This must be done if the file `edit' does
    not exist, or if any of the object files are newer than it.  If an 
    object file was just recompiled, it is now newer than `edit', so `edit' 
    is relinked.                          
                            
       Thus, if we change the file `insert.c' and run `make', `make' will 
    compile that file to update `insert.o', and then link `edit'.  If we 
    change the file `command.h' and run `make', `make' will recompile the 
    object files `kbd.o', `command.o' and `files.o' and then link the file 
    `edit'.                        

    当重新编译了目标文件,make 会判断是否需要重新链接 edit.

    如果 edit 尚不存在,则必须链接,或者某个新得到的 目标文件比 edit 心,也需要链接。

    如果某目标文件刚被重新变异,它会比edit 新,所以 edit 会被重新链接。

    因此,如果我们改变了 insert.c 然后运行 make, make 会编译此文件以更新 insert.o,

    然后链接 edit。

    如果我们改变了 command.h 然后运行 make , make 会 重新编译 kdo.o,command.o 和 files.o,然后链接文件 edit。

    后文待续

  • 相关阅读:
    启动容器失败:endpoint with name cop already exists in network host.
    docker定时任务执行脚本报错:the input device is not a TTY
    期末总结
    云图学习
    豆瓣top250
    爬取学习
    爬取图片
    爬取学习bs4
    爬取学习 屠戮盗版天堂
    爬取学习
  • 原文地址:https://www.cnblogs.com/gaojian/p/2683361.html
Copyright © 2011-2022 走看看