See the TiLP/build/mingw/ReadMe.txt.