This article is from the GNU Chess and XBoard FAQ, by Tim Mann firstname.lastname@example.org with numerous contributions by others.
The source code for WinBoard is available from the author's Web page,
WinBoard is currently developed using Microsoft Visual C++ 5.0. By far
the easiest way to recompile it, and the only way that is really known
to work, is to use MSVC++ 5.0. You can build the program either from the
MSVC++ GUI or from the command line using the nmake program supplied
WinBoard is a Win32 application, so you definitely need a compiler and
tool set that supports Win32. In particular, DJGPP can't be used to
build WinBoard. DJGPP can build only 32-bit MSDOS programs; that is,
programs that use a DOS extender to get a 32-bit address space and do
not make any Windows calls. It can't build Win32 programs.
Cygwin32 (see http://www.cygnus.com/ ) is said to be able to build Win32
GUI apps, so perhaps it could be used to build WinBoard. I don't know if
anyone has tried this and gotten it to work. The Makefile (and maybe
other things) would most likely need changes. It would be nice to do
this conversion, so that the free WinBoard program could be built with
free tools, but I can't afford the time. Perhaps someone else will try.
Let me know if you do.
The WinBoard Makefile includes a rule for rebuilding parser.c from
parser.l using the program "flex". Flex is free GNU software, available
from many sites around the Internet. If you don't have a copy handy, and
you don't need to modify parser.l, you can simply remove the rule from
the Makefile. The file parser.c is supplied with the WinBoard source
WinBoard executables for the DEC Alpha running Windows NT will be
provided in the future, along with instructions for compiling your own.
For now, contact me if you want to do this.