Thanks for this, drummyfish. Btw, which main_ script is simply for compiling a Windows version? And which main_ script file is for compiling the html version?
Thank you too. For both Windows and Javascript you use main_sdl.c, I think I used the mingw compiler to make the Windows version so the compilation was very similar to how it's done on GNU/Linux. There are some comments on compiling with emscripten in main_sdl.c and make.sh.