Sun Studio 12 Update 1: C++ User's Guide

2.8.3.1 Using CCFLAGS Within make

When you are using the implicit compilation rules of the makefile (that is, there is no C++ compile line), the make program uses CCFLAGS automatically.