I found it will only build one of them each build. For example, I passed --enable-sdl --enable-web (./configure --help doesn't list --enable-console so I think the console version will always be built), I found only the SDL version is built.
p/s: I'm using MSYS2.