diff options
author | Louis P. Santillan <lpsantil@gmail.com> | 2015-05-26 04:41:45 (GMT) |
---|---|---|
committer | Louis P. Santillan <lpsantil@gmail.com> | 2015-05-26 04:41:45 (GMT) |
commit | b2bbb2790d50f09b594f6588ebdade62966b5d5c (patch) | |
tree | aa6d98a147d5c7366fe7b5b53e6ef142b0a633c8 /README.DJ | |
parent | 7d182b816ace89d6d6d16b7aee376a9962a05caa (diff) | |
download | lz4-b2bbb2790d50f09b594f6588ebdade62966b5d5c.zip lz4-b2bbb2790d50f09b594f6588ebdade62966b5d5c.tar.gz lz4-b2bbb2790d50f09b594f6588ebdade62966b5d5c.tar.bz2 |
Fixup programs/{Makefile,lz4cli.c,lz4io.c} to build with Andrew Wu's build-djgpp cross compilers. Add some documentation in README.DJ
Diffstat (limited to 'README.DJ')
-rw-r--r-- | README.DJ | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/README.DJ b/README.DJ new file mode 100644 index 0000000..4d6cbcd --- /dev/null +++ b/README.DJ @@ -0,0 +1,19 @@ +# lz4 for DOS/djgpp +This file details on how to compile lz4.exe, and liblz4.a for use on DOS/djgpp using +Andrew Wu's build-djgpp cross compilers ([GH][0], [Binaries][1]) on OSX, Linux. + +## Setup +* Download a djgpp tarball [Binaries][1] for your platform. +* Extract and install it (`tar jxvf djgpp-linux64-gcc492.tar.bz2`). Note the path. We'll assume `/home/user/djgpp`. +* Add the `bin` folder to your `PATH`. In bash, do `export PATH=/home/user/djgpp/bin:$PATH`. + +## Building LZ4 binary for DOS +* Run `make` substituting the cross compiler for `CC` and `AR`, e.g., `CC=i586-pc-msdosdjgpp-gcc AR=i586-pc-msdosdjgpp-ar make lz4programs` +* `lz4` and `lz4.exe` are then in the `programs/` subfolder. + +## Building LZ4 library for DOS +* Run `make` substituting the cross compiler for `CC` and `AR`, e.g., `CC=i586-pc-msdosdjgpp-gcc AR=i586-pc-msdosdjgpp-ar make lz4lib-djgpp` +* `liblz4.z`, `lz4.h`, `lz4hc.h`, `lz4frame.h`, and `xxhash.h` are then in the `lib/` subfolder. + +[0]: https://github.com/andrewwutw/build-djgpp +[1]: https://github.com/andrewwutw/build-djgpp/releases |