Even though QMAKE_CFLAGS
is undocumented, it does not mean you cannot use it. There are so many useful variables with qmake
undocumented. I would not discourage you to stop using this if you wish.
As for the C and C++ question: I think it is reasonable to set them separately as they are two different languages, but you can always set the same to both by having an interim variables or just duplicating the append statements.