Compile Nvidia Driver 195.36.31 for Debian Squeeze with backported kernel

I’ve been trying to get a backported kernel to work on my installation of Debian Squeeze, but it seems some include files are not included in recent kernel versions. There are also some issues with Kernel version checks in the Nvidia Makefiles.

I finally got it to work by combining information from the Debian Wiki and Paul Goins’ blog at