This is the complete source code for ZDaemon 0.99.

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.

Under Windows
===================

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/

    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

* NASM (for the assembly files)
    http://www.web-sites.co.uk/nasm/

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



Under 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 zdaemon.exe, you don't need to 
        install Hermes and MIDAS.

Compiling zdaemon:

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 zserv:

Run "make" in the doomsv directory.


*** FreeBSD ***

Currently, no support for FreeBSD **yet**.  If you wanna help port ZDaemon over, you
know where to go.


Sean White --otherwise better known as "NightFang"   (nightfang@truelights.com)
http://www.truelights.com
http://www.doom2.org


