博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
GNU make manual 翻译(十九)
阅读量:7297 次
发布时间:2019-06-30

本文共 955 字,大约阅读时间需要 3 分钟。

继续翻译
复制代码
   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。
后文待续
本文转自健哥的数据花园博客园博客,原文链接:http://www.cnblogs.com/gaojian/archive/2012/09/13/2683361.html,如需转载请自行联系原作者
你可能感兴趣的文章
今天去参加了“欧特克高端影视动画解决方案研讨会”
查看>>
fatal error C1076: compiler limit : internal heap limit reached; use /Zm to specify a higher limit
查看>>
python中type、object与class之间关系(一切皆对象)
查看>>
Delphi中ShellExecute的妙用
查看>>
汽车常识全面介绍 - 安全防护
查看>>
26/02/2009 ECONOMICS REPORT - Obama Proposes $3.5 Trillion Budget for 2010
查看>>
Installing GCC 简单方法
查看>>
Thinkphp中验证码不显示解决办法
查看>>
ASP.NET MVC如何做一个简单的非法登录拦截
查看>>
SqlServer 临时表、表变量、函数 替代游标
查看>>
详解C# Tuple VS ValueTuple(元组类 VS 值元组)
查看>>
Js操作Select大全(取值、设置选中等等)
查看>>
fragment的生命周期
查看>>
java集合框架之比较器Comparator、Comparable
查看>>
hdu 4119 (模拟+字符串)成都现场赛I题
查看>>
pytho 小坑
查看>>
【BZOJ 5125】小Q的书架
查看>>
Java多线程系列 基础篇02 线程的创建和运行
查看>>
eclipse 下面的folder,source folder,package的区别与作用
查看>>
Oracle rac集群环境中的特殊问题
查看>>