-
Basic Concepts
-
Chapter 1 How to Write a Simple Makefile
- Targets and Prerequisites
- Dependency Checking
- Minimizing Rebuilds
- Invoking make
- Basic Makefile Syntax
-
Chapter 2 Rules
- Explicit Rules
- Variables
- Finding Files with VPATH and vpath
- Pattern Rules
- The Implicit Rules Database
- Special Targets
- Automatic Dependency Generation
- Managing Libraries
-
Chapter 3 Variables and Macros
- What Variables Are Used For
- Variable Types
- Macros
- When Variables Are Expanded
- Target- and Pattern-Specific Variables
- Where Variables Come From
- Conditional and include Processing
- Standard make Variables
-
Chapter 4 Functions
- User-Defined Functions
- Built-in Functions
- Advanced User-Defined Functions
-
Chapter 5 Commands
- Parsing Commands
- Which Shell to Use
- Empty Commands
- Command Environment
- Evaluating Commands
- Command-Line Limits
-
-
Advanced and Specialized Topics
-
Chapter 6 Managing Large Projects
- Recursive make
- Nonrecursive make
- Components of Large Systems
- Filesystem Layout
- Automating Builds and Testing
-
Chapter 7 Portable Makefiles
- Portability Issues
- Cygwin
- Managing Programs and Files
- Working with Nonportable Tools
- Automake
-
Chapter 8 C and C++
- Separating Source and Binary
- Read-Only Source
- Dependency Generation
- Supporting Multiple Binary Trees
- Partial Source Trees
- Reference Builds, Libraries, and Installers
-
Chapter 9 Java
- Alternatives to make
- A Generic Java Makefile
- Compiling Java
- Managing Jars
- Reference Trees and Third-Party Jars
- Enterprise JavaBeans
-
Chapter 10 Improving the Performance of make
- Benchmarking
- Identifying and Handling Bottlenecks
- Parallel make
- Distributed make
-
Chapter 11 Example Makefiles
- The Book Makefile
- The Linux Kernel Makefile
-
Chapter 12 Debugging Makefiles
- Debugging Features of make
- Writing Code for Debugging
- Common Error Messages
-
-
Appendixes
-
Appendix A Running make
-
Appendix B The Outer Limits
- Data Structures
- Arithmetic
-
Appendix C GNU Free Documentation License—GNU Project—Free Software Foundation (FSF)
- 0. PREAMBLE
- 1. APPLICABILITY AND DEFINITIONS
- 2. VERBATIM COPYING
- 3. COPYING IN QUANTITY
- 4. MODIFICATIONS
- 5. COMBINING DOCUMENTS
- 6. COLLECTIONS OF DOCUMENTS
- 7. AGGREGATION WITH INDEPENDENT WORKS
- 8. TRANSLATION
- 9. TERMINATION
- 10. FUTURE REVISIONS OF THIS LICENSE
-
-
Colophon
- Title:
- Managing Projects with GNU Make, Third Edition
- By:
- Robert Mecklenburg
- Publisher:
- O'Reilly Media
- Formats:
-
- Ebook
- Safari Books Online
- Print Release:
- November 2004
- Ebook Release:
- February 2009
- Pages:
- 304
- Print ISBN:
- 978-0-596-00610-5
- | ISBN 10:
- 0-596-00610-1
- Ebook ISBN:
- 978-0-596-10445-0
- | ISBN 10:
- 0-596-10445-6
Our look is the result of reader comments, our own experimentation, and feedback from distribution channels. Distinctive covers complement our distinctive approach to technical topics, breathing personality and life into potentially dry subjects. The animal on the cover of Managing Projects with GNU Make, Third Edition is a potto, a member of the loris family. A small primate native to the tropical forests of West Africa, the potto is 17 inches long and covered with dense, wooly, reddish brown fur. Its opposable thumbs give it an excellent grasp, leaving it well adapted to its life in the trees. The potto spends its days sleeping in crevices or holes in trees, emerging at night to hunt for food (insects, snails, and bats). Unlike many primates, the potto generally lives alone. Matt Hutchinson was the production editor for Managing Projects with GNU Make, Third Edition. Octal Publishing, Inc. provided production services. Johnna Dinse wrote the index. Adam Witwer, Jamie Peppard, and Darren Kelly provided quality control.
Edie Freedman designed the cover of this book. The cover image is a 19th-century engraving from the Dover Pictorial Archive. Clay Fernald produced the cover layout with QuarkXPress 4.1 using Adobe's ITC Garamond font.
David Futato designed the interior layout. This book was converted by Joe Wizda to FrameMaker 5.5.6 with a format conversion tool created by Erik Ray, Jason McIntosh, Neil Walls, and Mike Sierra that uses Perl and XML technologies. The text font is Linotype Birka; the heading font is Adobe Myriad Condensed; and the code font is LucasFont's TheSans Mono Condensed. The illustrations that appear in the book were produced by Robert Romano and Jessamyn Read using Macromedia FreeHand MX and Adobe Photoshop CS.
