This is the complete source code for client/server Doom.

The code is all licensed under the terms of the GPL (gnu public license).
You should read the entire license, but the gist of it is that you can do 
anything you want with the code, including sell your new version.  The catch 
is that if you distribute new binary versions, you are required to make the 
entire source code available for free to everyone.


*** Win32 ***

To compile this source code, you need Microsoft Visual C++ 6.0.

You also need to download several other packages if you don't 
already have them. These are:

* MIDAS Digital Audio System
    http://www.s2.org/midas/
    or
    http://www.halyava.ru/fly/midas.zip

    Be sure to link with the static library and not the DLL version of
    MIDAS! I use a hack from NTDOOM that crashes with the DLL but not the
    static library.

* OpenPTC 1.0.18
    http://www.gaffer.org/ptc
    or
    http://www.halyava.ru/fly/openptc.zip

* NASM (for the assembly files)
    http://www.web-sites.co.uk/nasm/
    or
    http://www.halyava.ru/fly/nasm.zip

    If you don't want to use NASM, you can #define NOASM while compiling
    ZDoom, and it will use C code instead.



*** Linux ***

First, get Hermes and install it if you haven't already. You can get it
from http://hermes.terminal.at

Get and install nasm from http://www.web-sites.co.uk/nasm/

Get MIDAS from http://www.s2.org/midas/ and extract it to a src/midas
directory. If you put it somewhere else, edit the Makefile.
The binary distribution alone will work, but if you want to avoid to
long delays in sound playback, get the MIDAS source code as well, and
apply the following patch to midas/src/midas/oss.c:

===========================================================================
59c59
< //static    int numFragments = 0xffff000e;
---
> static    int numFragments = 0x0008000b;
301c301
< #if 0
---
> #if 1
===========================================================================

#NOTE#: If you're not going to compile doomcl, you don't need to 
        install Hermes and MIDAS.

Compiling doomcl:

Once Hermes, nasm, and MIDAS are installed, edit the Makefile as necessary,
then run "make" in the doomcl directory. Copy libzdoom-x.so and 
libzdoom-svgalib.so into /usr/local/lib directory.

Compiling doomsv:

Run "make" in the doomsv directory.


*** FreeBSD ***

Get and install nasm from http://www.web-sites.co.uk/nasm/
To compile the csDoom server, run "gmake" in the doomsv directory.
I don't know if it's possible to compile doomcl under FreeBSD but
you can try :)


Sergey A. Makovkin
