set FpcPath=C:\lazarus\fpc\3.0.4
cd %FpcPath%\bin\x86_64-win64
fpcmkcfg -d basepath=%FpcPath% -o .\fpc.cfg

set PATH=%FpcPath%\bin\x86_64-win64;%PATH%
cd C:\lazarus
make clean all OPT="-glw2"
