Compiling your source codes using makefiles
To complile your source code with makefile, we can use make utility which are available in most in Linux/Unix system. If you run
This program will look for a file named makefile in your directory, and then execute it. If makefile does not exist, it will look for Makefile instead.
If you have several makefiles, then you can execute them with the command
$ make -f MakefileName
If you want to compile from a certain target of the makefile, then use this command
$ make TargetName
For more option on using the make program, please refer to man page by typing
$ man make
Entry filed under: Linux.