Updated compiling instructions.
[xboard.git] / winboard / COMPILING
1 Compiling with an Integrated Development Envrionment\r
2 \r
3     Microsoft Visual C++\r
4     --\r
5     For MSVC 6.0 IDE, all you need to do is 'File|Open Workspace...' and select\r
6     'winboard.dsw'.  Then to build, choose 'Build|Batch Build...' and select\r
7     the targets you want to build.  This method has full support for Debug and\r
8     Release builds either with or without JAWS support.\r
9 \r
10     For later versions of Visual C++, open the same workspace and convert when\r
11     prompted.  Then compile as above.\r
12 \r
13 \r
14     DevCpp\r
15     --\r
16     For DevCpp, you need to 'File|Open Project or File...' and select either\r
17     'winboard.dev' or 'WB4Jaws.dev'.  After parsing the project, you can\r
18     'Execute|Compile' to build.  This IDE has no facility for defines in the\r
19     resource compiler, so the version information resource will not indicate\r
20     JAWS support even if it actually has that support.  These projects are not\r
21     set up for debugging, but you can do so by adjusting the 'Compiler' and\r
22     'Parameters' options in the 'Project|Project Options' dialog.\r
23 \r
24 \r
25 \r
26 Compiling from the Command Line\r
27 \r
28     GCC -- this includes cygwin, mingw, djgpp and others.\r
29 \r
30         make -f makefile.gcc\r
31 \r
32         You can modify certain settings in the makefile such as JAWS support,\r
33         debugging support.  If using cygwin, you can select whether or not to\r
34         link with cygwin1.dll instead of the msvcrt runtime.\r
35 \r
36 \r
37     CL -- this includes MSVC and recent Intel compilers.\r
38 \r
39         nmake -f makefile.ms        Note: NMAKE, not MAKE\r
40 \r
41         For Visual Studio 2005 and later, set VCVER to 8, otherwise set it to\r
42         6.  You can select JAWS support or debugging just like the GCC\r
43         makefile.  For MSVC 6.0 and earlier, you are going to need the latest\r
44         SDK from Microsoft.  After you install it, set the SDK_INC variable\r
45         appropriately.  It defaults to the standard location, but you still\r
46         need to uncomment the line.  Prior to compiling from the command line,\r
47         it will be necessary to invoke VCVARS32.BAT if you didn't have MSVC\r
48         register the command line environment variables during installation.\r