A couple of patches are required unfortunately

Unfortunately a couple of glitches were encountered during the build of
the DOS binary.

Also, somewhere along the way the ability to separate the debug info
for the win32 tty binary into its own PDB file was removed from
Makefile.msc.  I wasn't aware of that until I went to build the binary,
and discovered that I had no PDB file to stow away for bug
reports.
This commit is contained in:
nethack.allison
2002-03-13 07:14:24 +00:00
parent be7145d1a5
commit a6a209edea
2 changed files with 5 additions and 12 deletions

View File

@@ -897,12 +897,8 @@ char *sopt;
* getch();
*/
iflags.grmode = 0;
iflags.hasvesa = 0;
iflags.hasvga = 0;
iflags.has8514 = 0;
iflags.usevesa = 0;
iflags.usevga = 0;
iflags.use8514 = 0;
if (strncmpi(sopt,"def",3) == 0) { /* default */
/* do nothing - default */
@@ -939,11 +935,9 @@ char *sopt;
# endif
/*
* Auto-detect Priorities (arbitrary for now):
* VESA, 8514, VGA
* VGA
*/
if (iflags.hasvesa) iflags.usevesa = 1;
else if (iflags.has8514) iflags.use8514 = 1;
else if (iflags.hasvga) {
if (iflags.hasvga) {
iflags.usevga = 1;
/* VGA depends on BIOS to enable function keys*/
iflags.BIOS = 1;

View File

@@ -184,7 +184,7 @@ DLBFLG =
#==========================================
CFLAGSBASE = -c $(cflags) $(cvarsmt) -I$(INCL) -nologo $(cdebug) $(WINPINC)
LFLAGSBASEC = $(linkdebug) $(conflags) $(conlibsmt)
LFLAGSBASEC = $(linkdebug) /NODEFAULTLIB /INCREMENTAL:NO /RELEASE /NOLOGO -subsystem:console,4.0 $(conlibsmt)
LFLAGSBASEG = $(linkdebug) $(guiflags) $(guilibsmt) comctl32.lib
#==========================================
@@ -197,8 +197,7 @@ LFLAGSU = $(LFLAGSBASEC)
#==========================================
# - Game build
#==========================================
LFLAGSBASE = $(linkdebug) $(conflags) $(conlibsmt)
LFLAGSBASE = $(linkdebug) /NODEFAULTLIB /INCREMENTAL:NO /RELEASE /NOLOGO -subsystem:console,4.0 $(conlibsmt)
CFLAGS = $(CFLAGSBASE) $(WINPFLAG) $(DLBFLG)
NHLFLAGS1 = /NODEFAULTLIB /INCREMENTAL:NO /PDB:"$(GAME).PDB" /RELEASE /NOLOGO
NHLFLAGS2 = /MAP:"$(GAME).MAP" /MACHINE:$(CPU) -IGNORE:505
@@ -574,7 +573,7 @@ $(NHRES): $(NTSYS)\console.rc $(NTSYS)\NetHack.ico
$(GAMEFILE) : $(ALLOBJ) $(NHRES)
@if not exist $(GAMEDIR)\*.* mkdir $(GAMEDIR)
@echo Linking....
@$(link) $(LFLAGS) -out:$@ @<<$(GAME).lnk
$(link) $(LFLAGS) -out:$@ @<<$(GAME).lnk
$(ALLOBJ:^ =^
) $(NHRES)
<<