Compiling the Source Program is tedious if we want to compile multiple programs at a time. if we want to compile more programs and if we want to make a single executable then Makefile is a good tool.
In most of the real scenario, we will keep a separate source program for functionality purpose and will compile and archive into different library and the library will be used in to make as servers.
make is a command line tool which will accept Makefile as an input and this has a set of rules and regulations like how the source files should be placed and what sort of compilers we are using for compilation of source programs
Please find the link to find the step by step procedure to compile the source programs
Makefile