        How-to build PCRE libraries and utils 
    (static and DLL) for Microsoft Visual Studio

You need: * Visual C (of course) 6.0. Version 5.0 may or may not work - 
          I haven't tried it. Make sure that MSVC is correctly configured for
          usage from the command line (run vcvars32.bat if not);
          * gmake (GNU make) for Win32. Can be easily compiled from the sources
          (there is Windows port), or use the one in the CygWin installation,
          if you already have it;
          * perl5 for Win32. Download one from ActiveState at
          http://www.activestate.com/Products/ActivePerl/download.html, if you
          still don't have perl installed (how can you live without it?! ;))


  If you don't have cl.exe, link.exe, lib.exe, gmake.exe, perl.exe etc. in your
PATH, then you have either to add it, or modify build.bat (for gmake.exe) and
Makefile.win32 (the rest).
  Instead of running ./configure on Unix, run ./configure_win32.bat. It will 
create config.h and pcre.h suitable for Windows (to create pcre.h, it will 
replace PCRE_MAJOR, PCRE_MAJOR and PCRE_DATE in the pcre.in with the values 
from configure.in).
  To build PCRE, use build.bat.

  BUILD.bat [-utf8] [-prefix <dir>] [-execprefix <dir>] 
            [clean] [distclean] [test] [install]

     -utf8 enables UTF-8 support;
     -prefix and -execprefix set directories for install-target;
     the rest specifies different makefile targets

  'build.bat [-utf8] test' invokes ./RunTest.bat (with or w/o UTF-8 tests).
There is no way to choose tests - all tests will be run.

  This build will create both static and DLL versions of PCRE libraries and 
executables. Naming convention is rather obvious :)) : 
  libpcre.lib - static version of library
  libpcre.dll libpcre.dll.lib - DLL and import library for DLL version
  pcregrep.exe - linked with static PCRE library
  pcregrep.dll.exe - linked with PCRE DLL
  etc.

    That's it..

                       /Victor Mozguine <victor.mozguine@telelogic.com>
