
INSTALL ONLY

If you have the executables for emacs and want to skip the build phase,
then do the following:

(1) Make sure that the exeutables (e.g., emacs.exe, etags.exe, etc.)
    are in .\bin

(2) Skip to 3 below, but use fast-install.cmd instead of install.cmd

BUILD AND INSTALL

To build and install emacs on NT, you need to do the following:

(1) You need to set three environment variables:

BUILD_DEFAULT_TARGETS: Presently, must be set to either -mips or -386
		       (the mips build assumes r4000, which it probably 
			shouldn't)

		  INC: The full path of your NT .h files.

		  LIB: The full path of your NT .lib files.
	       	       (coffbase.txt must be at $(LIB)\..\coffbase.txt)

An example setting could be:

set BUILD_DEFAULT_TARGETS=-386
set INC=C:\mstools\h
set LIB=C:\mstools\lib

or modify and use the setvars.cmd command file.

(2) Build the executables.  The target to compile the sources is "all",
    and is recursive starting at this directory.  The makefiles for the NT 
    port are in files named "nmkfile", so, to get things started, type
    in this directory:

nmake -f nmkfile all

or use the ebuild.cmd file.

(If you are using the VC++ compiler, I've been told that you might see
a warning message about CL386 invoking to CL.)


(3) You've already chosen a directory to put the sources (or you wouldn't
    be reading this), and now you must choose a directory in which
    to install what you've just built.  Edit the top level nmkfile
    (in this directory) and modify the INSTALL_DIR macro to point to
    the directory in which you want emacs installed.  In addition,
    modify the "emacs.cmd" file and set the INSTALL_DIR variable to the
    same value.

    Now install emacs.  From this directory,

nmake -f nmkfile install

or use the install.cmd file.

(4) Create a program manager icon for the %INSTALL_DIR%\emacs.cmd file.
    If you want to use a .emacs (or emacs.dot on FAT) file, make sure
    that you set your HOME environment variable to point to the
    directory in which it is found (there has to be a better way...).

(5) Either click on the icon, or run the emacs.cmd file, and away you go.

------------------------------------------------------------------------------
NOTES:

The emacs executable is built in src, and random programs associated
with emacs are built in lib-src (only two programs, however, are
installed: etags.exe and ctags.exe).  

