Makefile template v1.4

Hi folks,
I’ve done a little bit more work on my Makefile template..

Here be version 1.4

I’ve added a small bugfix — if you built a program solely from C code, the C++ linker would still be called to link the object files into an executable. This means that while the executable would work, the C++ runtime would also be linked in, adding an extra runtime dependency (libstdc++), and bloating the executable.

Now you specify the program type — whether it contains any C++ code, or consists solely of C code — in the SRC_TYPE Makefile variable, and the relevant compiler is called at build-time.