Only evaluate these shell commands once at Makefile startup, otherwise every single call to the compiler/linker will re-evaluate these lines again and again. This speeds up the build quite a bit for me.