CC is an environment variable / internal variable used by most build tools to identify the current C compiler. cc is the standardized name of the executable, now usually an alias for gcc.
Both CC and cc refer to the C compiler, in slightly different ways.