News for hackers. Stuff that matters.
Re:Makefiles – Best Practices by theamk on Friday February 01, 2019 @11:45PM (#19061141)
You forgot -Wall. Also, does this enable C++11? And don’t forget to set that NDEBUG macro.

All the things above is still a 2 line Makefile. And it is intuitive, too - you jusy copy your command-line g++ invocation and paste into Makefile.

Re:Makefiles – Best Practices by Orphis on Sunday February 03, 2019 @06:52PM (#19072982)
That has nothing to do with the compilation of your program. This is a specific option to use in a specific configuration and specific compilers.

So if you want a configuration with some flags like that, then you can have a separate file for it. Each compiler is different after all, some will need different options.