Compiling with Optix and Cuda

Hi, I was wondering how I can compile on Debian with Optix and Cuda?

install the Cuda toolkit and optix sdk (unsure on the exact versions supported but 7.0 works) run make release in the blender source folder and it should pick up on it automatically