If anybody is interested in some 'current' open source MS-DOS software, I put up my old undergraduate thesis sources from 1997 recently:
https://github.com/burtonsamograd/xp32
Te repo has a full DJGPP (GCC for DOS) toolchain environment included to build the included sources of the project, so you can just clone and build.Probably a lot easier to understand and build than the Doom sources.