13.11.2014 Views

GNUPro® Toolkit GNUPro Development Tools

GNUPro® Toolkit GNUPro Development Tools

GNUPro® Toolkit GNUPro Development Tools

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Interrupting or Killing the make Tool........................................................................118<br />

Recursive Use of the make Tool................................................................................119<br />

How the MAKE Variable Works ..............................................................................119<br />

Communicating Variables to a Sub-make Utility...................................................120<br />

Communicating Options to a Sub-make Utility .....................................................122<br />

The --print-directory Option...........................................................................123<br />

Defining Canned Command Sequences....................................................................124<br />

Using Empty Commands ..........................................................................................125<br />

How to Use Variables.................................................................................................127<br />

Basics of Variable References ..................................................................................128<br />

The Two Flavors of Variables ..................................................................................129<br />

Substitution References .........................................................................................131<br />

Computed Variable Names....................................................................................132<br />

How Variables Get Their Values ..............................................................................134<br />

Setting Variables .......................................................................................................135<br />

Appending More Text to Variables ..........................................................................135<br />

The override Directive............................................................................................137<br />

Defining Variables Verbatim ....................................................................................137<br />

Variables from the Environment...............................................................................138<br />

Target-specific Variable Values................................................................................139<br />

Pattern-specific Variable Values...............................................................................140<br />

Conditional Parts of Makefiles..................................................................................141<br />

Syntax of Conditionals..............................................................................................143<br />

Conditionals That Test Flags ....................................................................................145<br />

Functions for Transforming Text .............................................................................147<br />

Function Call Syntax.................................................................................................148<br />

Functions for String Substitution and Analysis ........................................................148<br />

Functions for File Names..........................................................................................151<br />

The foreach Function...............................................................................................153<br />

The origin Function ................................................................................................155<br />

The shell Function ..................................................................................................156<br />

How to Run the make Tool .........................................................................................159<br />

Arguments to Specify the Goals ...............................................................................160<br />

Instead of Executing the Commands ........................................................................162<br />

Avoiding Recompilation of Some Files....................................................................164<br />

Overriding Variables.................................................................................................164<br />

Testing the Compilation of a Program......................................................................165<br />

Summary of make Options .........................................................................................167<br />

Implicit Rules..............................................................................................................173<br />

Using Implicit Rules .................................................................................................174<br />

Catalogue of Implicit Rules ......................................................................................175<br />

Variables Used by Implicit Rules .............................................................................179<br />

viii ■ <strong>GNUPro</strong> <strong>Development</strong> <strong>Tools</strong><br />

Red Hat <strong>GNUPro</strong> <strong>Toolkit</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!