CXX=`toad-config --cxx` CXXFLAGS=`toad-config --cxxflags` LD=$(CXX) LDFLAGS=`toad-config --libs`toad-config itself can also be used to create a complete Makefile along with a C++ source file, which can be compiled and executed at once:
% mkdir example % cd example % toad-config --new-project example % ls example.cc Makefile % make % ./example