Debian Codegraph @

docs/compile.dj

raw
1 Don't forget to read the file COMPILE.ALL as well as this one.
2
3 If you're only interested in playing the game, an IBM executable-only
4 version is available for anonymous ftp from monu1.cc.monash.edu.au
5 [130.194.1.101] in /pub/omega
6
7 This executable was compiled with djgpp. As such, omega should compile
8 pretty much "out of the box" under djgpp - there's even a makefile for djgpp
9 in the src directory, makefile.dj.
10
11 If you don't use that makefile, the one thing you should do is #define
12 DJGPP somewhere, either with -DDJGPP as a command line option to gcc,
13 or in defs.h.
14
15 The only other strangeness is the way I got colour - by hacking the curses
16 library that is available with djgpp (aecur102.zip). This was probably a
17 Bad Thing to do, but it simplified things greatly. Below is the patch from
18 the original to the modified version - you can simply pipe this file through
19 'patch' (which will ignore all this stuff at the top) or patch a version of
20 curses manually, referring to the patch below. Basically, a function
21 is being added to the end of the file 'curses.c' - the plus signs against
22 the left margin below indicate which lines have been added.
23
24 *** contrib/curses/src/curses.c Tue Nov 5 05:56:52 1991
25 --- curses.c Thu Feb 10 22:49:28 1994
26 ***************
27 *** 278,280 ****
28 --- 278,287 ----
29 }
30 return OK;
31 }
32 +
33 + wattrset(win, attrib)
34 + WINDOW *win;
35 + int attrib;
36 + {
37 + win->attrib = attrib;
38 + }