diff --git a/build_win32.cmd b/build_win32.cmd index a10f76be..83427571 100644 --- a/build_win32.cmd +++ b/build_win32.cmd @@ -9,6 +9,9 @@ SET PATH=%POKERTH_WIN32_LIB_DIR%\qt\bin;%POKERTH_WIN32_LIB_DIR%\mingw32\bin;%PAT SET QMAKESPEC=win32-g++ SET QTDIR=%POKERTH_WIN32_LIB_DIR%\qt +if exist Makefile. ( + mingw32-make distclean +) qmake DEFINES+=BOOST_USE_WINDOWS_H pokerth.pro mingw32-make release IF NOT "%ERRORLEVEL%"=="0" exit /b %ERRORLEVEL% diff --git a/build_win64.cmd b/build_win64.cmd index 0b82c944..f837c21a 100644 --- a/build_win64.cmd +++ b/build_win64.cmd @@ -9,6 +9,9 @@ SET PATH=%POKERTH_WIN64_LIB_DIR%\qt\bin;%POKERTH_WIN64_LIB_DIR%\mingw64\bin;%PAT SET QMAKESPEC=win32-g++ SET QTDIR=%POKERTH_WIN64_LIB_DIR%\qt +if exist Makefile. ( + mingw32-make distclean +) qmake CONFIG+=pkth_win64 DEFINES+=BOOST_USE_WINDOWS_H pokerth.pro mingw32-make release IF NOT "%ERRORLEVEL%"=="0" exit /b %ERRORLEVEL%