]> granicus.if.org Git - nethack/commitdiff
Includes:
authornethack.allison <nethack.allison>
Fri, 15 Feb 2002 13:26:27 +0000 (13:26 +0000)
committernethack.allison <nethack.allison>
Fri, 15 Feb 2002 13:26:27 +0000 (13:26 +0000)
1) Removal of bmp placement in binary directory in NT
2) No use of "intrinsic function" optimization in dsp
3) Compilation of resource file for NT Console

Untested on Borland yet.  Tested on console/graphical/ide Microsoft C 6.0

Files
sys/winnt/Makefile.bcc
sys/winnt/Makefile.nt
win/win32/nethackw.dsp

diff --git a/Files b/Files
index 86c73b0abea6fe94e1bb802d07e2b72dbee27330..61d20f691de044308c468116467b7b251cddd4f4 100644 (file)
--- a/Files
+++ b/Files
@@ -171,9 +171,9 @@ vmsmisc.c       vmstty.c        vmsunix.c
 
 sys/winnt:
 (files for Windows 9x, NT and Windows2000 version)
-defaults.nh     Install.nt      Makefile.bcc    Makefile.nt     mapimail.c
-nethack.def     nhico.uu        nhsetup.bat     ntsound.c       nttty.c
-win32api.h      winnt.c
+console.rc      defaults.nh     Install.nt      Makefile.bcc    Makefile.nt
+mapimail.c      nethack.def     nhico.uu        nhsetup.bat     ntsound.c
+nttty.c         win32api.h      winnt.c
 
 util:
 (files for all versions)
index 5ecad24020617db415af4b3c043500a51f1bb8a6..50a4d85102c21d43485bf95e8c932df428871ebd 100644 (file)
@@ -196,7 +196,7 @@ TILEGAME  = $(O)tile.o $(O)mhaskyn.o $(O)mhdlg.o \
        $(O)mhmenu.o $(O)mhmsgwnd.o $(O)mhrip.o \
        $(O)mhstatus.o $(O)mhtext.o $(O)mswproc.o $(O)winhack.o
 TILEDEF   = -DTILES -DMSWIN_GRAPHICS
-TILERES          = $(O)winhack.res
+TILERES   = $(O)winhack.res
 TILEINCL  = -I$(WIN32)
 TILEHDR   = $(WIN32)\mhaskyn.h $(WIN32)\mhdlg.h $(WIN32)\mhfont.h \
        $(WIN32)\mhinput.h $(WIN32)\mhmain.h $(WIN32)\mhmap.h $(WIN32)\mhmenu.h \
@@ -206,7 +206,7 @@ TILEHDR   = $(WIN32)\mhaskyn.h $(WIN32)\mhdlg.h $(WIN32)\mhfont.h \
 TILEGAME  = $(O)nttty.o    
 TILEDEF   = -DWIN32CON
 TILEHDR   =
-TILERES   =
+TILERES   = $(O)console.res
 TILEINCL  =
 !ENDIF
 
@@ -576,6 +576,9 @@ tileutil: $(U)gif2txt.exe $(U)txt2ppm.exe
 !IF "$(GRAPHICAL)"=="Y"
 $(TILERES): $(TILEBMP) $(WIN32)\winhack.rc
        @$(rc) -r -fo$@ -i$(WIN32) -dNDEBUG $(WIN32)\winhack.rc
+!ELSE
+$(TILERES): $(NTSYS)\console.rc
+       @$(rc) -r -fo$@ -i$(NTSYS) -dNDEBUG $(NTSYS)\console.rc
 !ENDIF
 
 #==========================================
index a46b0d2fe1fb55df11f3e132329718014262d917..e2f79782d4deb92ddeab1e07ea325b89deb738b2 100644 (file)
@@ -142,7 +142,7 @@ TILEGAME  = $(O)tile.o $(O)mhaskyn.o $(O)mhdlg.o \
        $(O)mhmenu.o $(O)mhmsgwnd.o $(O)mhrip.o \
        $(O)mhstatus.o $(O)mhtext.o $(O)mswproc.o $(O)winhack.o
 TILEDEF   = -DTILES -DMSWIN_GRAPHICS
