I have a list of cpp files in project which is built using automake tools.
Some of them are written using pre-C++11 standard (ie C++98) and they cannot compile with c++11 flag of gcc (-std=c++11).
Latest cpp files are using C++11 standard and they need -std=c++11 flag in compile.
Can I define in Automake two lists of cpp source files and give different compilation flags?
This is ripped directly from Setting per-file flags with automake
You may bundle your c++11 code into a lib and provide different flags for this code subset in Makefile.am