作者: Robert Mecklenburg
出版社: O'Reilly Media
出版年: 2004-11-19
页数: 320
定价: USD 29.95
装帧: Paperback
ISBN: 9780596006105
出版社: O'Reilly Media
出版年: 2004-11-19
页数: 320
定价: USD 29.95
装帧: Paperback
ISBN: 9780596006105
内容简介 · · · · · ·
The utility simply known as "make" is one of the most enduring features of both Unix and other operating systems. First invented in the 1970s, "make" still turns up to this day as the central engine in most programming projects; it even builds the Linux kernel. In the third edition of the classic "Managing Projects with GNU make," readers will learn why this utility continues t... (展开全部)
The utility simply known as "make" is one of the most enduring features of both Unix and other operating systems. First invented in the 1970s, "make" still turns up to this day as the central engine in most programming projects; it even builds the Linux kernel. In the third edition of the classic "Managing Projects with GNU make," readers will learn why this utility continues to hold its top position in project build software, despite many younger competitors.
The premise behind "make" is simple: after you change source files and want to rebuild your program or other output files, "make" checks timestamps to see what has changed and rebuilds just what you need, without wasting time rebuilding other files. But on top of this simple principle, "make" layers a rich collection of options that lets you manipulate multiple directories, build different versions of programs for different platforms, and customize your builds in other ways.
This edition focuses on the GNU version of "make," which has deservedly become the industry standard. GNU make contains powerful extensions that are explored in this book. It is also popular because it is free software and provides a version for almost every platform, including a version for Microsoft Windows as part of the free Cygwin project. "Managing Projects with GNU make," 3rd Edition provides guidelines on meeting the needs of large, modern projects. Also added are a number of interesting advanced topics such as portability, parallelism, and use with Java.
Robert Mecklenburg, author of the third edition, has used "make" for decades with a variety of platforms and languages. In this book he zealously lays forth how to get your builds to be as efficient as possible, reduce maintenance, avoid errors, and thoroughly understand what "make" is doing. Chapters on C++ and Java provide makefile entries optimized for projects in those languages. The author even includes a discussion of the makefile used to build the book.
The premise behind "make" is simple: after you change source files and want to rebuild your program or other output files, "make" checks timestamps to see what has changed and rebuilds just what you need, without wasting time rebuilding other files. But on top of this simple principle, "make" layers a rich collection of options that lets you manipulate multiple directories, build different versions of programs for different platforms, and customize your builds in other ways.
This edition focuses on the GNU version of "make," which has deservedly become the industry standard. GNU make contains powerful extensions that are explored in this book. It is also popular because it is free software and provides a version for almost every platform, including a version for Microsoft Windows as part of the free Cygwin project. "Managing Projects with GNU make," 3rd Edition provides guidelines on meeting the needs of large, modern projects. Also added are a number of interesting advanced topics such as portability, parallelism, and use with Java.
Robert Mecklenburg, author of the third edition, has used "make" for decades with a variety of platforms and languages. In this book he zealously lays forth how to get your builds to be as efficient as possible, reduce maintenance, avoid errors, and thoroughly understand what "make" is doing. Chapters on C++ and Java provide makefile entries optimized for projects in those languages. The author even includes a discussion of the makefile used to build the book.
作者简介 · · · · · ·
Robert Mecklenburg began using Unix as a student in 1977 and has been programming professionally for 23 years. His make experience started in 1982 at NASA with Unix version 7. Robert received his Ph.D. in Computer Science from the University of Utah in 1991. Since then he has worked in many fields ranging from mechanical CAD to bioinformatics, and brings his extensive experienc... (展开全部)
Robert Mecklenburg began using Unix as a student in 1977 and has been programming professionally for 23 years. His make experience started in 1982 at NASA with Unix version 7. Robert received his Ph.D. in Computer Science from the University of Utah in 1991. Since then he has worked in many fields ranging from mechanical CAD to bioinformatics, and brings his extensive experience in C++, Java and Lisp to bear on the problems of project management with make.
按有用程度 按页码先后 最新笔记
-
第109页
作为顶层makefile,嵌套make子目录: $(player) $(libraries) : $(MAKE) --directory=$@ make的选项: --directory (-C) --file (-F) --old-file (-o) --new-file (-W) --touch (-T) --just-print (-n) --question (-q) (更多)作为顶层makefile,嵌套make子目录:
make的选项:--directory (-C)--file (-F)--old-file (-o)--new-file (-W)--touch (-T)--just-print (-n)--question (-q) (收起)$(player) $(libraries) : $(MAKE) --directory=$@
2011-08-31 23:06:13 1回应
-
第4页
The first rule seen by make is used as default rule. A rule consists of three parts: the target, the prerequisites, and the commands to perform. The target is the file or thing that must be made. The prerequisites or dependents are those files that must exist before the target can be successfully created. And the commands are those shell commands that will create the target from the prerequisit... (更多)The first rule seen by make is used as default rule. A rule consists of three parts: the target, the prerequisites, and the commands to perform.
The target is the file or thing that must be made. The prerequisites or dependents are those files that must exist before the target can be successfully created. And the commands are those shell commands that will create the target from the prerequisites.
(收起)foo.o: foo.c foo.h gcc -c foo.c
2011-08-26 04:53:43 回应
-
第6页
... the order in which commands are executed by make are nearly the opposite to the order they occur in the makefile. This top-down style is common in makefiles. Usually the most general form of target is specified first in the makefile and the details are left for later. (更多)
(收起)... the order in which commands are executed by make are nearly the opposite to the order they occur in the makefile. This top-down style is common in makefiles. Usually the most general form of target is specified first in the makefile and the details are left for later.
2011-08-26 09:50:32 回应
-
第13页
A target can be a label representing a command script. ... a standard first target in many makefiles is called all. Targets that do not represent files are known as phony targets. Another standard phony target is clean. clean: rm -f *.o lexer.c make cannot distinguish between a file target and phony target. 可以用 .PHONY去声明一个target,这就说明这个target不是实际的文件,而是命令... (更多)A target can be a label representing a command script.... a standard first target in many makefiles is called all. Targets that do not represent files are known as phony targets. Another standard phony target is clean. clean: rm -f *.o lexer.c
可以用 .PHONY去声明一个target,这就说明这个target不是实际的文件,而是命令。比如:.PHONY: cleanclean: rm -f *.o lexer.c (收起)make cannot distinguish between a file target and phony target.
2011-08-30 03:03:20 回应
-
第109页
作为顶层makefile,嵌套make子目录: $(player) $(libraries) : $(MAKE) --directory=$@ make的选项: --directory (-C) --file (-F) --old-file (-o) --new-file (-W) --touch (-T) --just-print (-n) --question (-q) (更多)作为顶层makefile,嵌套make子目录:
make的选项:--directory (-C)--file (-F)--old-file (-o)--new-file (-W)--touch (-T)--just-print (-n)--question (-q) (收起)$(player) $(libraries) : $(MAKE) --directory=$@
2011-08-31 23:06:13 1回应
"Managing Projects with GNU Make (Nutshell Handbooks)"的论坛 · · · · · ·
| Great book | 来自TonyHo | 2011-06-04 |
- > 点这儿转让 有30人想读,手里有一本闲着?
以下豆列推荐 · · · · · · (全部)
- O'Reilly & M$ Press (fcicq)
- Linux Book (asdf)
- CS (Albert)
- OS (dadandac)
- CS (ifrog)
谁读这本书?
订阅关于Managing Projects with GNU Make (Nutshell Handbooks)的评论:
feed: rss 2.0



