HAY GUISE.
Once again, the common.mk files in CUDA SDK are not completely usable and minor adjustments are required.
Out of the box compile gives you errors like:
../../lib/librendercheckgl_x86_64.a(rendercheck_gl.cpp.o): In function `CheckBackBuffer::checkStatus(char const*, int, bool)':
rendercheck_gl.cpp:(.text+0xfbb): undefined reference to `gluErrorString'
Quick fix is the following as I have found out from these sources.

WebIDauth Project