home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 January
/
usenetsourcesnewsgroupsinfomagicjanuary1994.iso
/
sources
/
games
/
volume16
/
nethack31
/
patch2ff
/
patches02r
next >
Wrap
Text File
|
1993-06-16
|
28KB
|
895 lines
*** /tmp/da09782 Tue Jun 1 15:52:31 1993
--- ./Files Tue May 18 11:32:22 1993
***************
*** 42,47 ****
--- 42,49 ----
wintty.h
(files for X versions)
Window.h WindowP.h winX.h
+ (files for mactty version)
+ mactty.h mttypriv.h
src:
(files for all versions)
***************
*** 67,85 ****
worn.c write.c zap.c
sys/amiga:
! (files for Amiga version)
HackWB.uu Install.ami Makefile.ami NHinfo.uu NetHack.cnf
NewGame.uu amidos.c amidos.p amifont.uu amifont8.uu
! amigst.c amii.hlp amimenu.c amirip.c amisnd.c
! amiwbench.c amiwind.c amiwind.p ask.uu char.c
! charwin.uu colors.uu colorwin.c cvtsnd.c dflticon.uu
! hackwb.hlp ifchange randwin.c randwin.uu scroll.uu
! string.uu wb.c wbcli.c wbdata.c wbdefs.h
! wbprotos.h wbstruct.h wbwin.c wbwin.uu winami.c
! winami.p
sys/amiga/splitter:
! (more files for Amiga version)
amiout.h arg.c arg.h loader.c multi.c
multi.h split.doc split.h splitter.c
--- 69,89 ----
worn.c write.c zap.c
sys/amiga:
! (files for Amiga versions)
HackWB.uu Install.ami Makefile.ami NHinfo.uu NetHack.cnf
NewGame.uu amidos.c amidos.p amifont.uu amifont8.uu
! amigst.c amii.hlp amilib.c amimenu.c amirip.c
! amisnd.c amitty.c amiwbench.c amiwind.c amiwind.p
! ask.uu char.c charwin.uu colors.uu colorwin.c
! cvtsnd.c dflticon.uu hackwb.hlp ifchange randwin.c
! randwin.uu scroll.uu string.uu wb.c wbcli.c
! wbdata.c wbdefs.h wbprotos.h wbstruct.h wbwin.c
! wbwin.uu winami.c winami.p windefs.h winext.h
! winfuncs.c winkey.c winmenu.c winproto.h winreq.c
! winstr.c
sys/amiga/splitter:
! (more files for Amiga versions)
amiout.h arg.c arg.h loader.c multi.c
multi.h split.doc split.h splitter.c
***************
*** 89,99 ****
setup.g tos.c
sys/mac:
! (files for Macintosh version)
! Install.mpw MacHelp NHmake.hqx NHrez.hqx NHrsrc.hqx
! NHsound.hqx News hack.h maccurs.c macerrs.c
! macfile.c macmain.c macsnd.c mactopl.c macunix.c
! macwin.c mgetline.c mhdump.c mmodal.c mstring.c
sys/msdos:
(files for MSDOS version)
--- 93,105 ----
setup.g tos.c
sys/mac:
! (files for Macintosh versions)
! Install.mpw MacHelp NHDeflts NHmake.hqx NHrez.hqx
! NHrsrc.hqx NHsound.hqx News dprintf.c hack.h
! maccurs.c macerrs.c macfile.c macmain.c macmenu.c
! macsnd.c mactopl.c mactty.c macunix.c macwin.c
! mgetline.c mhdump.c mmodal.c mrecover.c mrecover.hqx
! mstring.c mttymain.c
sys/msdos:
(files for MSDOS version)
***************
*** 100,105 ****
--- 106,112 ----
Install.dos MakeGCC.src MakeGCC.utl MakeMSC.src MakeMSC.utl
Makefile.dat exesmurf.c exesmurf.doc maintovl.doc msdos.c
ovlmgr.asm ovlmgr.doc ovlmgr.uu setup.bat trampoli.c
+ video.c
(files for running MSDOS binary under Windows)
nhico.uu nhpif.uu
***************
*** 152,158 ****
sys/winnt:
(files for Windows NT version)
Install.nt Makefile.dat Makefile.src Makefile.utl nhico.uu
! nhincl.mak nttty.c setup.bat winnt.c
util:
(files for all versions)
--- 159,165 ----
sys/winnt:
(files for Windows NT version)
Install.nt Makefile.dat Makefile.src Makefile.utl nhico.uu
! nhincl.mak nttty.c setup.bat winnt.c winnt.cnf
util:
(files for all versions)
*** /tmp/da09798 Tue Jun 1 15:52:35 1993
--- ./README Tue Jun 1 11:54:09 1993
***************
*** 144,159 ****
Sun-4s running Solaris 2.x (aka SunOS 5.x)
Valid Logic Systems SCALD-System
286 box running Microport SysV/AT (not extensively tested)
Apple Macintosh running MacOS
Atari ST/TT/Falcon running TOS (or MultiTOS) with GCC
! Commodore Amiga running AmigaDOS 1.3/2.x with SAS/C 5.10b or
! Manx 5.0 (but see Install.ami about DICE and SAS/C 6.1)
! DEC Alpha/VMS (aka OpenVMS AXP), running V1.0
DEC VAX/VMS, running V4.6 through V5.5-2, T6.0
IBM PC compatibles running MS-DOS with MicroSoft C or DJGPP
IBM PS/2 and AT compatibles running OS/2 1.1 - 2.0 with Microsoft C
5.1 or 6.0, and OS/2 2.0 with GCC emx 0.8f or IBM C Set/2
- - - - - - - - - - -
--- 144,161 ----
Sun-4s running Solaris 2.x (aka SunOS 5.x)
Valid Logic Systems SCALD-System
286 box running Microport SysV/AT (not extensively tested)
+ 386-486 boxes running Linux/386BSD/BSDI
Apple Macintosh running MacOS
Atari ST/TT/Falcon running TOS (or MultiTOS) with GCC
! Commodore Amiga running AmigaDOS 1.3 or greater with SAS/C 6.2
! (but see Install.ami about DICE and Manx)
! DEC Alpha/VMS (aka OpenVMS AXP), running V1.0 and V1.5
DEC VAX/VMS, running V4.6 through V5.5-2, T6.0
IBM PC compatibles running MS-DOS with MicroSoft C or DJGPP
IBM PS/2 and AT compatibles running OS/2 1.1 - 2.0 with Microsoft C
5.1 or 6.0, and OS/2 2.0 with GCC emx 0.8f or IBM C Set/2
+ Intel 386,486 desktop machines running Windows NT
- - - - - - - - - - -
*** /tmp/da12793 Tue Jun 1 17:32:49 1993
--- sys/unix/Install.unx Tue Jun 1 12:32:43 1993
***************
*** 1,4 ****
! Instructions for installing NetHack 3.1
on a UNIX system
=======================================
--- 1,4 ----
! Instructions for installing NetHack 3.1
on a UNIX system
=======================================
***************
*** 52,59 ****
coffee or take a nap. You should now have created the game executable.
7. Go back to the top directory and edit that Makefile, explaining where
! you want everything to be installed. Make sure that GAMEDIR is the
! same value as HACKDIR in config.h. The Makefile assumes you want to
run NetHack setuid 'games' to cut down on possible tampering; it's
fairly straightforward to comment out the appropriate chmod if you
don't want that, or to change any of the rest of the procedure. (Note
--- 52,59 ----
coffee or take a nap. You should now have created the game executable.
7. Go back to the top directory and edit that Makefile, explaining where
! you want everything to be installed. Make sure that you follow the
! comments about setting GAMEDIR. The Makefile assumes you want to
run NetHack setuid 'games' to cut down on possible tampering; it's
fairly straightforward to comment out the appropriate chmod if you
don't want that, or to change any of the rest of the procedure. (Note
***************
*** 68,74 ****
Notes:
1. Save files and bones files from previous versions will not work with
! NetHack 3.1. Don't bother trying to keep them.
2. To install an update of this version of NetHack after changing something,
type 'make update' from the main directory. If you created the new
--- 68,74 ----
Notes:
1. Save files and bones files from previous versions will not work with
! NetHack 3.1.2. Don't bother trying to keep them.
2. To install an update of this version of NetHack after changing something,
type 'make update' from the main directory. If you created the new
***************
*** 86,100 ****
NetHack on a bunch of workstations, but you have overlooked the NETWORK
definition in unixconf.h that is necessary in that configuration.
! 5. A number of systems, such as Xenix, support both the termcap and terminfo
! terminal capability libraries. Make sure that the TERMINFO definition in
! config.h and the TERMLIB definition in the source Makefile correspond.
! If spurious characters appear on the screen while kicking, zapping, etc.,
! it is likely that you have linked the source to the wrong library or
! mistakenly defined/undefined TERMINFO. If your terminal library does not
! provide suitable delays, NetHack will try to fake its own if you set the
! nonull option.
6. Since NetHack overflows the stock C preprocessors for AT&T 3b1 and 3b2
systems ("too many defines"), we are including an alternate preprocessor
to allow these folks to compile. This is the DECUS cpp by Martin Minow,
--- 86,101 ----
NetHack on a bunch of workstations, but you have overlooked the NETWORK
definition in unixconf.h that is necessary in that configuration.
! 5. If spurious characters appear on the screen while throwing, kicking,
! zapping, etc., it is likely that you have linked the source to the wrong
! library or mistakenly defined/undefined TERMINFO. A number of systems,
! such as Xenix, support both the termcap and terminfo terminal capability
! libraries. In such cases, the TERMINFO definition in config.h and the
! WINTTYLIB definition in the source Makefile must correspond.
+ If your terminal library does not provide suitable delays, NetHack will
+ try to fake its own if you set the nonull option.
+
6. Since NetHack overflows the stock C preprocessors for AT&T 3b1 and 3b2
systems ("too many defines"), we are including an alternate preprocessor
to allow these folks to compile. This is the DECUS cpp by Martin Minow,
***************
*** 200,208 ****
compiler, /usr/bin/cc, or gcc, but _not_ ucbcc. The lattermost will
not work. After this, you should get a clean compile.
! 14. If your machine is a 286, 386, or 486 running System V UNIX at Release
! 3.2 or later, you may wish to install the console speaker driver included
! in sys/unix/snd86unx.shr. This will allow audible music to be played
on your console speaker in certain appropriate game situations. The only
modification to the main-line code needed to enable use of the driver
! is defining SYSV386MUSIC in unixconf.h.
--- 201,209 ----
compiler, /usr/bin/cc, or gcc, but _not_ ucbcc. The lattermost will
not work. After this, you should get a clean compile.
! 14. If your machine is a 286, 386, or 486 running an appropriate OS, you
! may wish to use the console speaker driver included in
! sys/unix/snd86unx.shr. This will allow audible music to be played
on your console speaker in certain appropriate game situations. The only
modification to the main-line code needed to enable use of the driver
! is defining UNIX386MUSIC or VPIX_MUSIC in unixconf.h.
*** /tmp/da12817 Tue Jun 1 17:32:55 1993
--- sys/unix/Makefile.src Fri May 28 14:52:33 1993
***************
*** 300,306 ****
$(CC) $(CFLAGS) -c objects.c
@rm -f $(MAKEDEFS)
! $(MAKEDEFS): ../util/makedefs.c ../include/artilist.h
@( cd ../util ; $(MAKE) makedefs)
../include/onames.h: $(MAKEDEFS)
--- 300,308 ----
$(CC) $(CFLAGS) -c objects.c
@rm -f $(MAKEDEFS)
! # need those include files not in monst.c/objects.c dependencies below
! $(MAKEDEFS): ../util/makedefs.c ../include/artilist.h ../include/patchlevel.h \
! ../include/qtext.h
@( cd ../util ; $(MAKE) makedefs)
../include/onames.h: $(MAKEDEFS)
***************
*** 528,538 ****
mplayer.o: ../include/hack.h
mthrowu.o: ../include/hack.h
muse.o: ../include/hack.h
! music.o: ../include/hack.h
o_init.o: ../include/hack.h
objects.o: ../include/config.h ../include/obj.h ../include/objclass.h ../include/prop.h ../include/color.h objects.c
objnam.o: ../include/hack.h
! options.o: ../include/hack.h ../include/termcap.h
pager.o: ../include/hack.h
pickup.o: ../include/hack.h
pline.o: ../include/hack.h ../include/epri.h
--- 530,540 ----
mplayer.o: ../include/hack.h
mthrowu.o: ../include/hack.h
muse.o: ../include/hack.h
! music.o: ../include/hack.h #interp.c
o_init.o: ../include/hack.h
objects.o: ../include/config.h ../include/obj.h ../include/objclass.h ../include/prop.h ../include/color.h objects.c
objnam.o: ../include/hack.h
! options.o: ../include/config.h ../include/objclass.h ../include/flag.h ../include/hack.h ../include/termcap.h
pager.o: ../include/hack.h
pickup.o: ../include/hack.h
pline.o: ../include/hack.h ../include/epri.h
***************
*** 552,558 ****
shk.o: ../include/hack.h ../include/eshk.h
shknam.o: ../include/hack.h ../include/eshk.h
sit.o: ../include/hack.h ../include/artifact.h
! sounds.o: ../include/hack.h ../include/edog.h ../include/eshk.h
sp_lev.o: ../include/hack.h ../include/sp_lev.h ../include/rect.h
spell.o: ../include/hack.h
steal.o: ../include/hack.h
--- 554,560 ----
shk.o: ../include/hack.h ../include/eshk.h
shknam.o: ../include/hack.h ../include/eshk.h
sit.o: ../include/hack.h ../include/artifact.h
! sounds.o: ../include/hack.h ../include/edog.h
sp_lev.o: ../include/hack.h ../include/sp_lev.h ../include/rect.h
spell.o: ../include/hack.h
steal.o: ../include/hack.h
***************
*** 607,613 ****
touch ../include/mondata.h
../include/monst.h: ../include/align.h
touch ../include/monst.h
! ../include/os2conf.h: ../include/pcconf.h
touch ../include/os2conf.h
../include/pcconf.h: ../include/micro.h ../include/system.h
touch ../include/pcconf.h
--- 609,615 ----
touch ../include/mondata.h
../include/monst.h: ../include/align.h
touch ../include/monst.h
! ../include/os2conf.h: ../include/micro.h ../include/system.h
touch ../include/os2conf.h
../include/pcconf.h: ../include/micro.h ../include/system.h
touch ../include/pcconf.h
*** /tmp/da12833 Tue Jun 1 17:32:59 1993
--- sys/unix/Makefile.utl Tue May 25 14:59:40 1993
***************
*** 101,107 ****
--- 101,119 ----
# object files for recovery utility
RECOVOBJS = recover.o
+ # flags for creating distribution versions of sys/share/*_lex.c, using
+ # a more portable flex skeleton, which is not included in the distribution.
+ # hopefully keeping this out of the section to be edited will keep too
+ # many people from being confused by it...
+ # FLEXDIST = -L -S../sys/share/flexhack.skel
+ FLEXDIST =
+ #
+ # flags for creating distribution versions of sys/share/*_yacc.c, without
+ # line numbers so patches from version to version are practical
+ # YACCDIST = -l
+ YACCDIST =
+
# dependencies for makedefs
#
makedefs: $(MAKEOBJS)
***************
*** 108,114 ****
$(CC) $(LFLAGS) -o makedefs $(MAKEOBJS)
makedefs.o: ../include/config.h ../include/permonst.h ../include/objclass.h \
! ../include/monsym.h ../include/artilist.h ../include/qtext.h
../include/onames.h: makedefs
./makedefs -o
--- 120,127 ----
$(CC) $(LFLAGS) -o makedefs $(MAKEOBJS)
makedefs.o: ../include/config.h ../include/permonst.h ../include/objclass.h \
! ../include/monsym.h ../include/artilist.h \
! ../include/patchlevel.h ../include/qtext.h
../include/onames.h: makedefs
./makedefs -o
***************
*** 150,161 ****
../include/lev_comp.h: lev_yacc.c
lev_yacc.c: lev_comp.y
! $(YACC) -d lev_comp.y
mv $(YTABC) lev_yacc.c
mv $(YTABH) ../include/lev_comp.h
lev_lex.c: lev_comp.l
! $(LEX) lev_comp.l
mv $(LEXYYC) lev_lex.c
# with all of extern.h's functions to complain about, we drown in
--- 163,174 ----
../include/lev_comp.h: lev_yacc.c
lev_yacc.c: lev_comp.y
! $(YACC) $(YACCDIST) -d lev_comp.y
mv $(YTABC) lev_yacc.c
mv $(YTABH) ../include/lev_comp.h
lev_lex.c: lev_comp.l
! $(LEX) $(FLEXDIST) lev_comp.l
mv $(LEXYYC) lev_lex.c
# with all of extern.h's functions to complain about, we drown in
***************
*** 181,192 ****
../include/dgn_comp.h: dgn_yacc.c
dgn_yacc.c: dgn_comp.y
! $(YACC) -d dgn_comp.y
mv $(YTABC) dgn_yacc.c
mv $(YTABH) ../include/dgn_comp.h
dgn_lex.c: dgn_comp.l
! $(LEX) dgn_comp.l
mv $(LEXYYC) dgn_lex.c
# with all of extern.h's functions to complain about, we drown in
--- 194,205 ----
../include/dgn_comp.h: dgn_yacc.c
dgn_yacc.c: dgn_comp.y
! $(YACC) $(YACCDIST) -d dgn_comp.y
mv $(YTABC) dgn_yacc.c
mv $(YTABH) ../include/dgn_comp.h
dgn_lex.c: dgn_comp.l
! $(LEX) $(FLEXDIST) dgn_comp.l
mv $(LEXYYC) dgn_lex.c
# with all of extern.h's functions to complain about, we drown in
*** /tmp/da12865 Tue Jun 1 17:33:10 1993
--- sys/unix/ioctl.c Tue May 11 10:05:06 1993
***************
*** 23,29 ****
# include <sys/ttold.h> /* define struct ltchars */
# include <sys/bsdioctl.h> /* define TIOGWINSZ */
# else
! # include <sgtty.h>
# endif
# endif
struct ltchars ltchars;
--- 23,33 ----
# include <sys/ttold.h> /* define struct ltchars */
# include <sys/bsdioctl.h> /* define TIOGWINSZ */
# else
! # ifdef LINUX
! # include <bsd/sgtty.h>
! # else
! # include <sgtty.h>
! # endif
# endif
# endif
struct ltchars ltchars;
***************
*** 58,63 ****
--- 62,72 ----
#include "termcap.h" /* for LI and CO */
#endif
+ #ifdef _M_UNIX
+ extern void NDECL(sco_mapon);
+ extern void NDECL(sco_mapoff);
+ #endif
+
#ifdef AUX
void *
catch_stp ( )
***************
*** 133,158 ****
#endif
}
! #ifdef SUSPEND /* Does not imply BSD */
int
dosuspend()
{
! #ifdef SIGTSTP
if(signal(SIGTSTP, SIG_IGN) == SIG_DFL) {
suspend_nhwindows(NULL);
(void) signal(SIGTSTP, SIG_DFL);
! #ifdef AUX
( void ) kill ( 0 , SIGSTOP ) ;
! #else
(void) kill(0, SIGTSTP);
! #endif
resume_nhwindows();
} else {
pline("I don't think your shell has job control.");
}
! #else
pline("Sorry, it seems we have no SIGTSTP here. Try ! or S.");
! #endif
return(0);
}
#endif /* SUSPEND */
--- 142,173 ----
#endif
}
! #ifdef SUSPEND /* No longer implies BSD */
int
dosuspend()
{
! # ifdef SIGTSTP
if(signal(SIGTSTP, SIG_IGN) == SIG_DFL) {
suspend_nhwindows(NULL);
+ # ifdef _M_UNIX
+ sco_mapon();
+ # endif
(void) signal(SIGTSTP, SIG_DFL);
! # ifdef AUX
( void ) kill ( 0 , SIGSTOP ) ;
! # else
(void) kill(0, SIGTSTP);
! # endif
! # ifdef _M_UNIX
! sco_mapoff();
! # endif
resume_nhwindows();
} else {
pline("I don't think your shell has job control.");
}
! # else
pline("Sorry, it seems we have no SIGTSTP here. Try ! or S.");
! # endif
return(0);
}
#endif /* SUSPEND */
*** /tmp/da12897 Tue Jun 1 17:33:18 1993
--- sys/unix/unixmain.c Fri Apr 23 17:50:09 1993
***************
*** 12,18 ****
#include <fcntl.h>
#endif
! #if !defined(_BULL_SOURCE) && !defined(sgi)
# if defined(POSIX_TYPES) || defined(SVR4) || defined(HPUX)
extern struct passwd *FDECL(getpwuid,(uid_t));
# else
--- 12,18 ----
#include <fcntl.h>
#endif
! #if !defined(_BULL_SOURCE) && !defined(sgi) && !defined(_M_UNIX)
# if defined(POSIX_TYPES) || defined(SVR4) || defined(HPUX)
extern struct passwd *FDECL(getpwuid,(uid_t));
# else
***************
*** 26,31 ****
--- 26,36 ----
static boolean whoami();
static void FDECL(process_options, (int, char **));
+ #ifdef _M_UNIX
+ extern void NDECL(check_sco_console);
+ extern void NDECL(init_sco_cons);
+ #endif
+
int
main(argc,argv)
int argc;
***************
*** 87,95 ****
--- 92,106 ----
}
}
+ #ifdef _M_UNIX
+ check_sco_console();
+ #endif
initoptions();
init_nhwindows();
exact_username = whoami();
+ #ifdef _M_UNIX
+ init_sco_cons();
+ #endif
/*
* It seems you really want to play.
*** /tmp/da12905 Tue Jun 1 17:33:20 1993
--- sys/unix/unixtty.c Fri Apr 23 17:56:14 1993
***************
*** 303,308 ****
--- 303,369 ----
#endif
}
+ #ifdef _M_UNIX /* SCO UNIX (3.2.4), from Andreas Arens */
+ #include <sys/console.h>
+
+ #define BSIZE (E_TABSZ*2)
+ #define LDIOC ('D'<<8) /* POSIX prevents definition */
+
+ #include <sys/emap.h>
+
+ int sco_flag_console = 0;
+ int sco_map_valid = -1;
+ unsigned char sco_chanmap_buf[BSIZE];
+
+ void
+ check_sco_console()
+ {
+ if (isatty(0) && ioctl(0,CONS_GET,0) != -1) {
+ sco_flag_console = 1;
+ }
+ }
+
+ void
+ init_sco_cons()
+ {
+ # ifdef TTY_GRAPHICS
+ if (!strcmp(windowprocs.name, "tty") && sco_flag_console) {
+ atexit(sco_mapon);
+ sco_mapoff();
+ switch_graphics(IBM_GRAPHICS);
+ if (has_colors())
+ flags.use_color = TRUE;
+ }
+ # endif
+ }
+
+ void
+ sco_mapon()
+ {
+ # ifdef TTY_GRAPHICS
+ if (!strcmp(windowprocs.name, "tty") && sco_flag_console) {
+ if (sco_map_valid != -1) {
+ ioctl(0,LDSMAP,sco_chanmap_buf);
+ }
+ sco_map_valid = -1;
+ }
+ # endif
+ }
+
+ void
+ sco_mapoff()
+ {
+ # ifdef TTY_GRAPHICS
+ if (!strcmp(windowprocs.name, "tty") && sco_flag_console) {
+ sco_map_valid = ioctl(0,LDGMAP,sco_chanmap_buf);
+ if (sco_map_valid != -1) {
+ ioctl(0,LDNMAP,NULL);
+ }
+ }
+ # endif
+ }
+ #endif /* _M_UNIX */
+
/* fatal error */
/*VARARGS1*/
*** /tmp/da12913 Tue Jun 1 17:33:22 1993
--- sys/unix/unixunix.c Fri Apr 23 17:51:41 1993
***************
*** 16,21 ****
--- 16,26 ----
#include <sys/wait.h>
#endif
+ #ifdef _M_UNIX
+ extern void NDECL(sco_mapon);
+ extern void NDECL(sco_mapoff);
+ #endif
+
static struct stat buf, hbuf;
void
***************
*** 297,302 ****
--- 302,310 ----
{
register int f;
suspend_nhwindows(NULL); /* also calls end_screen() */
+ #ifdef _M_UNIX
+ sco_mapon();
+ #endif
if((f = fork()) == 0){ /* child */
(void) setgid(getgid());
(void) setuid(getuid());
***************
*** 313,318 ****
--- 321,329 ----
(void) signal(SIGINT,SIG_IGN);
(void) signal(SIGQUIT,SIG_IGN);
(void) wait( (int *) 0);
+ #ifdef _M_UNIX
+ sco_mapoff();
+ #endif
(void) signal(SIGINT, (SIG_RET_TYPE) done1);
#ifdef WIZARD
if(wizard) (void) signal(SIGQUIT,SIG_DFL);
*** /tmp/da12667 Tue Jun 1 17:32:15 1993
--- sys/os2/Makefile.os2 Fri May 21 11:37:22 1993
***************
*** 1,4 ****
! # SCCS Id: @(#)Makefile.os2 3.1 93/02/02
# OS/2 NetHack 3.1 Makefile for OS/2 versions 1.x and 2.x
# Copyright (C) 1990, 1991, 1992, 1993 Timo Hakulinen
#
--- 1,4 ----
! # SCCS Id: @(#)Makefile.os2 3.1 93/05/05
# OS/2 NetHack 3.1 Makefile for OS/2 versions 1.x and 2.x
# Copyright (C) 1990, 1991, 1992, 1993 Timo Hakulinen
#
***************
*** 61,67 ****
# for NMAKE (MSC, CSet/2), and the lowermost eight for DMAKE.
#
! #MAKEB = ndmake # Executable name
#CMD = # Command processor name if required
#AB = $*.c # Base name of the target in target action
#CB = $*.c # - " - dependent
--- 61,67 ----
# for NMAKE (MSC, CSet/2), and the lowermost eight for DMAKE.
#
! #MAKEB = ndmake # Executable name (change if necessary)
#CMD = # Command processor name if required
#AB = $*.c # Base name of the target in target action
#CB = $*.c # - " - dependent
***************
*** 89,100 ****
#
# Most makes execute actions automatically inside a subshell,
# which makes even the shell internals work ok. This applies
! # for NDMAKE and NMAKE. DMAKE wants it spelled out for it.
#
ECHO = $(CMD) @echo
RM = $(CMD) del
CP = $(CMD) copy
#
# For those of us who have these on PC.
--- 89,101 ----
#
# Most makes execute actions automatically inside a subshell,
# which makes even the shell internals work ok. This applies
! # to NDMAKE and NMAKE. DMAKE wants it spelled out for it.
#
ECHO = $(CMD) @echo
RM = $(CMD) del
CP = $(CMD) copy
+ CAT = $(CMD) type
#
# For those of us who have these on PC.
***************
*** 118,123 ****
--- 119,130 ----
LATEX = latex
#
+ # If you have TOUCH, some things become slightly easier.
+ #
+
+ TOUCH = touch
+
+ #
# Standard file naming for LEX and YACC output may vary in PC
# installations. These three are probably the most generally used
# names.
***************
*** 182,192 ****
# large model compiler, debug flags, ANSI conformance.
#
# GCC: compile only, compiler id, object format selection, warnings,
! # include file path, ANSI conformance.
#
# CSet/2: compile only, compiler id, migration lib, remove stack probes,
# force intra 64K alignment for data, force optlink linkage on function
! # calls, warning level, include files, ANSI conformance.
#
CFLAGS = /c /DOS2_MSC /AL /O /Gs /G2 /Gt10 /Zp1 /FPi $(WARN) /I$(INCL) $(BIGC) $(CDFLAGS) $(STDC)
--- 189,199 ----
# large model compiler, debug flags, ANSI conformance.
#
# GCC: compile only, compiler id, object format selection, warnings,
! # include file path, debug flags, ANSI conformance.
#
# CSet/2: compile only, compiler id, migration lib, remove stack probes,
# force intra 64K alignment for data, force optlink linkage on function
! # calls, warning level, include file path, debug flags, ANSI conformance.
#
CFLAGS = /c /DOS2_MSC /AL /O /Gs /G2 /Gt10 /Zp1 /FPi $(WARN) /I$(INCL) $(BIGC) $(CDFLAGS) $(STDC)
***************
*** 328,336 ****
#WINCC = $(B) cd $(WIN) $(S) $(CC) $(CFLAGS) $(O) $@ $(AB) $(E)
#
! # Default linker skeletons. Upper four lines for everything
# that uses standard OS/2 object format (MSC, CSet/2, GCC OMF),
! # lower four for GCC a.out format.
#
GAMELN = $(LINK) @$(TEMP)\$(GAME).rsp
--- 335,343 ----
#WINCC = $(B) cd $(WIN) $(S) $(CC) $(CFLAGS) $(O) $@ $(AB) $(E)
#
! # Default linker skeletons. The upper four lines for everything
# that uses standard OS/2 object format (MSC, CSet/2, GCC OMF),
! # the lower four for GCC a.out format.
#
GAMELN = $(LINK) @$(TEMP)\$(GAME).rsp
***************
*** 412,417 ****
--- 419,425 ----
#
# A straight tty port using no native windowing system is the
# only choice for now.
+ #
WINOBJ = $(OBJ)\getline.o $(OBJ)\termcap.o $(OBJ)\topl.o $(OBJ)\wintty.o
***************
*** 438,443 ****
--- 446,460 ----
#do_lex : lex_act # - " -
#
+ # If you have the TOUCH utility the upper line is ok. Otherwise
+ # the lower one does the same albeit in an ugly manner. Besides,
+ # the latter method only works for text files.
+ #
+
+ #do_touch : realtouch
+ do_touch : faketouch
+
+ #
# If you don't have uudecode program, use the upper line.
# If you still want the icon, you'll have to extract the
# file manually somewhere else.
***************
*** 448,454 ****
#
# If you don't want to generate nethack.cmd, use the upper line.
! # This could be the case, e.g., if you use different shell than
# the standard cmd.exe.
#
--- 465,471 ----
#
# If you don't want to generate nethack.cmd, use the upper line.
! # This could be the case, e.g., if you use a different shell than
# the standard cmd.exe.
#
***************
*** 720,725 ****
--- 737,744 ----
yacc_cpy :
$(CP) $(SSYS)\$(YY)_yacc.c $(UTIL)
$(CP) $(SSYS)\$(YY)_comp.h $(INCL)
+ $(MAKEB) TT=$(UTIL)\$(YY)_yacc.c do_touch
+ $(MAKEB) TT=$(INCL)\$(YY)_comp.h do_touch
yacc_msg :
$(ECHO) $(YY)_comp.y has changed. To update $(YY)_yacc.c and $(YY)_comp.h run $(YACC).
***************
*** 733,738 ****
--- 752,758 ----
lex_cpy :
$(CP) $(SSYS)\$(YY)_lex.c $(UTIL)
+ $(MAKEB) TT=$(UTIL)\$(YY)_lex.c do_touch
lex_msg :
$(ECHO) $(YY)_comp.l has changed. To update $(YY)_lex.c run $(LEX).
***************
*** 741,746 ****
--- 761,776 ----
$(LEX) $(UTIL)\$(YY)_comp.l
$(CP) $(LEXYYC) $(UTIL)\$(YY)_lex.c
$(RM) $(LEXYYC)
+
+ #
+ # Why must this be so kludgy?
+ #
+
+ realtouch :
+ $(TOUCH) $(TT)
+
+ faketouch :
+ $(B) $(CAT) $(TT) > $(TEMP)\foo.bar $(S) $(CP) $(TEMP)\foo.bar $(TT) $(S) $(RM) $(TEMP)\foo.bar $(E)
#
# Targets for the recovery utility.