			       INSTALL


First you must build bmake - unless you are running 4.4BSD
This tree is designed to be built with bmake and with support for
multiple architectures.  GNU autoconf is used to make a config.h which
handles most system dependencies, but the Makefiles rely on bmake.
Fortunately my bmake uses autoconf :-)

BASE=`pwd`
mkdir /tmp/bmake
cd /tmp/bmake
$BASE/bmake/configure
gmake -f makefile.boot
gmake -f makefile.boot install

Note that you may want to edit the output of machine.sh before building.

If you really want to, you can use the bmake thus produced to re-build bmake
cd $BASE/bmake
bmake obj
bmake
bmake install

Makefiles:

The Makefiles want to know where the top level directory is.
If it is not /usr/local/src/sjg, then you should either create
Makefile.base in the top level directory or set BASE in your
environment.

These Makefiles use my own macro files which are derrived from the
bsd.*.mk macros, if you are not allowed to install bmake/mk/*.mk in
/usr/share/mk or /usr/local/share/mk you can use: 

	bmake -I ${BASE}/bmake/mk

Finally, if you do not have the BSD mandoc macros for [nt]roff, or you
do not want the man pages formatted, set NOMAN=no in your environment
or in Makefile.base

Macro files:

A couple of my macro files differ from the bsd.* originals (apart from
being more portable), man.mk handles installing unformatted nroff, as
well as formatted pages with the normal extension rather than BSD's .0

Unless SUBDIR_MUST_EXIST is defined, subdir.mk will skip missing
subdirs (after telling you...) rather than die.

Now just:

cd $BASE
bmake obj
bmake
bmake install

obj:

Note that I always use obj dirs to keep the build tree neat and
facilitate build/editing within emacs.  If you skip the bmake obj
step, don't be surprised it it all falls apart :-)

I have an arrangement like:

/usr/local/obj -> src/obj.${MACHINE}

and then I set 

BSDSRCDIR=`cd /usr/local/src; /bin/pwd`
BSDOBJDIR=/usr/local/obj

You must set BSDSRCDIR with the same value that /bin/pwd produces as
otherwise obj.mk will do the wrong thing.

ssl:

The ssl tree here expects SSLeay to be installed in /usr/local/ssl
the ssl/build tree can be used to build SSLeay using bmake, just make
ssl/build/dist a symlink to the location of the SSLeay srcs, it is
currently configured for SSLeay-6.4

