                          SUBJECT : Compiling tcemp

 As I have only one system to test tcemp , don't expect it compile without any
trouble.   If you succeed, please let me know what you had to change to get it
working (please tell me also if there were no  problems  at  all).   I'm  also
always willing to try to help you out with any problem you might have (regard-
ing tcemp ).

reply:  send to hjvissc@cs.vu.nl
or:     make reply

                     December 10, 1991

                          SUBJECT : Compiling tcemp

1.  Creating the makefile

You will have to compile 'setup' to create  a  makefile  for
tcemp.  The setup programm is located in the src directory:

command> cd src/setup
command> make

You'll be asked two questions:

     * Do you have getopt?
     * Do you have vsprintf?

Most of the systems do have these functions defined, but  if
setup  doesn't  compile because one of those two is missing,

                     December 10, 1991

                          SUBJECT : Compiling tcemp

enter:

command> make cleanup
command> make

And enter 'no' at the appropiate question(s).
Now copies of my system are compiled, so probably  it  still
won't  work.  I  can't  help you now, you have to find those
functions yourself.
Otherwise, change to the xemp directory and run setup:

command> cd ../..
command> setup -vpt

____________________________________________________________________
                         Options to setup:

9                     December 10, 1991

                          SUBJECT : Compiling tcemp

____________________________________________________________________
   -v       Verbose, output what you're doing
   -p       Do not depend on proto.h
   -i       Check for existing makefile
   -t       Do not ask questions about a X-environment. (tcemp only)
   -d       Use default values (defined in default.c)
-f <file>   Generate <file> instead of makefile
____________________________________________________________________

Setup will ask you several questions. To  take  the  default
(answer between square brackets), just type return. To enter
nothing, type a dot (.)

*    Use which compiler

                     December 10, 1991

                          SUBJECT : Compiling tcemp

     Unless your c-compiler is located else, just accept the
     default value.

*    Are you working under BSD?

     Setup will try to check if you're working under BSD  by
     trying to access the file "/usr/include/sys/termios.h".
     (access ok -> not bsd).  Taking the default  will  work
     most  of  the  time.  (Unless your include directory is
     located elsewhere, then you'll have to check this your-
     self).

*    Flags to pass to the c-compiler

                     December 10, 1991

                          SUBJECT : Compiling tcemp

     Don't use -O4 here, this generates even more core dumps
     (unless of course you have a better compiler as I do).
     If you're using gcc, you should  add  the  "-fwritable-
     strings" option.

*    Flags to pass to the loader

     The options "-s" strips  the  executable  (reduces  its
     size)

The next page asks question about the empire game

*    World size

                     December 10, 1991

                          SUBJECT : Compiling tcemp

*    Default empire host

*    Default empire port

     These questions can be skipped if you  don't  know  the
     answers  right now. You can always set them: 1) In your
     environment, 2) In your .xemprc, and 3) On the  command
     line.

*    Where will xemp-info be located?

                     December 10, 1991

                          SUBJECT : Compiling tcemp

     If setup can't access the directory, you'll be given  a
     warning.

*    Do you have empire-info on line?

     If you have a local empire server, or just the info  on
     line, xemp doesn't need to get the info from the remote
     server, which will save you a lot of time.

*    Use as ctags

     Always ctags.

                     December 10, 1991

                          SUBJECT : Compiling tcemp

*    Which ftp directory

     If you want to put xemp on ftp  on  your  machine,  you
     should enter the directory where to put the tar-file.

After all these questions, setup will generate the makefile.
If  there are any problems, you can send me mail, and I will
take a look at it.

2.  Compiling

Now it's time to compile xemp.  First  we  must  create  the
correct proto.h file, so enter:

                     December 10, 1991

                          SUBJECT : Compiling tcemp

command> make tc_proto.h

proto.c (in src) will now be compiled, and proto.h  will  be
made.

command> make tcemp

Get yourself a cup of coffee. This may take a while. If  you
have  any  problems,  I  could  try to help you out, but I'd
prefer if you'd take a look at the code yourself and send me
a bug fix instead of a question.
If everything went ok, tcemp will be ready for use.

                     December 10, 1991

                          SUBJECT : Compiling tcemp

3.  Creating the trycap program.

command> make trycap

This will create the trycap program, which you will need  to
find  the correct capabilities for each terminal you want to
play tcemp on.

See also:

     tcemp/startup
     tcemp/xemprc
     bind/bindings

                     December 10, 1991

