I talked to Jace on discord about how to compile on EndeavourOS and they oriented me to use the linux guide and the troubleshooting section on discord to achieve that.
I asked Claude to adapt the Makefile and was able to compile on first try.
Just ran ./sa.sdl and the game was fully working.
Here is my Makefile, use with discretion, because it was 100% edited by AI
https://gist.github.com/shuantsu/6fe2ffd3e768f978d64bafce3121d649