Most programs are compiled as
g++ main.cpp -o [executable]
and executed with
./[executable]
or by running
make
to generate the object files and executable.
ref-makefile is a reference makefile that is usually copied in some form to each sandboxed directory.
Book Series:
Accelerated C++: Practical Programming by Example
Andrew Koenig and Barbara E. Moo
ISBN 0-201-70353-X