win32 updates (from <Someone>)
- restructured Install.nt quite a bit. It now contains instructions to build a graphical nethack using NMAKE, too. I merged the instructions for command line builds, and separated the IDE build; that made more sense to me. It is shorter, too. - added some lines to all Makefiles so they now build NetHackW.exe when GRAPHICAL is "Y", and NetHack.exe otherwise. I espacially did not test this on Borland. Previously, the makefiles would always build NetHack.exe. - changed the IDE files to build NetHackW.exe instead of nethackw.exe. This is only cosmetic, but consistent with the other executable. - made a small change to pcmain.c, as the MinGW linker cannot decide between main() and WinMain() when both are present, as explained in <Someone>'s original message. (I used a #ifndef instead of comments ;-) The MinGW graphical build indeed seems to work.
This commit is contained in:
@@ -96,7 +96,7 @@ Package=<4>
|
||||
|
||||
###############################################################################
|
||||
|
||||
Project: "nethackw"=.\build\nethackw.dsp - Package Owner=<4>
|
||||
Project: "NetHackW"=.\build\NetHackW.dsp - Package Owner=<4>
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
|
||||
+12
-12
@@ -1,24 +1,24 @@
|
||||
# Microsoft Developer Studio Project File - Name="nethackw" - Package Owner=<4>
|
||||
# Microsoft Developer Studio Project File - Name="NetHackW" - Package Owner=<4>
|
||||
# Microsoft Developer Studio Generated Build File, Format Version 6.00
|
||||
# ** DO NOT EDIT **
|
||||
|
||||
# TARGTYPE "Win32 (x86) Application" 0x0101
|
||||
|
||||
CFG=nethackw - Win32 Debug
|
||||
CFG=NetHackW - Win32 Debug
|
||||
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
|
||||
!MESSAGE use the Export Makefile command and run
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "nethackw.mak".
|
||||
!MESSAGE NMAKE /f "NetHackW.mak".
|
||||
!MESSAGE
|
||||
!MESSAGE You can specify a configuration when running NMAKE
|
||||
!MESSAGE by defining the macro CFG on the command line. For example:
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "nethackw.mak" CFG="nethackw - Win32 Debug"
|
||||
!MESSAGE NMAKE /f "NetHackW.mak" CFG="NetHackW - Win32 Debug"
|
||||
!MESSAGE
|
||||
!MESSAGE Possible choices for configuration are:
|
||||
!MESSAGE
|
||||
!MESSAGE "nethackw - Win32 Release" (based on "Win32 (x86) Application")
|
||||
!MESSAGE "nethackw - Win32 Debug" (based on "Win32 (x86) Application")
|
||||
!MESSAGE "NetHackW - Win32 Release" (based on "Win32 (x86) Application")
|
||||
!MESSAGE "NetHackW - Win32 Debug" (based on "Win32 (x86) Application")
|
||||
!MESSAGE
|
||||
|
||||
# Begin Project
|
||||
@@ -29,7 +29,7 @@ CPP=cl.exe
|
||||
MTL=midl.exe
|
||||
RSC=rc.exe
|
||||
|
||||
!IF "$(CFG)" == "nethackw - Win32 Release"
|
||||
!IF "$(CFG)" == "NetHackW - Win32 Release"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 0
|
||||
@@ -60,7 +60,7 @@ LINK32=link.exe
|
||||
OutDir=.\Release
|
||||
SOURCE="$(InputPath)"
|
||||
PostBuild_Desc=Install exe
|
||||
PostBuild_Cmds=copy $(OutDir)\nethackw.exe ..\binary \
|
||||
PostBuild_Cmds=copy $(OutDir)\NetHackW.exe ..\binary \
|
||||
copy ..\dat\nhdat ..\binary \
|
||||
copy ..\dat\license ..\binary \
|
||||
if exist tiles.bmp copy tiles.bmp ..\binary \
|
||||
@@ -70,7 +70,7 @@ if exist ..\doc\recover.txt copy ..\doc\recover.txt ..\binary\recover.txt \
|
||||
copy ..\sys\winnt\defaults.nh ..\binary\defaults.nh
|
||||
# End Special Build Tool
|
||||
|
||||
!ELSEIF "$(CFG)" == "nethackw - Win32 Debug"
|
||||
!ELSEIF "$(CFG)" == "NetHackW - Win32 Debug"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 1
|
||||
@@ -101,7 +101,7 @@ OutDir=.\Debug
|
||||
SOURCE="$(InputPath)"
|
||||
PostBuild_Desc=Install exe
|
||||
PostBuild_Cmds=if NOT exist ..\binary\*.* mkdir ..\binary \
|
||||
copy $(OutDir)\nethackw.exe ..\binary \
|
||||
copy $(OutDir)\NetHackW.exe ..\binary \
|
||||
copy ..\dat\nhdat ..\binary \
|
||||
copy ..\dat\license ..\binary \
|
||||
if exist tiles.bmp copy tiles.bmp ..\binary \
|
||||
@@ -115,8 +115,8 @@ copy ..\sys\winnt\defaults.nh ..\binary\defaults.nh
|
||||
|
||||
# Begin Target
|
||||
|
||||
# Name "nethackw - Win32 Release"
|
||||
# Name "nethackw - Win32 Debug"
|
||||
# Name "NetHackW - Win32 Release"
|
||||
# Name "NetHackW - Win32 Debug"
|
||||
# Begin Group "Source Files"
|
||||
|
||||
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
|
||||
|
||||
Reference in New Issue
Block a user