Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Buy Now $31.99
Standard view
Full view
of .
Save to My Library
Look up keyword or section
Like this
5Activity

Table Of Contents

Foreword
Preface
PART I
I.Basic Concepts
Chapter 1
CHAPTER 1
How to Write a Simple Makefile
Targets and Prerequisites
Dependency Checking
Minimizing Rebuilds
Invoking make
Chapter 2
CHAPTER 2
Rules
Explicit Rules
Variables
Automatic Variables
The Implicit Rules Database
Special Targets
Automatic Dependency Generation
Managing Libraries
Double-Colon Rules
Chapter 3
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
.VARIABLES
Chapter 4
CHAPTER 4
Functions
Built-in Functions
Advanced User-Defined Functions
Chapter 5
CHAPTER 5
Commands
Parsing Commands
Which Shell to Use
Empty Commands
Recursive make
Nonrecursive make
Separating Source and Binary
Read-Only Source
Dependency Generation
Supporting Multiple Binary Trees
Partial Source Trees
Reference Builds, Libraries, and Installers
Chapter 9
CHAPTER 9
Java
Alternatives to make
Compiling Java
Managing Jars
Reference Trees and Third-Party Jars
Enterprise JavaBeans
Chapter 10
CHAPTER 10
Improving the Performance of make
Benchmarking
Identifying and Handling Bottlenecks
Parallel make
Distributed make
Chapter 11
CHAPTER 11
Example Makefiles
The Linux Kernel Makefile
Command-Line Options
Managing Command Echo
Debugging Makefiles
Debugging Features of make
Writing Code for Debugging
Good Coding Practices
Debugging Techniques
Common Error Messages
PART III
III.Appendixes
Running make
-B
-e
The Outer Limits
GNU Free Documentation License— GNU Project—Free Software Foundation (FSF)
Index
0 of .
Results for:
No results containing your search query
P. 1
Managing Projects with GNU Make

Managing Projects with GNU Make

Ratings:

4.0

(10)
|Views: 1,629 |Likes:

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 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.

More info:

Publish date: Nov 19, 2004
Added to Scribd: May 16, 2009
Copyright:Traditional Copyright: All rights reservedISBN:9780596523169
List Price: $31.99 Buy Now

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
See more
See less

07/31/2014

302

9780596523169

$31.99

USD

pdf

original

You're Reading a Free Preview
Pages 13 to 36 are not shown in this preview.
You're Reading a Free Preview
Pages 49 to 117 are not shown in this preview.
You're Reading a Free Preview
Pages 130 to 141 are not shown in this preview.
You're Reading a Free Preview
Pages 163 to 302 are not shown in this preview.

Activity (5)

You've already reviewed this. Edit your review.
ptaff_2 reviewed this
Rated 4/5
I found the complexity level of this book just right for me; I've been toying with simple Makefiles for years and couldn't figure out some inconsistencies. The author explains pitfalls and common mistakes, the Makefile parsing process and the subtleties of variable assignment, which I found very valuable. I now feel ready to plunge in sterile reference manuals. Though it doesn't address autoconf which is possibly the most popular user of make, the book packs enough examples and thorough explanations to be worth its weight.
1 thousand reads
1 hundred reads
books_uk liked this

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->