Makefiles by Example

Here is a UNIX Makefile. If you want to test this makefile, execute the following unix commands: This will create empty program files and two rather boring main programs. You can experiment with the makefile by "touching" the source files. See man touch.

Do you understand what is going on in the following command session?

See the man pages for more information. man make.