5 ms·
Interesting. The simplicity of the build process is inspiring. It literally took me less than five minutes to cobble together a build environment from thin ai
by jasomill 6d ago
Interesting.
The simplicity of the build process is inspiring.
It literally took me less than five minutes to cobble together a build environment from thin air, cross-compile, and test:
1. Glance at the Makefile, notice that it's a single self-contained C file and that it builds on Open Watcom.
2. Google Open Watcom, download the latest Linux binary release from GitHub on my Windows PC because that's where I'm sitting but my plan is to run it on the Linux box across the room, currently headless.
2. Out of habit, I run "file" and "7z l" on what's apparently a self-extracting installer when it finishes downloading.
3. Realize it contains binaries for multiple platforms, including Windows, so I extract it.
4. Following the Makefile, set a WATCOM environment variable pointing to the extracted path and add its "binnt64" directory to my path.
5. Copy/paste the single compilation command from the Makefile into PowerShell. Cross-compiles without error.
7. Create an ISO image of the source directory containing the binary, mount it on the nearest DOS-alike (an 86Box instance running MS-DOS 6.22 on an emulated Pentium MMX IBM PC), ran the included test program. Tests pass.