Organization of the book¶
This book is partitioned into following parts.
- First, it covers Basic Compilation:
Write basic Makefile to build sample source code.
Increase the complexity a little bit to compile more than one file.
Different aspects of make files/compilation/etc.
- Then, it introduces Makefile Generators:
Remove complexity of writing makefiles and generate Makefiles for cross platforms and different IDEs.
Introduce how to use other tools to build complex software with less effort.
If you are aware of
C programming language, then you would agree that it is possible to write almost any kind of software in
C language. But still, where applicable, people use higher languages. Given a choice that you can opt to implement something either with
C, there is a chance that you would prefer
C. You may not use all the offerings of
C++ language, but still if you see an advantage, you would choose
On the same lines, if you can use much higher languages like
C#, etc. you would try to abstain from
In a similar sense, if you can use CMake, Premake, GYP, SCons, etc. for building software, it is recommended that you try to abstain from RAW Makefiles. Using advanced make Makefile generators like CMake or Premake has a potential to make things more maintainable.