Introduction Go to the first , previous , next , last section, table of contents .
You need a file called a makefile to tell make what to do. Most often, the makefile tells make how to compile and link a program. In this chapter, we will discuss a simple makefile that describes how to compile and link a text editor which consists of eight C source files and three header files. To see a more complex example of a makefile, see section Complex Makefile Example . When make recompiles the editor, each changed C source file must be recompiled.