Compile everything (using make all on the source/ level), and use INSTALL_PREFIX
Compile everything (using make all on the source/ level), and use INSTALL_PREFIX`c:\lazarus\fpc\3.2.0\source\rtl>make all FPC=c:\lazarus\fpc\3.2.0\bin\x86_64-win64\fpc.exe INSTALL_PREFIX=c:\lazarus\fpc\3.2.0`
Combine make all and install. INSTALL_PREFIX is a parameter to install, not all.
make all install FPC=c:\lazarus\fpc\3.2.0\bin\x86_64-win64\fpc.exe INSTALL_PREFIX=c:\lazarus\fpc\3.2.0`
Local generation of units in source\ can't be avoided, it is install that copies them from there to the INSTALL_PREFIX location
But a got another problem: lazarus won`t use it. It fails with:
Verbose: Free Pascal Compiler version 3.2.0 [2020/07/07] for x86_64 Verbose: Copyright (c) 1993-2020 by Florian Klaempfl and others Verbose: Target OS: Win64 for x64 Verbose: Compiling fcllaz.pas Verbose: PPU Loading C:\lazarus\fpc\3.2.0\units\x86_64-win64\rtl\system.ppu Verbose: PPU is compiled for another processor Fatal: Невозможно найти system, используемый в fcllaz. Убедитесь, что все файлы PPU пакета находятся в его каталоге вывода. PPU в неверном каталоге=C:\lazarus\fpc\3.2.0\units\x86_64-win64\rtl\system.ppu.. Verbose: Compilation aborted Verbose: C:\lazarus\fpc\3.2.0\bin\x86_64-win64\ppcx64.exe returned an error exitcode
what target lazarus wants, since it virsion reports x86_64-win64-win32/win64?