From mboxrd@z Thu Jan 1 00:00:00 1970 From: Phil Goembel Subject: Re: ELKS port of Adventure - help needed :) Date: 11 Dec 2002 02:19:30 -0600 Sender: linux-8086-owner@vger.kernel.org Message-ID: <1039594769.1511.27.camel@Castle.goembel> References: <20021210130728.GA12336@raq465.uk2net.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20021210130728.GA12336@raq465.uk2net.com> List-Id: Content-Type: text/plain; charset="us-ascii" To: Paul Nasrat Cc: linux-8086@vger.kernel.org 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 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. > ...