Merge branch 'master' into mac-build-tty-pkg
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.6 bemain.c $NHDT-Date: 1432512791 2015/05/25 00:13:11 $ $NHDT-Branch: master $:$NHDT-Revision: 1.17 $ */
|
||||
/* NetHack 3.6 bemain.c $NHDT-Date: 1447844549 2015/11/18 11:02:29 $ $NHDT-Branch: master $:$NHDT-Revision: 1.18 $ */
|
||||
/* Copyright (c) Dean Luick, 1996. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
@@ -66,10 +66,10 @@ MAIN(int argc, char **argv)
|
||||
|
||||
display_gamewindows();
|
||||
|
||||
/*
|
||||
* First, try to find and restore a save file for specified character.
|
||||
* We'll return here if new game player_selection() renames the hero.
|
||||
*/
|
||||
/*
|
||||
* First, try to find and restore a save file for specified character.
|
||||
* We'll return here if new game player_selection() renames the hero.
|
||||
*/
|
||||
attempt_restore:
|
||||
if ((fd = restore_saved_game()) >= 0) {
|
||||
#ifdef NEWS
|
||||
@@ -167,7 +167,6 @@ process_options(int argc, char **argv)
|
||||
case 'D':
|
||||
wizard = TRUE, discover = FALSE;
|
||||
break;
|
||||
/* otherwise fall thru to discover */
|
||||
case 'X':
|
||||
discover = TRUE, wizard = FALSE;
|
||||
break;
|
||||
@@ -268,6 +267,7 @@ authorize_wizard_mode()
|
||||
* do anything extra.
|
||||
*/
|
||||
void nethack_exit(int status);
|
||||
|
||||
void
|
||||
nethack_exit(int status)
|
||||
{
|
||||
|
||||
2566
sys/share/lev_lex.c
2566
sys/share/lev_lex.c
File diff suppressed because it is too large
Load Diff
4358
sys/share/lev_yacc.c
4358
sys/share/lev_yacc.c
File diff suppressed because it is too large
Load Diff
@@ -1,5 +1,5 @@
|
||||
# NetHack Makefile.
|
||||
# NetHack 3.6 Makefile.dat $NHDT-Date: 1432512788 2015/05/25 00:13:08 $ $NHDT-Branch: master $:$NHDT-Revision: 1.15 $
|
||||
# NetHack 3.6 Makefile.dat $NHDT-Date: 1447844574 2015/11/18 11:02:54 $ $NHDT-Branch: master $:$NHDT-Revision: 1.18 $
|
||||
|
||||
# Root of source tree:
|
||||
NHSROOT=..
|
||||
@@ -35,12 +35,15 @@ x11tiles: ../util/tile2x11 ../win/share/monsters.txt ../win/share/objects.txt \
|
||||
../util/tile2x11 ../win/share/monsters.txt ../win/share/objects.txt \
|
||||
../win/share/other.txt
|
||||
|
||||
beostiles: ../util/tile2beos ../win/share/monsters.txt ../win/share/objects.txt \
|
||||
beostiles: ../util/tile2beos ../win/share/monsters.txt \
|
||||
../win/share/objects.txt \
|
||||
../win/share/other.txt
|
||||
../util/tile2beos ../win/share/monsters.txt ../win/share/objects.txt \
|
||||
../util/tile2beos ../win/share/monsters.txt \
|
||||
../win/share/objects.txt \
|
||||
../win/share/other.txt
|
||||
|
||||
nhtiles.bmp: ../util/tile2bmp ../win/share/monsters.txt ../win/share/objects.txt \
|
||||
nhtiles.bmp: ../util/tile2bmp ../win/share/monsters.txt \
|
||||
../win/share/objects.txt \
|
||||
../win/share/other.txt
|
||||
../util/tile2bmp $@
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# NetHack Makefile.
|
||||
# NetHack 3.6 Makefile.src $NHDT-Date: 1434446945 2015/06/16 09:29:05 $ $NHDT-Branch: master $:$NHDT-Revision: 1.44 $
|
||||
# NetHack 3.6 Makefile.src $NHDT-Date: 1447313972 2015/11/12 07:39:32 $ $NHDT-Branch: master $:$NHDT-Revision: 1.45 $
|
||||
|
||||
# Root of source tree:
|
||||
NHSROOT=..
|
||||
@@ -750,7 +750,8 @@ dogmove.o: dogmove.c $(HACK_H) ../include/mfndpos.h
|
||||
dokick.o: dokick.c $(HACK_H)
|
||||
dothrow.o: dothrow.c $(HACK_H)
|
||||
drawing.o: drawing.c $(HACK_H) ../include/tcap.h
|
||||
dungeon.o: dungeon.c $(HACK_H) ../include/dgn_file.h ../include/dlb.h
|
||||
dungeon.o: dungeon.c $(HACK_H) ../include/dgn_file.h ../include/dlb.h \
|
||||
../include/lev.h
|
||||
eat.o: eat.c $(HACK_H)
|
||||
end.o: end.c $(HACK_H) ../include/lev.h ../include/dlb.h
|
||||
engrave.o: engrave.c $(HACK_H) ../include/lev.h
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# NetHack Makefile.
|
||||
# NetHack 3.6 Makefile.top $NHDT-Date: 1432512789 2015/05/25 00:13:09 $ $NHDT-Branch: master $:$NHDT-Revision: 1.29 $
|
||||
# NetHack 3.6 Makefile.top $NHDT-Date: 1447844578 2015/11/18 11:02:58 $ $NHDT-Branch: master $:$NHDT-Revision: 1.32 $
|
||||
|
||||
# Root of source tree:
|
||||
NHSROOT=.
|
||||
@@ -46,14 +46,14 @@ DIRPERM = 0755
|
||||
|
||||
# per discussion in Install.X11 and Install.Qt
|
||||
#VARDATND =
|
||||
# VARDATND = x11tiles NetHack.ad pet_mark.xbm
|
||||
# VARDATND = x11tiles NetHack.ad pet_mark.xbm rip.xpm
|
||||
# VARDATND = x11tiles NetHack.ad pet_mark.xbm pilemark.xpm
|
||||
# VARDATND = x11tiles NetHack.ad pet_mark.xbm pilemark.xpm rip.xpm
|
||||
# for Atari/Gem
|
||||
# VARDATND = nh16.img title.img GEM_RSC.RSC rip.img
|
||||
# for BeOS
|
||||
# VARDATND = beostiles
|
||||
# for Gnome
|
||||
# VARDATND = x11tiles pet_mark.xbm rip.xpm mapbg.xpm
|
||||
# VARDATND = x11tiles pet_mark.xbm pilemark.xpm rip.xpm mapbg.xpm
|
||||
|
||||
VARDATD = bogusmon data engrave epitaph oracles options quest.dat rumors
|
||||
VARDAT = $(VARDATD) $(VARDATND)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Makefile for NetHack's utility programs.
|
||||
# NetHack 3.6 Makefile.utl $NHDT-Date: 1432512789 2015/05/25 00:13:09 $ $NHDT-Branch: master $:$NHDT-Revision: 1.22 $
|
||||
# NetHack 3.6 Makefile.utl $NHDT-Date: 1447844579 2015/11/18 11:02:59 $ $NHDT-Branch: master $:$NHDT-Revision: 1.25 $
|
||||
|
||||
# Root of source tree:
|
||||
NHSROOT=..
|
||||
@@ -23,7 +23,7 @@ NHSROOT=..
|
||||
# For Bull DPX/2 systems at B.O.S. 2.0 or higher use the following:
|
||||
#
|
||||
# CC = gcc -ansi -D_BULL_SOURCE -D_XOPEN_SOURCE -D_POSIX_SOURCE
|
||||
#
|
||||
#
|
||||
# If you are using GCC 2.2.2 or higher on a DPX/2, just use:
|
||||
#
|
||||
# CC = gcc -ansi
|
||||
@@ -96,7 +96,7 @@ NHSROOT=..
|
||||
#LFLAGS =
|
||||
|
||||
LIBS =
|
||||
|
||||
|
||||
# If you are cross-compiling, you must use this:
|
||||
#OBJDIR = .
|
||||
# otherwise, you can save a little bit of disk space with this:
|
||||
@@ -109,7 +109,7 @@ LEX = lex
|
||||
# YACC = bison -y
|
||||
# YACC = byacc
|
||||
# LEX = flex
|
||||
|
||||
|
||||
# these are the names of the output files from YACC/LEX. Under MS-DOS
|
||||
# and similar systems, they may differ
|
||||
YTABC = y.tab.c
|
||||
@@ -256,7 +256,7 @@ dgn_yacc.o: dgn_yacc.c $(CONFIG_H) ../include/dgn_file.h ../include/date.h
|
||||
dgn_main.o: dgn_main.c $(CONFIG_H) ../include/dlb.h
|
||||
|
||||
# see dgn_comp.l for WEIRD_LEX discussion
|
||||
dgn_lex.o: dgn_lex.c $(CONFIG.H) ../include/dgn_comp.h ../include/dgn_file.h
|
||||
dgn_lex.o: dgn_lex.c $(CONFIG_H) ../include/dgn_comp.h ../include/dgn_file.h
|
||||
@echo $(CC) -c $(CFLAGS) dgn_lex.c
|
||||
@$(CC) -c $(CFLAGS) -DWEIRD_LEX=`egrep -c _cplusplus dgn_lex.c` dgn_lex.c
|
||||
|
||||
@@ -373,6 +373,11 @@ bitmfile.o: ../win/gem/bitmfile.c ../include/bitmfile.h
|
||||
tile2beos.o: ../win/BeOS/tile2beos.cpp $(HACK_H) ../include/tile.h
|
||||
$(CXX) $(CFLAGS) -c ../win/BeOS/tile2beos.cpp
|
||||
|
||||
tileedit: tileedit.cpp $(TEXT_IO)
|
||||
$(QTDIR)/bin/moc -o tileedit.moc tileedit.h
|
||||
$(CC) -o tileedit -I../include -I$(QTDIR)/include -L$(QTDIR)/lib \
|
||||
tileedit.cpp $(TEXT_IO) -lqt
|
||||
|
||||
# using dependencies like
|
||||
# ../src/foo::
|
||||
# @( cd ../src ; $(MAKE) foo )
|
||||
@@ -416,8 +421,5 @@ spotless: clean
|
||||
-rm -f ../include/lev_comp.h ../include/dgn_comp.h
|
||||
-rm -f ../include/tile.h tiletxt.c
|
||||
-rm -f makedefs lev_comp dgn_comp recover dlb
|
||||
-rm -f gif2txt txt2ppm tile2x11 tile2img.ttp xpm2img.ttp tilemap
|
||||
|
||||
tileedit: tileedit.cpp $(TEXT_IO)
|
||||
$(QTDIR)/bin/moc -o tileedit.moc tileedit.h
|
||||
$(CC) -o tileedit -I../include -I$(QTDIR)/include -L$(QTDIR)/lib tileedit.cpp $(TEXT_IO) -lqt
|
||||
-rm -f gif2txt txt2ppm tile2x11 tile2img.ttp xpm2img.ttp \
|
||||
tilemap tileedit
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# NetHack 3.6 macosx $NHDT-Date: 1432512814 2015/05/25 00:13:34 $ $NHDT-Branch: master $:$NHDT-Revision: 1.12 $
|
||||
# NetHack 3.6 macosx $NHDT-Date: 1447844580 2015/11/18 11:03:00 $ $NHDT-Branch: master $:$NHDT-Revision: 1.18 $
|
||||
# Copyright (c) Kenneth Lorber, Kensington, Maryland, 2007.
|
||||
# NetHack may be freely redistributed. See license for details.
|
||||
#
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# NetHack 3.6 macosx10.5 $NHDT-Date: 1432512814 2015/05/25 00:13:34 $ $NHDT-Branch: master $:$NHDT-Revision: 1.21 $
|
||||
# NetHack 3.6 macosx10.5 $NHDT-Date: 1447844587 2015/11/18 11:03:07 $ $NHDT-Branch: master $:$NHDT-Revision: 1.27 $
|
||||
# Copyright (c) Kenneth Lorber, Kensington, Maryland, 2009.
|
||||
# NetHack may be freely redistributed. See license for details.
|
||||
#
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# NetHack 3.6 macosx10.7 $NHDT-Date: 1432512814 2015/05/25 00:13:34 $ $NHDT-Branch: master $:$NHDT-Revision: 1.25 $
|
||||
# NetHack 3.6 macosx10.7 $NHDT-Date: 1447844589 2015/11/18 11:03:09 $ $NHDT-Branch: master $:$NHDT-Revision: 1.31 $
|
||||
# Copyright (c) Kenneth Lorber, Kensington, Maryland, 2009.
|
||||
# NetHack may be freely redistributed. See license for details.
|
||||
#
|
||||
|
||||
@@ -5,18 +5,10 @@
|
||||
0. Please read this entire file before trying to build or install
|
||||
NetHack, then read it again!
|
||||
|
||||
1. Building NetHack requires a C compiler (either Compaq C, DEC C,
|
||||
VAX C, or GNU C) and VMS version V4.6 or later (but see note #9).
|
||||
This release has been tested with Compaq C V6.4 on Alpha/VMS V7.3-1
|
||||
and with VAX C V3.2 and GNU C 2.7.1 on VAX/VMS V5.5-2. The build
|
||||
procedure (vmsbuild.com) should not need to be modified; it accepts
|
||||
an option for selecting the compiler, and it can detect different
|
||||
versions which might require specific command qualifiers. Versions
|
||||
of VAXC earlier than V2.3 will produce many warning messages (about
|
||||
200 per source file; over to 25,000 total!), but NetHack has been
|
||||
verified to compile, link, and execute correctly when built with VAXC
|
||||
V2.2 using vmsbuild.com. There is also a set of Makefiles suitable for
|
||||
use with MMS or MMK; they may or may not work with other make utilities.
|
||||
1. Build testing was done using a recent version of HP C (aka Compaq C
|
||||
aka--and more widely known as--DEC C). Older versions of DEC C will
|
||||
probably work too. Ancient VAX C probably will not. The set of
|
||||
Makefiles are known to be out of date; use vmsbuild.com instead.
|
||||
|
||||
2. Make sure all the NetHack files are in the appropriate directory
|
||||
structure. You should set up a directory--referred to as "top" below
|
||||
@@ -43,6 +35,7 @@
|
||||
[.sys .os2] -- OS/2
|
||||
[.sys .share .sounds] -- AIFF format audio files
|
||||
[.sys .unix] -- guess :-)
|
||||
[.sys .unit .hints] -- configuration data for setup.sh
|
||||
[.sys .wince] -- Windows CE
|
||||
[.sys .wince .ceinc] -- more WinCE
|
||||
[.sys .wince .ceinc .sys] -- ditto
|
||||
@@ -136,10 +129,11 @@
|
||||
|
||||
Notes:
|
||||
|
||||
1. Save files and bones files from 3.4.x and earlier versions
|
||||
will not work with 3.5.0. The scoreboard file (RECORD) from
|
||||
3.4.x or 3.3.x will work; one from version 3.2.x is a slightly different
|
||||
format but should be compatible.
|
||||
0. Versions 3.5.0 was never publicly released.
|
||||
|
||||
1. Save files and bones files from 3.4.x and earlier versions
|
||||
will not work with 3.6.0. The scoreboard file (RECORD) from
|
||||
3.4.x or 3.3.x will work.
|
||||
|
||||
2. To specify user-preference options in your environment, define the
|
||||
logical name NETHACKOPTIONS to have the value of a quoted string
|
||||
@@ -174,7 +168,9 @@ Notes:
|
||||
placed in the playground directory by install.com. Also, an example
|
||||
configuration file can be found in [.win.X11]nethack.rc.)
|
||||
|
||||
3. Instead of using vmsbuild.com to compile and link everything, you can
|
||||
3. [As mentioned above, the set of Makefiles is out of date so disregard
|
||||
this note....]
|
||||
Instead of using vmsbuild.com to compile and link everything, you can
|
||||
use the set of Makefiles found in the vms subdirectory, provided you
|
||||
have an appropriate and compatible make utility. They've been tested
|
||||
using MMK, a freeware clone of Digital's MMS. There are five of them,
|
||||
@@ -477,3 +473,4 @@ Notes:
|
||||
and the C compiler used.
|
||||
|
||||
20-OCT-2003
|
||||
minimally updated 9-NOV-2015...
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# NetHack Makefile (VMS) - for building nethack itself.
|
||||
# NetHack 3.6 Makefile.src $NHDT-Date: 1432512790 2015/05/25 00:13:10 $ $NHDT-Branch: master $:$NHDT-Revision: 1.26 $
|
||||
# NetHack 3.6 Makefile.src $NHDT-Date: 1447314365 2015/11/12 07:46:05 $ $NHDT-Branch: master $:$NHDT-Revision: 1.27 $
|
||||
|
||||
# Copy this file to [.src]Makefile. and then edit it as needed.
|
||||
# The default configuration is for building with DEC C (aka Compaq C).
|
||||
@@ -392,7 +392,7 @@ dogmove.obj : dogmove.c $(HACK_H) $(INC)mfndpos.h
|
||||
dokick.obj : dokick.c $(HACK_H)
|
||||
dothrow.obj : dothrow.c $(HACK_H)
|
||||
drawing.obj : drawing.c $(HACK_H) $(INC)tcap.h
|
||||
dungeon.obj : dungeon.c $(HACK_H) $(INC)dgn_file.h $(INC)dlb.h
|
||||
dungeon.obj : dungeon.c $(HACK_H) $(INC)dgn_file.h $(INC)dlb.h $(INC)lev.h
|
||||
eat.obj : eat.c $(HACK_H)
|
||||
end.obj : end.c $(HACK_H) $(INC)lev.h $(INC)dlb.h
|
||||
engrave.obj : engrave.c $(HACK_H) $(INC)lev.h
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
==============================================================
|
||||
Instructions for compiling and installing
|
||||
NetHack 3.6 on a Windows system
|
||||
(Windows 7/8.x or later only. XP may work but is untested)
|
||||
(Windows 7/8.x/10 or later only. XP may work but is untested)
|
||||
==============================================================
|
||||
Last revision: $NHDT-Date: 1434806470 2015/06/20 13:21:10 $
|
||||
|
||||
|
||||
Reference in New Issue
Block a user