Make - a tutorial

There are some examples based on this tutorial here.

Table of Contents

  1. Description
    1. A simple compilation
    2. Compiling with several files
    3. Separate compilation
    4. Separate compilation steps
    5. Splitting your C Program
  2. Dependencies
    1. Dependency Graphs
    2. How dependency works
    3. How does make do it?
  3. The makefile
    1. Translating the dependency graph
    2. Listing dependencies
    3. Using the Makefile with make
  4. Shortcuts for make
    1. Macros in make
    2. Special macros
    3. Predefined rules
    4. Miscellaneous shortcuts
  5. Advanced features
    1. Special dependencies
    2. Custom suffixes and rules

Author: Ben Yoshino (

Comments, Questions? | E-mail:

Last updated on Monday, February 05, 2001
Copyright © 2001 University of Hawai`i, College of Engineering, Computer Facility
All rights reserved.

PDF version of this tutorial: here.
Don't worry only the title page is
not in English