1 This file is sys/be/README. It is for those intending to compile
2 NetHack 3.6 on a BeOS 4.5 system.
4 BeOS NetHack currently only supports the TTY windowing system. In
5 order to compile it, it would benefit you greatly to think of your Be
6 system as a UNIX variant. It is possible to compile using BeIDE.
7 However, there are four executables and several steps involved in making
8 NetHack. Unless you are extremely familiar with the build sequence and
9 are willing to modify the code somewhat, I suggest you avoid it for now.
10 Let the UNIX Makefiles take care of all that for you.
14 + No special characters for walls. None of the fonts available for use
15 in a tty window has the graphics characters needed to improve the look.
16 If such a font existed, then all you need to do is set the dungeon,
17 object, and/or monter mappings in your defaults file.
18 + The arrow keys don't work.
22 Build instructions. From a freshly unpacked source tree:
24 1. Copy the Makfiles in sys/unix to their proper spots. You may
25 use setup.sh or copy them by hand. Using setup.sh to create
26 links instead of copying the Makefiles will work, but BeOS will
27 not let you edit a link. It may be helpful to read
31 o Change System to SysBe.
32 o Comment out the UNIX versions of SYSSRC and SYSOBJ variables.
33 o Uncomment the BeOS versions of SYSRC and SYSOBJ.
34 o Uncomment the BeOS versions of CC, CFLAGS, LD, and LFLAGS. The
35 flags are different for Intel vs BeBox/Mac.
36 o Uncomment one of the Intel or BeBox/Mac BeOS versions of CC, CFLAGS,
38 o Comment out the default CFLAGS and LFLAGS.
39 o Change WINTTYLIB to be -ltermcap.
41 3. Edit util/Makefile:
43 - Uncomment the BeOS versions of CC and CFLAGS
44 - Comment out the default CFLAGS and LFLAGS.
46 - the default values of CFLAGS and LFLAGS work fine
47 o Change YACC and LEX to be bison -y and flex respectively.
49 4. Edit include/config.h to change HACKDIR to be the location of your
52 5. Edit top level Makefile and change GAMEDIR to match HACKDIR in
53 include/config.h. Make sure the path to GAMEDIR exists. Change
54 SHELLDIR to a "throw away" directory, like /tmp. We don't use the
55 shell. Change CHOWN and CHGRP commands to "true", there really
56 aren't groups on the BeOS.
58 6. Type "make install" at the top level.
62 It is possible that some necessary steps needed to make the game have been
63 omitted. Feel free to ad-lib as necessary.