Cdk Installation Guide
Copyright Mike Glover, 1995, 1996, 1997
-------------------------------------------------------------------------------

General
-------
This document details how to build and install the Cdk library. The first thing
you should know is what compile options you may require. I have had the 
fortunate luck of being able to compile this library on the following
platforms:
	* Sun/OS 4.1.*
	* Solaris 2.3/2.4/2.5/2.5.1
	* AIX 3.2.* (and even AIX 4.1 but there is no mention of this in the
                    makefile. Sorry.)
	* HPUX 9.* (and even HPUX 10.* but there is no mention of this in the
                    makefile. Sorry.)
	* Linux, in both a.out and Elf.

If you have a machine that is not mentioned here and you would like to see it
in the makefile, mail me the additions for the makefile and I will add them in.

CFLAGS
------
You may need to change a few things in the makefile as far as compile options
are concerned, but also the C flags. There are a number of defined CFLAGS 
that should be explained. They are as follows:

	-DCOLOR		Add in if your curses header file supports color. 
			Ncurses does.
	-DWINCHBUG	If your copy of curses has a bug in the routine winch.
	-DNOUSLEEP	If you haven't got the usleep library function.
	-DNODYNALLOC	If your compiler does not support the use of non
			constants in variable definitions. Set -DDNODYNALLOC
			can't support a definition like the following:
			char *array[variableName];
			where variableName is a variable that was set to
			dictate the size of the array.
	-DNCURSES	Use this flag if you suspect your version of curses
			is very closely related to the ncurses variant.

Building
--------
To build the library cd into the Cdk distribution directory and type in
make cdklib
This builds the file libcdk.a
That's all there is to it.

Building the example programs
-----------------------------
To build the programs in the exam directory type in make examples in the
source root directory. This will build all the files under the directory
exam.

Building the demonstration programs
-----------------------------------
To build the programs in the demo directory type in make demos in the
source root directory. This will build all the files under the directory
demo.

Installing
----------
Modify the makefile to set the values of INST_ROOTDIR, INST_SRCDIR, 
INST_LIBDIR, INST_INCDIR, and INST_MANDIR. You really should only have to 
set the value of INST_ROOTDIR. These variables set the location of the root
install directory, the source directory, the library directory, the include 
directory, and the man directory respectively. Once these have been set 
correctly, su to root and type 
	make install

This will install the files:
cdk.h, curdefs.h, libcdk.a , the example files, the misc documents which
come with Cdk, and all of the manual pages.

If you want to see the curses based install I've built type in
	make vinstall
