It doesn't matter where the source is, just that lazarus is pointed to the right version. You need to point lazarus to the directory where the 2.5.1 source is(compiler,ide,rtl,packages,utils,etc)

Edit: which version of make.exe doesn't matter either