"make clean" for SDL, "mingw32-make clean" for Windows then rebuild as usual.