Re: ELKS port of Adventure - help needed :)

Phil Goembel
2002-12-11T08:19:30Z

For the heck of it, and for nostalgia's sake,
I edited the Makefile to compile and run on
my Linux PC (changed CC=mcc to CC=gcc, got
rid of -S switch).

It runs fine on my PC - no problems parsing
commands. I'm guessing, without having looked
at the code, that this is not a source code
problem.

Phil
--------------

phil@castle:advent$ diff -u Makefile.old Makefile
--- Makefile.old Mon Sep 22 09:46:59 1997
+++ Makefile Wed Dec 11 01:48:14 2002
@@ -2,17 +2,17 @@

# Where to put the adventure text files, and the binary executable.
# Need the trailing "/"s.
-TEXTDIR = /usr/lib/advent/
+TEXTDIR = ./

# Flags you may want to add to CFLAGS:
# -DHAS_STDC=0 or 1 We have Standard C. Default=1 iff __STDC__ is
nonzero.
#
# On Minix, use '-m' in CFLAGS and '-i' in LDFLAGS.

-CC = mcc
+CC = /usr/bin/gcc
CFLAGS = -D_POSIX_SOURCE
LDFLAGS =
-GCC = /usr/local/bin/gcc
+GCC = /usr/bin/gcc

OBJS = advent.o database.o english.o initial.o itverb.o score.o\
travel.o turn.o utility.o verb.o vocab.o
@@ -22,7 +22,8 @@
all: $(DAT) advent

advent: $(OBJS)
- $(CC) $(LDFLAGS) -o advent -S 16kw $(OBJS)
+# $(CC) $(LDFLAGS) -o advent -S 16kw $(OBJS)
+ $(CC) $(LDFLAGS) -o advent $(OBJS)

setup: setup.c advent.h
$(GCC) -o setup setup.c

phil@castle:advent$ make
/usr/bin/gcc -o setup setup.c
./setup
Processing file advent1.txt completed
Processing file advent2.txt completed
Processing file advent3.txt completed
Processing file advent4.txt completed
/usr/bin/gcc -c -D_POSIX_SOURCE -DTEXTDIR='"./"' advent.c
/usr/bin/gcc -D_POSIX_SOURCE -c -o database.o database.c
...

phil@castle:advent$ ./advent
<Generic Adventure -- Version:7.0, July 1994>

Welcome to ADVENTURE!
...
Would you like instructions?

> no
You are standing at the end of a road before a small brick building.
Around you is a forest. A small stream flows out of the building and
down a gully.

> north
You are in open forest, with a deep valley to one side. Not far
is a large billboard.

> read
The billboard reads:
"Visit Beautiful Colossal Cave. Open Year Around. Fun for
the entire family, or at least for those who survive."
Below the headline is an impossibly complicated map showing how
to find Colossal Cave. Not that it matters, because all the
directions are written in Elvish.

> ...