UH Navigation bar CS VNET NSM UH SEARCH

Computer Science Department Unix Primer

Using Makefiles

The GNU Make Manual

Makefiles are designed to automate the task of compiling programs. Large projects in unix all use various levels of automization, starting with the basic makefile. Makefiles are essentially scripts that define compiler flags, compilation tasks, and ensure that the right libraries are included during compilation. The most basic use of the program make does not even require a makefile. (see the bottom of the compilers section of this tutorial.)

An example makefile is available here

Makefiles don't have to be limited to programming. Other applications include makefiles that manage network information databases, and even an example makefile for compiling TeX.

University of Houston State of Texas Privacy and Policies Homeland Security Compact with Texans Reporting Copyright Infringement Contact U H Feedback Site Map Statewide Search U H System