• Home
Name Date Size #Lines LOC

..--

LICENSED12-May-20241.3 KiB2519

MakefileD12-May-20243.4 KiB13197

README.MDD12-May-20241.1 KiB2218

README.MD

1# lz4 for DOS/djgpp
2This file details on how to compile lz4.exe, and liblz4.a for use on DOS/djgpp using
3Andrew Wu's build-djgpp cross compilers ([GH][0], [Binaries][1]) on OSX, Linux.
4
5## Setup
6* Download a djgpp tarball [binaries][1] for your platform.
7* Extract and install it (`tar jxvf djgpp-linux64-gcc492.tar.bz2`).  Note the path.  We'll assume `/home/user/djgpp`.
8* Add the `bin` folder to your `PATH`.  In bash, do `export PATH=/home/user/djgpp/bin:$PATH`.
9* The `Makefile` in `contrib/djgpp/` sets up `CC`, `AR`, `LD` for you.  So, `CC=i586-pc-msdosdjgpp-gcc`, `AR=i586-pc-msdosdjgpp-ar`, `LD=i586-pc-msdosdjgpp-gcc`.
10
11## Building LZ4 for DOS
12In the base dir of lz4 and with `contrib/djgpp/Makefile`, try:
13Try:
14* `make -f contrib/djgpp/Makefile`
15* `make -f contrib/djgpp/Makefile liblz4.a`
16* `make -f contrib/djgpp/Makefile lz4.exe`
17* `make -f contrib/djgpp/Makefile DESTDIR=/home/user/dos install`, however it doesn't make much sense on a \*nix.
18* You can also do `make -f contrib/djgpp/Makefile uninstall`
19
20[0]: https://github.com/andrewwutw/build-djgpp
21[1]: https://github.com/andrewwutw/build-djgpp/releases
22