From: Eric Mullins Date: Wed, 15 Jul 2009 05:39:12 +0000 (-0600) Subject: Final makefile adjustments and compiling instructions. X-Git-Tag: v4.4.0.beta1~6 X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=34b434f3be18842bae13a06dec3e8c3bd591bfd0;p=xboard.git Final makefile adjustments and compiling instructions. --- diff --git a/README b/README index 2a78c7b..41c83fb 100644 --- a/README +++ b/README @@ -29,17 +29,14 @@ You can build WinBoard using the free Cygwin toolchain from www.cygnus.com with the following commands. cd winboard - make -f cygwin.mak + make -f makefile.gcc You can build WinBoard using Microsoft Visual C with the following commands, or by opening the project in Visual Studio and clicking the build button. cd winboard - nmake -f msvc.mak - -There is also a contributed .mak file for Borland C. It's not -maintained and thus may need updating if you want to use it. + nmake -f makefile.ms Reporting problems diff --git a/winboard/COMPILING b/winboard/COMPILING new file mode 100644 index 0000000..1ab1906 --- /dev/null +++ b/winboard/COMPILING @@ -0,0 +1,46 @@ +Compiling with an Integrated Development Envrionment + + Microsoft Visual C++ + -- + For MSVC 6.0 IDE, all you need to do is 'File|Open Workspace...' and select + 'winboard.dsw'. Then to build, choose 'Build|Batch Build...' and select + the targets you want to build. This method has full support for Debug and + Release builds either with or without JAWS support. + + For later versions of Visual C++, open the same workspace and convert when + prompted. Then compile as above. + + + DevCpp + -- + For DevCpp, you need to 'File|Open Project or File...' and select either + 'winboard.dev' or 'WB4Jaws.dev'. After parsing the project, you can 'Execute| + Compile' to build. This IDE has no facility for defines in the resource + compiler, so the version information resource will not indicate JAWS support + even if it actually has that support. These projects are not set up for + debugging, but you can do so by adjusting the 'Compiler' and 'Parameters' + options in the 'Project|Project Options' dialog. + + + +Compiling from the Command Line + + GCC -- this includes cygwin, mingw, djgpp and others. + + make -f makefile.gcc + + You can modify certain settings in the makefile such as JAWS support, + debugging support. If using cygwin, you can select whether or not to + link with cygwin1.dll instead of the msvcrt runtime. + + + CL -- this includes MSVC and recent Intel compilers. + + nmake -f makefile.ms Note: NMAKE, not MAKE + + For Visual Studio 2005 and later, set VCVER to 8, otherwise set it to 6. + You can select JAWS support or debugging just like the GCC makefile. For + MSVC 6.0 and earlier, you are going to need the latest SDK from Microsoft. + After you install it, set the SDK_INC variable appropriately. It defaults + to the standard location, but you still need to uncomment the line. + diff --git a/winboard/Winboard.dev b/winboard/Winboard.dev index ac36507..39b89f3 100644 --- a/winboard/Winboard.dev +++ b/winboard/Winboard.dev @@ -10,13 +10,13 @@ Libs= PrivateResource=Winboard_private.rc ResourceIncludes=.. MakeIncludes= -Compiler=-I.._@@_-I._@@_ +Compiler=-I.._@@_-I._@@_-DNDEBUG_@@_ CppCompiler= Linker=-fpic_@@_-s_@@_-mwindows_@@_-lwsock32_@@_-lwinmm_@@_-lcomctl32_@@_ IsCpp=0 Icon= ExeOutput= -ObjectOutput= +ObjectOutput=./objs OverrideOutput=0 OverrideOutputName=Winboard.exe HostApplication= @@ -24,7 +24,7 @@ Folders= CommandLine= UseCustomMakefile=0 CustomMakefile=makefile.gcc -IncludeVersionInfo=1 +IncludeVersionInfo=0 SupportXPThemes=0 CompilerSet=0 CompilerSettings=0000000000001000000100 @@ -228,24 +228,6 @@ Priority=1000 OverrideBuildCmd=0 BuildCmd= -[VersionInfo] -Major=4 -Minor=4 -Release=0 -Build=11 -LanguageID=1033 -CharsetID=1252 -CompanyName= -FileVersion=4.4.0k -FileDescription=Developed using the Dev-C++ IDE -InternalName=winboard.exe -LegalCopyright=GPLv3 -LegalTrademarks= -OriginalFilename=winboard.exe -ProductName=Winboard -ProductVersion=4.4.0k -AutoIncBuildNr=0 - [Unit21] FileName=..\zippy.c CompileCpp=0 diff --git a/winboard/makefile.gcc b/winboard/makefile.gcc index 7e7b820..2e78c0b 100644 --- a/winboard/makefile.gcc +++ b/winboard/makefile.gcc @@ -70,7 +70,6 @@ $(PROJ).hlp : $(PROJ).rtf # Update the resource if necessary -#wbres.o: $(RESDEPS) wbres.o: $(PROJ).rc $(PROJ).h resource.h windres $(DEFS) --use-temp-file --include-dir .. $< -O coff -o $@ diff --git a/winboard/makefile.ms b/winboard/makefile.ms index c6b886c..2e0b953 100644 --- a/winboard/makefile.ms +++ b/winboard/makefile.ms @@ -3,13 +3,19 @@ # For MSVC 8 (aka 2005) set VCVER=8. Beyond that try 8 first. VCVER=6 +# If using MSVC 6.0 or earlier, you will need the latest platform SDK supported. +# Set SDK_INC to the include directory after you install it. +# See: http://www.microsoft.com/msdownload/platformsdk/sdkupdate/psdk-full.htm +#SDK_INC="C:\Program Files\Microsoft SDK\include" + PROJ = winboard -OBJS=backend.obj book.obj gamelist.obj lists.obj moves.obj pgntags.obj uci.obj zippy.obj\ - parser.obj wclipbrd.obj wedittags.obj wengineo.obj wevalgraph.obj wgamelist.obj\ - whistory.obj winboard.obj wlayout.obj woptions.obj wsnap.obj wsockerr.obj help.obj +OBJS=backend.obj book.obj gamelist.obj lists.obj moves.obj pgntags.obj uci.obj\ + zippy.obj parser.obj wclipbrd.obj wedittags.obj wengineo.obj wevalgraph.obj\ + wgamelist.obj whistory.obj winboard.obj wlayout.obj woptions.obj wsnap.obj\ + wsockerr.obj help.obj # Debugging? @@ -54,6 +60,9 @@ OPTS = -Od -Zi -Fd$(PROJ).pdb $(LIBF)d LFDEBUG = -DEBUG -PDB:$(PROJ).pdb -MAP:$(PROJ).map $(CLIB)d.lib !endif CF = $(CFDEBUG) $(DEFS) $(DEPRECATE) -I. -I.. +!if DEFINED(SDK_INC) +CF = $(CF) -I$(SDK_INC) +!endif CFLAGS = -c -nologo $(WARN) $(CF) $(ARCH) $(OPTS) LFLAGS = -nologo $(LFDEBUG) @@ -167,4 +176,4 @@ $(PROJ).exe: $(OBJS) $(PROJ).res $(PROJ).hlp .c.obj: - $(CC) $(CFLAGS) $< \ No newline at end of file + $(CC) $(CFLAGS) $<