This file explains how to compile wcd for DOS and Windows.
For Unix compile instructions see file ../unix/INSTALL.
For how to install the program see files wcd.pdf and wcd.txt.


----------------------------------------------
PDCurses
----------------------------------------------

To build wcd with PDCurses interface you need to have the PDCurses
library installed. Get PDCurses at http://sourceforge.net/projects/pdcurses/
Compile it and copy the library file into the \lib directory of your
compiler and the curses.h file in the \include directory.

To get support for the original console colours for the windows 32 bit
version you need PDCurses 2.7. PDCurses 2.7 is at the time of this wcd release
unfinished. So you need to check out PDCurses 2.7 beta from CVS at
http://sourceforge.net/projects/pdcurses/.

I reported the following bug on http://sourceforge.net/projects/pdcurses/
*  Bug 1144353: Scroll out of window when screen buffer is large (Windows)
This bug is solved in PDCurses 2.7 beta.

----------------------------------------------
DOS 16 bit
----------------------------------------------

Use Borland C compiler. It should work with version 3.1 and 4.0.
A free version 2.01 can be downloaded at http://community.borland.com/museum/

Go to directory dos16bit.

To compile wcd with default conio interface type (Compact memory model):

>  make

To compile wcd with default conio interface type (Large memory model):

>  make -f wcd.mak

or open wcd.prj file in Borland 3.1 IDE.


To compile wcd with PDCurses interface type (Large memory model):

>  make -f pdcurses.mak


If you unpacked the wcd zip file with an unzip program that supports long file
names on Windows 95/98/ME you get errors during compile.  This is because two
files have a name longer than 8.3.  To solve this go to the c3po directory and
copy these two files to names with short 8.3 names (truncated).

cd c3po
copy structures.h structur.h
copy std_macro.h std_macr.h

----------------------------------------------
DOS 32 bit
----------------------------------------------

Go to directory dos32bit. The 32 bit version is compiled with DJGPP.
DJGPP is a free C++ compiler. You can download it at http://www.delorie.com/


Go to directory dos32bit.

To compile wcd with default conio interface type:

>  make

To compile wcd with PDCurses interface type:

>  make -f pdcurses.mak


----------------------------------------------
DOS 32 bit for BASH
----------------------------------------------

Use the DJGPP compiler.

Go to directory dos_bash and use the same commands as with the
normal dos 32 bit version.

----------------------------------------------
Windows 32 bit console version.
----------------------------------------------

This version can be compiled with free compilers:
Borland C++: http://www.borland.com/products/downloads/download_cbuilder.html
MinGW      : http://www.mingw.org/
LCC        : http://www.cs.virginia.edu/~lcc-win32/

Go to directory win32.
Cd to one of the compiler directories: borland, lcc or mingw.

Edit the makefile you want to use first: set CC_HOME to the correct value.

The default makefile (makefile) compiles wcd with stdout interface.

> make

The makefiles that use PDCurses (pdcurses.mak) assume that pdcurses.h has been
copied into the include directory of the compiler and the pdcurses library in
the compiler's lib directory.

> make -f pdcurses.mak

To compile wcd with conio interface type:

>  make -f conio.mak

Conio version compiled with LCC does not work properly.
Preferably compile stdout or pdcurses version.

----------------------------------------------
Windows 32 bit zsh version.
----------------------------------------------

Go to directory win32zsh.
Same as win 32 console version.

----------------------------------------------
Cygwin version.
----------------------------------------------

Cygwin can be obtained from http://cygwin.com/

Go to directory cygwin.

To compile wcd with stdout interface:

$ make

To compile wcd with PDCurses interface:

$ make -f pdcurses.mak

To compile wcd with NCurses interface:

$ make -f ncurses.mak




