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.
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.
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.