Contents

Distribution
The Make Program
Introduction
Command Line Arguments

The Makefile
Introduction
Description
Rules in a Makefile
Explicit Rules
Implicit Rules
Command Lines
Default Target Rule
Builtin Rules
User Defined Builtin Rules
Variables and Macros
Automatic Variables
Complex Variable names and Macro Expansions
Function Calls
Conditionals
Conditional Directives
Conditional Commands
Pragma Directive
Include Directive
Phony Directive

Building Make
Compiling
Parameters
Options
Debugging

Compatibility

Abstract:

Make is a programming utility used to automate the process of recompiling multiple interdependent source files into an output file (the goal). The Make program uses rules of inference to make the goal. The rules for making the goal are explicitly stated in an input file called the Makefile, and implicitly determined from builtin rules. Normally, the Makefile for a goal is written so that the only thing that needs to be done to recompile newly modified source files is to run the Make program.