{"id":2002,"date":"2016-11-25T19:38:21","date_gmt":"2016-11-25T11:38:21","guid":{"rendered":"http:\/\/www.51cos.com\/?p=2002"},"modified":"2016-11-25T19:38:21","modified_gmt":"2016-11-25T11:38:21","slug":"makefile-%e7%ae%80%e5%8d%95%e7%ac%94%e8%ae%b0","status":"publish","type":"post","link":"http:\/\/www.51cos.com\/?p=2002","title":{"rendered":"makefile \u7b80\u5355\u7b14\u8bb0"},"content":{"rendered":"<p> Linux\u4e0b\u6784\u5efa\u81ea\u5df1\u7684\u5f00\u6e90\u8f6f\u4ef6\u4f7f\u7528\u7684\u662flinux\u4e0b\u81ea\u5df1\u5e26\u7684\u5f3a\u5927\u7684\u5de5\u5177:  Autoconf  libtoolize \u548cautomake .\u8fd9\u662f\u5f00\u6e90\u8f6f\u4ef6\u5fc5\u987b\u7684\u57fa\u672c\u5de5\u5177\u3002<\/p>\n<p>\u5982\u679c\u4f7f\u7528\u4e86autoconf\u548cautomake\uff0c\u9664\u4e86\u7f16\u8bd1\u5e94\u7528\u7a0b\u5e8f\uff0c\u7528\u6237\u5e76\u4e0d\u9700\u8981\u6709\u8fd9\u4e9b\u5de5\u5177\u3002<br \/>\n\u4f7f\u7528\u8fd9\u4e9b\u5de5\u5177\u7684\u76ee\u7684\u662f\u521b\u5efa\u80fd\u5728\u7528\u6237\u73af\u5883\u4f7f\u7528\u7684\u3001\u53ef\u79fb\u690d\u7684shell\u811a\u672c\u548cMakefile\u6587\u4ef6\u3002<\/p>\n<p>Autoconf\u5b9e\u9645\u4e0a\u662f\u4e00\u4e2a\u5de5\u5177\u96c6\uff0c\u5176\u4e2d\u5305\u542baclocal\u3001autoheader\u548cautoconf\u7b49\u53ef\u6267\u884c\u6587\u4ef6\u3002\u8fd9\u4e9b\u5de5\u5177\u751f\u6210\u4e00\u4e2a\u53ef\u79fb\u690d\u7684shell\u811a\u672c\u2014configure\uff0cconfigure\u548c\u8f6f\u4ef6\u5305\u4e00\u8d77\u53d1\u5e03\u7ed9\u7528\u6237\u3002<\/p>\n<p>\u5b83\u63a2\u67e5\u7f16\u8bd1\u7cfb\u7edf\uff0c\u751f\u6210 Makefile\u6587\u4ef6\u548c\u4e00\u4e2a\u7279\u6b8a\u7684\u5934\u6587\u4ef6config.h,\u7531configure\u751f\u6210\u7684\u6587\u4ef6\u80fd\u9002\u5e94\u7528\u6237\u7cfb\u7edf\u7684\u7279\u5b9a\u73af\u5883\u3002<\/p>\n<p>configure\u811a\u672c\u4ece\u4e00\u4e2a\u79f0\u4e3a Makefile.in\u7684\u6a21\u677f\u6587\u4ef6\u751f\u6210\u6bcf\u4e2aMakefile\u6587\u4ef6\u3002<\/p>\n<p>\u800cMakefile.in \u662fMakefile.am \u751f\u6210\u3002<\/p>\n<p>Configure.in \u662f\u5f00\u53d1\u8005\u81ea\u5df1\u624b\u52a8\u4fee\u6539\u3002<\/p>\n<p>Makefile.am \u662f\u7531\u5f00\u53d1\u8005\u81ea\u5df1\u624b\u5199\u3002<\/p>\n<p>Libtool\u8f6f\u4ef6\u5305\u662f\u7b2c\u4e09\u4e2a\u91cd\u8981\u7684GNU\u5de5\u5177\uff0c\u5b83\u7684\u4f5c\u7528\u662f\u786e\u5b9a\u5171\u4eab\u5e93\u5728\u7279\u5b9a\u5e73\u53f0\u4e0a\u7684\u7279\u6027,\u56e0\u4e3a\u5171\u4eab\u5e93\u5728\u4e0d\u540c\u5e73\u53f0\u4e0a\u53ef\u80fd\u4f1a\u6709\u6240\u4e0d\u540c\u3002<\/p>\n<p>\u624b\u52a8\u4e66\u5199\u987e\u540d\u601d\u4e49\u5c31\u662f\u81ea\u5df1\u8df3\u8fc7configure.Scan  configure.in configure Makefile.am Makefile.in \u7684\u751f\u6210\u8fc7\u7a0b\u3002\u76f4\u63a5\u4e66\u5199Makefile \u8fd9\u79cd\u65b9\u5f0f\u53ea\u80fd\u7528\u4e8e\u76f8\u5bf9\u7b80\u5355\u7684\u6e90\u4ee3\u7801\u3002\u5982\u6709\u51e0\u4e2a\uff0c\u51e0\u5341\u4e2a\u6216\u8005\u4e0a\u767e\u4e2a\u6e90\u6587\u4ef6\u65f6\uff0c\u81ea\u5df1\u7f16\u5199Makefile\u5f80\u5f80\u662f\u53ef\u884c\u7684\uff0c\u4f46\u662f\u5982\u679c\u6211\u4eec\u6240\u7f16\u5199\u7684\u6e90\u6587\u4ef6\u6709\u51e0\u5343\uff0c\u51e0\u4e07\uff0c\u51e0\u5341\u4e07\u751a\u81f3\u66f4\u591a\u65f6\uff0c\u663e\u7136\u624b\u52a8\u4e66\u5199Makefile\u4e0d\u662f\u4e2a\u660e\u667a\u4e4b\u4e3e\u3002<\/p>\n<p>http:\/\/blog.csdn.net\/yasi_xi\/article\/details\/8072901<br \/>\nhttp:\/\/blog.csdn.net\/linux_wgl\/article\/details\/36737087<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Linux\u4e0b\u6784\u5efa\u81ea\u5df1\u7684\u5f00\u6e90\u8f6f\u4ef6\u4f7f\u7528\u7684\u662flinux\u4e0b\u81ea\u5df1\u5e26\u7684\u5f3a\u5927\u7684\u5de5\u5177: Autoconf libtoolize [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-2002","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"http:\/\/www.51cos.com\/index.php?rest_route=\/wp\/v2\/posts\/2002","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.51cos.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.51cos.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.51cos.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.51cos.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2002"}],"version-history":[{"count":1,"href":"http:\/\/www.51cos.com\/index.php?rest_route=\/wp\/v2\/posts\/2002\/revisions"}],"predecessor-version":[{"id":2003,"href":"http:\/\/www.51cos.com\/index.php?rest_route=\/wp\/v2\/posts\/2002\/revisions\/2003"}],"wp:attachment":[{"href":"http:\/\/www.51cos.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2002"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.51cos.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2002"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.51cos.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2002"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}