2009-02-13 16:23:50 +00:00
|
|
|
|
2011-04-10 11:58:10 +00:00
|
|
|
Building XZ Utils for DOS
|
|
|
|
=========================
|
2009-02-13 16:23:50 +00:00
|
|
|
|
|
|
|
Introduction
|
|
|
|
|
|
|
|
This document explains how to build XZ Utils for DOS using DJGPP.
|
|
|
|
The resulting binaries should run at least on various DOS versions
|
2020-03-11 17:36:07 +00:00
|
|
|
and under Windows 95/98/98SE/ME.
|
2009-02-13 16:23:50 +00:00
|
|
|
|
2020-03-11 17:36:07 +00:00
|
|
|
This is somewhat experimental and has got very little testing.
|
2009-02-13 16:23:50 +00:00
|
|
|
|
2010-10-09 16:28:49 +00:00
|
|
|
Note: Makefile and config.h are updated only now and then. This
|
2020-03-11 17:36:07 +00:00
|
|
|
means that if you checked out a development version, building for
|
|
|
|
DOS might not work without updating Makefile and config.h first.
|
2010-10-09 16:28:49 +00:00
|
|
|
|
2009-02-13 16:23:50 +00:00
|
|
|
|
|
|
|
Getting and Installing DJGPP
|
|
|
|
|
|
|
|
You may use <http://www.delorie.com/djgpp/zip-picker.html> to help
|
2020-03-11 17:36:07 +00:00
|
|
|
deciding what to download. If you are only interested in building
|
|
|
|
XZ Utils, the zip-picker may list files that you don't strictly
|
|
|
|
need. However, using the zip-picker can still be worth it to get a
|
|
|
|
nice short summary of installation instructions (they can be found
|
|
|
|
from readme.1st too).
|
2009-02-13 16:23:50 +00:00
|
|
|
|
2010-10-09 16:28:49 +00:00
|
|
|
For a more manual method, first select a mirror from
|
2020-03-11 17:36:07 +00:00
|
|
|
<http://www.delorie.com/djgpp/getting.html> and go the
|
|
|
|
subdirectory named "current". You need the following files:
|
2009-02-13 16:23:50 +00:00
|
|
|
|
2010-10-09 16:28:49 +00:00
|
|
|
unzip32.exe (if you don't already have a LFN-capable unzipper)
|
2020-03-11 17:36:07 +00:00
|
|
|
v2/djdev205.zip
|
|
|
|
v2gnu/bnu234b.zip
|
|
|
|
v2gnu/gcc920b.zip
|
|
|
|
v2gnu/mak43b.zip
|
2010-10-09 16:28:49 +00:00
|
|
|
v2misc/csdpmi7b.zip
|
2009-02-13 16:23:50 +00:00
|
|
|
|
|
|
|
If newer versions are available, probably you should try them first.
|
2020-03-11 17:36:07 +00:00
|
|
|
Note that versions older than djdev205.zip aren't supported. Also
|
|
|
|
note that you want csdpmi7b.zip even if you run under Windows or
|
|
|
|
DOSEMU because the XZ Utils Makefile will embed cwsdstub.exe to
|
|
|
|
the resulting xz.exe.
|
2009-02-13 16:23:50 +00:00
|
|
|
|
2020-03-11 17:36:07 +00:00
|
|
|
See the instructions in readme.1st found from djdev205.zip. Here's
|
2009-02-13 16:23:50 +00:00
|
|
|
a short summary, but you should still read readme.1st.
|
|
|
|
|
|
|
|
C:\> mkdir DJGPP
|
|
|
|
C:\> cd DJGPP
|
2020-03-11 17:36:07 +00:00
|
|
|
C:\DJGPP> c:\download\unzip32 c:\download\djdev205.zip
|
|
|
|
C:\DJGPP> c:\download\unzip32 c:\download\bnu234b.zip
|
|
|
|
C:\DJGPP> c:\download\unzip32 c:\download\gcc920b.zip
|
|
|
|
C:\DJGPP> c:\download\unzip32 c:\download\mak43b.zip
|
2010-10-09 16:28:49 +00:00
|
|
|
C:\DJGPP> c:\download\unzip32 c:\download\csdpmi7b.zip
|
2009-02-13 16:23:50 +00:00
|
|
|
|
|
|
|
C:\DJGPP> set PATH=C:\DJGPP\BIN;%PATH%
|
|
|
|
C:\DJGPP> set DJGPP=C:\DJGPP\DJGPP.ENV
|
|
|
|
|
|
|
|
You may want to add the last two lines into AUTOEXEC.BAT or have,
|
|
|
|
for example, DJGPP.BAT which you can run before using DJGPP.
|
|
|
|
|
|
|
|
Make sure you use completely upper case path in the DJGPP environment
|
|
|
|
variable. This is not required by DJGPP, but the XZ Utils Makefile is
|
|
|
|
a bit stupid and expects that everything in DJGPP environment variable
|
|
|
|
is uppercase.
|
|
|
|
|
|
|
|
|
|
|
|
Building
|
|
|
|
|
2010-10-09 16:28:49 +00:00
|
|
|
You need to have an environment that supports long filenames (LFN).
|
2009-02-13 16:23:50 +00:00
|
|
|
Once you have built XZ Utils, the resulting binaries can be run
|
|
|
|
without long filename support.
|
|
|
|
|
2020-03-11 17:36:07 +00:00
|
|
|
Run "make" in this directory (the directory containing this
|
|
|
|
INSTALL.txt). You should get xz.exe (and a bunch of temporary files).
|
|
|
|
Other tools are not built. Having e.g. xzdec.exe doesn't save much
|
|
|
|
space compared to xz.exe because the DJGPP runtime makes the .exe
|
|
|
|
quite big anyway.
|
2009-02-13 16:23:50 +00:00
|
|
|
|