Installation on Win32 (WinNT, Win95) using the MSVC4.0 or MSVC5.0 or MSVC6.0
============================================================================
or MSVC7.0 development environment, using native system calls
=============================================================

0. Note! Binaries created with MSVC 7.0 with MFLAGS=-MD cannot be distributed:
   They depend on a closed-source library 'msvcr70.dll' which is not normally
   part of a Woe32 installation, therefore the distribution of such binaries
   - with or without msvcr70.dll - would be a violation of the GPL. This
   problem does not occur with MSVC 6.0 and earlier.

1. Build a few recommended libraries: libiconv and libsigsegv.
   - GNU libsigsegv (highly recommended for C stack overflow detection),
   - GNU libiconv (for more character set conversions).

2. Unpack the source, start a console with a shell.
   Make sure that the MSVC4.0 or MSVC5.0 or MSVC6.0 utilities ("cl" etc.)
   are found in PATH. For example, I use the following settings:

        set MSDEVDIR=C:\Program Files\Microsoft Visual Studio
        set MSVCDIR=%MSDEVDIR%\VC98
        set Include=%MSDEVDIR%\VC98\include
        set Lib=%MSDEVDIR%\VC98\lib
        set PATH=%MSDEVDIR%\VC98\bin;%MSDEVDIR%\Common\MSDev98\Bin;%PATH%

   Alternatively you can use a file vcvars32.bat supplied with MSVC. Copy
   it to some location in the PATH and add the following line to its end:

        %1 %2 %3 %4 %5 %6 %7 %8 %9

   Now you can call VC command line utilities in the proper enviroinment
   prepending it with vcvars32. For example

        vcvars32 nmake

3. Ensure unix-like command-line utilities used in the build: sed, grep,
   touch, rm (more the better) are in the PATH. There are a few such packages
   available, for example UnxUtils (http://unxutils.sourceforge.net/) or
   cygwin (overkill for this particular case).


   Then build a few tools and libraries:

        cd utils
        cd gcc-cccp
        nmake -f Makefile.msvc
        cd ..
        cd ..

        cd ffcall
        nmake -f Makefile.msvc check
        cd ..

        cd libcharset
        nmake -f Makefile.msvc check
        cd ..

   Copy the appropriate makefile to src\makefile:

     for MSVC4.0:

        copy win32msvc\makefile.msvc4 src\makefile

     for MSVC5.0 or MSVC6.0:

        copy win32msvc\makefile.msvc5 src\makefile

     same, debug version:

        copy win32msvc\makefile.msvc5d src\makefile

   Check that environment variable MSVCDIR points to VC98 directory
   or uncomment and modify the value of MSVCDIR in src\makefile to
   match your site.

        cd src
        nmake

4. (optional) Using cygwin:

        cd src
        make distrib
