First get a cross compiler:
(or just grab a prebuilt one from the GitHub page)
Get allegro-4.2:
- git clone https://github.com/1oom-fork/allegro4
"Fix" it for djgpp:
- ./fix.sh djgpp
Edit xmake.sh and check that the paths and compiler name are correct:
XC_PATH=/<djgpp_path>/bin XPREFIX=i586-pc-msdosdjgpp- INSTALL_BASE=/<djgpp_path>
Build and install:
- ./xmake.sh depend
- ./xmake.sh lib -j 3
- ./xmake.sh install