# wpr3287 Build Instructions

## Using MinGW

wpr3287 can be built on Windows using the MinGW tools under Cygwin. For more information about MinGW, visit the MinGW webpage. For more information about Cygwin, visit the Cygwin webpage.

The minimum set of Cygwin packages needed to build wpr3287 are:

- The default set (bash, etc.)
- The make package from the Devel group.
- The gcc-core package from the Devel group.

[optional] If you want SSL support, you will need to build a MinGW OpenSSL library. That requres the following packages:

- The openssl package from the Net group. Note that you want the source for openssl, not just the binaries.
- The perl package from the Interpreters group.

[optional] To build and install the OpenSSL library, use the following Cygwin shell commands:

       cd /usr/src/openssl-*
       ./Configure --prefix=/usr/local/mingw-openssl mingw
       make
       make install

To build wpr3287 (with or without SSL support) start a Cygwin shell, cd to the directory where the source code resides, and type:

       make

wpr3287 was developed primarily on 32-bit Windows XP, but should be buildable on Windows Server 2003 or Windows 2000. It has not been built or tested on 64-bit Windows or on Windows Vista.

## Using Microsoft Tools

To build wpr3287 using Microsoft Visual C++, start a Command Prompt window. At the command prompt, 'cd' to the wpr3287 source directory, and type:

       nmake /f Msc\Makefile

This will build `wpr3287.exe`. The DLLs it depends on are part of the wc3270 package and need to be built separately.

Note that the resulting version of wpr3287 will not include SSL support. To build wpr3287 with a statically-linked OpenSSL library, you must modify `Msc\Makefile`; instructions for doing that are included in the file.