one-file
compiles, appends source file that contains compile instructions
... command, and any "depends" info.
one-file (1f) is based on an original idea implemented in the late 1990's Windows app SpASM32, a self editing & self compiling 32bit windows assembler, that attached its source to itself, or a programs source code to the resulting programs compiled binary.
Either download all sources in the zip, or get the individual source files from the project homepage.
SDL coding is not bound to any windowing system.