title: Netbeans environment variables for C++ makefile
body: <p>I have a simple makefile which calls the C++ compiler as <code>$(CXX)</code>, which is set in my <code>~/.profile</code> script. Netbeans seems to have a sophisticated toolchain manager, yet it seems to resolve <code>$CXX</code> as just <code>c++</code> no matter what.</p>
  
  <p>How can I set <code>$CXX</code> properly, or is there another variable set by Netbeans that my makefile can detect? (yuck)</p>
  
  <p>Edit: right-clicking the makefile in the navigator allows me to specify an environment, although there seems to be only room for one line of input. Specifying <code>CXX=/usr/local/bin/g++</code> fixes the problem, but this is far from optimal.</p>