The following commands should work on their respective platforms. However the only way that is fully tested is to load the .vcxproj file into Visual Studio 2017 CE and run it from there. The cl.exe command should also work on Windows.
On Linux and OSX, the commands have been copied from Base0 readme, but have not been tested with the latest version of the TennisForOne code.
g++ -g -Wall -Werror -o main main.cpp Draw.cpp `sdl2-config --cflags --libs` -lGL
or:
make
clang++ -g -Wall -Werror -o main main.cpp Draw.cpp `sdl2-config --cflags --libs`
or:
make
Before building, clone kit-libs-win into the kit-libs-win
subdirectory:
git clone https://github.com/ixchow/kit-libs-win
Now you can:
nmake -f Makefile.win
or:
cl.exe /EHsc /W3 /WX /MD /Ikit-libs-win\out\include main.cpp Draw.cpp gl_shims.cpp /link /SUBSYSTEM:CONSOLE /LIBPATH:kit-libs-win\out\lib SDL2main.lib SDL2.lib OpenGL32.lib
copy kit-libs-win\out\dist\SDL2.dll .