To remove trash:
gmake cleanup
To remove all binaries (libraries, object files, and executables), either of the following commands can be used:
gmake clean gmake mostlyclean
Files created by preprocessing are left.
To remove everything that wasn't in the original distribution use any of the following:
gmake cleaner gmake cleanest gmake distclean gmake realclean