See the manual on how to compile VASP.