Makefiles
Makefiles are files that contain specific compilations intructions for
a program. Makefiles are interpreted by a program called make, which
builds targets from prerequisites. Makefiles are usually used to
compile large amounts of code and to install software from its source code.
As an example, consider a program called "program" constructed from the
source code "source1.c," "source2.c," and "source3.c." Each time
any one of the source files was changed, all three would have to be recompiled.
Make allows the programmer only to have to recompile the modified source
code.
-
Create a new directory a download the following files into it:
-
Makefile
-
calc1.c
-
Examples of Makefiles Used to Install Software
|