日历

2008 9.5 Fri
 123456
78910111213
14151617181920
21222324252627
282930    
«» 2008 - 9 «»

文章搜索

日志文章

2008年01月04日 10:05:46

Overview of make

本文介绍 GNU make。为了准确,本文引用英语原文为主,作为学习笔记。
The make utility automatically determines which pieces of a large program need to be recompiled, and issues commands to recompile them.

GNU make conforms to section 6.2 of IEEE Standard 1003.2-1992 (POSIX.2).

You can use make with any programming language (不仅仅包括linux下常见的C) whose compiler can be run with a shell command. Indeed, make is not limited to programs. You can use it to describe any task where some files must be updated automatically from others whenever the others change.

To prepare to use make, you must write a file called the makefile that describes the relationships among files in your program and provides commands for updating each file. In a program, typically, the executable file is updated from object files, which are in turn made by compiling source files.

Once a suitable makefile exists, each time you change some source files, this simple shell command:

make

suffices to perform all necessary recompilations. The make program uses the makefile data base and the last-modification times of the files to decide which of the files need to be updated. For each of those files, it issues the commands recorded in the data base.

来源:http://sunsite.ualberta.ca/Documentation/Gnu/make-3.79/html_chapter/make_toc.html
这个网址上对make和makefile的介绍很权威,很详细,请参考。




Tags: make   makefile   Overview  

类别: Linux下 C/C++ 程序设计 |  评论(1) |  浏览(642) |  收藏
1楼 [匿名]ymwa9noe 2008年08月15日 11:50:12 Says:
%5Burl=http://www.lxwltg.com/%5D%E5%88%9B%E9%B8%BF%E8%BD%AF%E4%BB%B6%EF%BC%8C%E7%8E%B0%E5%9C%A8%E5%8F%AF%E4%BB%A5%E5%90%914200%E5%AE%B6%E5%9B%BD%E5%86%85%E5%88%86%E7%B1%BB%E4%BF%A1%E6%81%AF%E6%B8%AF%E5%8F%91%E5%B8%83%E4%BE%9B%E6%B1%82%E4%BF%A1%E6%81%AF%EF%BC%8C600%E5%AE%B6%E7%9A%84%E6%90%9C%E7%B4%A2%E5%BC%95%E6%93%8E%E7%99%BB%E9%99%86%EF%BC%8C800%E5%AE%B6%E7%9A%84%E9%BB%84%E9%A1%B5%E7%99%BB%E9%99%86%EF%BC%8C%E5%B9%B6%E4%B8%94%E5%8C%85%E6%8B%AC36000%E4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