Date: Wed, 04 Feb 1998 10:22:50 -0600
From: David Pease 
To: ray@hip.atr.co.jp
Subject: Tierra in win95 updated instructions.

You'd asked for updated information about the simtel archives.
Here are the files and some addenda required to compile tierra
on win95 (I haven't tried DOS or NT yet with these settings).

The new filenames are:

http://oak.oakland.edu/pub/simtelnet/gnu/djgpp/v2/djdev201.zip
(1503K)
http://oak.oakland.edu/pub/simtelnet/gnu/djgpp/v2gnu/bnu281b.zip
(1851K)
http://oak.oakland.edu/pub/simtelnet/gnu/djgpp/v2gnu/gcc2721b.zip
(1071K)
http://oak.oakland.edu/pub/simtelnet/gnu/djgpp/v2gnu/fil316b.zip
(978K)

These are the only files that are required.  I'm assuming that everyone
has access to
winzip to decompress the files.  Dump everything in a /djgpp directory,
and make
sure all the subdirectory names are created.  Winzip *should* do this
automatically.
Otherwise,  pkunzip -d -o works.

You *do* have to add /djgpp/bin to the path, and the line

set DJGPP=c:/djgpp/djgpp.env

still goes in the autoexec.bat.

Here is the updated djgpp.bat that was included in the tierra
distribution.  I had to
change 'coff2exe tierra' to 'call coff2exe tierra' because coff2exe
doesn't like to return
control to a batch file.  I've also removed the -DDJGPP from the gcc
lines because
of an annoying redeclaration warning.
--------------------------------------------
gcc -DPLOIDY=1 -c bookeep.c
gcc -DPLOIDY=1 -c decode.c
gcc -DPLOIDY=1 -c diskbank.c
gcc -DPLOIDY=1 -c frontend.c
gcc -DPLOIDY=1 -c genio.c
gcc -DPLOIDY=1 -c instruct.c
gcc -DPLOIDY=1 -c memalloc.c
gcc -DPLOIDY=1 -c memtree.c
gcc -DPLOIDY=1 -c micromon.c
gcc -DPLOIDY=1 -c portable.c
gcc -DPLOIDY=1 -c queues.c
gcc -DPLOIDY=1 -c rambank.c
gcc -DPLOIDY=1 -c slicers.c
gcc -DPLOIDY=1 -c tierra.c
gcc -DPLOIDY=1 -c trand.c
gcc -DPLOIDY=1 -c tsetup.c
gcc -DPLOIDY=1 -c ttools.c
gcc -o tierra *.o -lm -lpc
call coff2exe tierra
IF ERRORLEVEL 1 GOTO ERROR
rm *.o
rm tierra
gcc -DPLOIDY=1 -c arg.c
gcc -DPLOIDY=1 -c arg_inc.c
gcc -o arg *.o -lm -lpc
call coff2exe arg
IF ERRORLEVEL 1 GOTO ERROR
rm *.o
rm arg
cd gb0
..\arg c 0080gen.vir 80 0080aaa.tie
cp 0080gen.vir 0080.gen
cd ..\gb1
..\arg c 0095gen.vir 95 0095aaa.tie
cp 0095gen.vir 0095.gen
cd ..\gb2
..\arg c 0093gen.vir 93 0093aaa.tie
cp 0093gen.vir 0093.gen
cd ..\gb3
..\arg c 0082gen.vir 82 0082aaa.tie
cp 0082gen.vir 0082.gen
cd ..\gb8
..\arg c 0082gen.vir 82 0082aaa.tie
cp 0082gen.vir 0082.gen
cd ..
goto DONE
:ERROR
echo THERE WAS A PROBLEM COMPILING !!!!
pause
:DONE
------------------------------------------

I haven't had any trouble at all compiling with these settings.
Tierra is a great program!

 - David Pease

gvozd@shreve.net