pthreads win32 library is required ( http://www.sourceware.org/pthreads-win32/ )
set msys_bat=c:\mingw\msys\1.0\msys.bat
set temp_inst=c:\temp_inst
if not exist %temp_inst%bin mkdir %temp_inst%bin
if not exist %temp_inst%lib mkdir %temp_inst%lib
if not exist %temp_inst%include mkdir %temp_inst%include
set LIB=%inst_temp%lib;%LIB%
set INCLUDE=%inst_temp%iinclude;%INCLUDE%
clone https://github.com/YannNayn/msvc_sup.git pushd msvc_sup nmake -f Makefile.msvc CFG=dll-release popd copy /Y msvc_sup\msvc100\src\dll-release*.dll %inst_temp%bin copy /Y msvc_sup\msvc100\src\dll-release*.lib %inst_temp%lib copy /Y msvc_sup\include*.h %inst_temp%include
clone https://github.com/YannNayn/check_msvc.git pushd check_msvc set src_dir=%CD% call %msys_bat% -c "cd %src_dir:=/% && configure --prefix=%temp_inst:=/% && make && make install" LIB /DEF:src.libs\libcheck-0.dll.def /NAME:libcheck-0 /MACHINE:X86 /OUT:%inst_temp%lib\libcheck.lib popd
clone https://github.com/YannNayn/hsregex_msvc.git pushd hsregex_msvc nmake -f Makefile.msvc CFG=dll-release popd
copy /Y hsregex_msvc\msvc100\src\dll-release*.dll %inst_temp%bin copy /Y hsregex_msvc\msvc100\src\dll-release*.lib %inst_temp%lib copy /Y hsregex_msvc\hsregex.h %inst_temp%include
clone https://github.com/YannNayn/galera_msvc.git pushd galera_msvc scons popd