Next Previous Contents

An introduction to Makefiles

Garrett Mitchener,

January 19, 1999

The make program on Unix is great for managing compiled projects. It allows you to specify which files are created from which others, and what commands to run to update the created files when the ones they depend on are changed. This document has a lot of information which is specific to the GNU project's implementation of make. On the acpub and cs computer systems, it is run by typing gmake to avoid confusion with the Solaris make program.

1. A sample makefile and how it works

2. Lots of tips

3. A more complicated sample makefile

Next Previous Contents