-TILERES          = $(O)winhack.res
+TILERES   = $(O)winhack.res
 TILEINCL  = -I$(WIN32)
 TILEHDR   = $(WIN32)\mhaskyn.h $(WIN32)\mhdlg.h $(WIN32)\mhfont.h \
        $(WIN32)\mhinput.h $(WIN32)\mhmain.h $(WIN32)\mhmap.h $(WIN32)\mhmenu.h \
@@ -152,7 +152,7 @@ TILEHDR   = $(WIN32)\mhaskyn.h $(WIN32)\mhdlg.h $(WIN32)\mhfont.h \
 TILEGAME  = $(O)nttty.o    
 TILEDEF   = -DWIN32CON
 TILEHDR   =
-TILERES   =
+TILERES   = $(O)console.res
 TILEINCL  =
 !ENDIF
 
@@ -469,9 +469,6 @@ $(O)install.tag:    $(DAT)\data     $(DAT)\rumors    $(DAT)\dungeon \
        @if exist $(GAMEDIR)\$(GAME).PDB echo NOTE: You may want to remove $(GAMEDIR)\$(GAME).pdb to conserve space
        -copy $(NTSYS)\defaults.nh   $(GAMEDIR)\defaults.nh
        copy $(U)recover.exe  $(GAMEDIR)
-! IF ("$(TILEDEF)"!="")
-        if exist $(TILEBMP) copy $(TILEBMP) $(GAMEDIR)
-! ENDIF
        echo install done > $@
 
 #      copy $(NTSYS)\winnt.hlp    $(GAMEDIR)
@@ -525,6 +522,9 @@ tileutil: $(U)gif2txt.exe $(U)txt2ppm.exe
 !IF "$(GRAPHICAL)"=="Y"
 $(TILERES): $(TILEBMP) $(WIN32)\winhack.rc
        @$(rc) -r -fo$@ -i$(WIN32) -dNDEBUG $(WIN32)\winhack.rc
+!ELSE
+$(TILERES): $(NTSYS)\console.rc
+       @$(rc) -r -fo$@ -i$(NTSYS) -dNDEBUG $(NTSYS)\console.rc
 !ENDIF
 
 #==========================================
@@ -566,8 +566,6 @@ $(GAMEFILE) : $(ALLOBJ) $(TILERES)
        @if exist $(O)install.tag del $(O)install.tag
        @if exist $(GAMEDIR)\$(GAME).bak del $(GAMEDIR)\$(GAME).bak
 
-$(GAME)_.ico : $(NTSYS)\$(GAME).ico
-       @copy $(NTSYS)\$(GAME).ico $@
 #
 #  Secondary Targets.
 #
index e91133f79d882c1d534871d296f84adae2f64f7c..91fb03fa5df433d1e86f160ac783405fc281ffa9 100644 (file)
@@ -42,8 +42,8 @@ RSC=rc.exe
 # PROP Intermediate_Dir "Release"
 # PROP Ignore_Export_Lib 0
 # PROP Target_Dir ""
-# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /Yu"stdafx.h" /FD /c
-# ADD CPP /nologo /W3 /GX /O2 /I "..\win\win32" /I "..\include" /I "..\sys\winnt" /I "..\sys\share" /I "..\win\share" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "_MBCS" /D "DLB" /D "MSWIN_GRAPHICS" /FD /c
+# ADD BASE CPP /nologo /W3 /GX /Og /Oy /Ob1 /Gs /Gf /Gy /Oi- /Ot  /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /Yu"stdafx.h" /FD /c
+# ADD CPP /nologo /W3 /GX /Og /Oy /Ob1 /Gs /Gf /Gy /Oi- /Ot  /I "..\win\win32" /I "..\include" /I "..\sys\winnt" /I "..\sys\share" /I "..\win\share" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "_MBCS" /D "DLB" /D "MSWIN_GRAPHICS" /FD /c
 # SUBTRACT CPP /YX /Yc /Yu
 # ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
 # ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32