The cardwords game - Getting, compiling and installing cardwords

[back] [Abstract] [Copyright Notice] [Contents] [next]

# The cardwords game - Chapter 2
Getting, compiling and installing cardwords

You can obtain the latest `cardwords` source from http://www.crosswinds.net/~cardwords/ or from your local sunsite mirror.

You will currently need the `gtk+` and `gtk--` libraries in order to compile and run `cardwords` because the only existing client program uses the `gtk--` library. and run `cardwords`.

Modify the `Makefile`: The `Makefile` has the following entrys:

    BINDIR = $(DESTDIR)/usr/local/bin
    LIBDIR = $(DESTDIR)/usr/local/lib/games/cardwords
    CONFDIR = $(DESTDIR)/usr/local/etc
    LOCALEDIR = $(DESTDIR)/usr/local/share/locale
    DEFAULT_HOMEDIR = getenv\(\"HOME\"\) # c expression.
    DEFAULT_PORT = 27037

Adjust these entrys according to your needs. They have the following meaning:

`BINDIR`:
  The executable files will be installed into this directory.

`LIBDIR`:
  This directory will contain the charset files, the dictionary files, the card set files, the card-table files and the bonus files.

`LOCALEDIR`:
  This is the directory where translated messages (.mo files) will be stored under ``LOCALEDIR`/locale-abbrev/cardwords.mo`.

`CONFDIR`:
  This directory is not used yet. Later it will contain a system wide default configuration. A configuration consists of default values for charset files, the dictionary files, the card set files, the card-table files and the bonus files.

`DEFAULT_HOMEDIR`:
  Unlike the previous ...`DIR` settings, this has to be a valid c++ expression, with shell escapes. Change it if your system does not set the environment variable `HOME` to your home directory or if you use a shell that does not use the backslash for quoting single characters.

`DEFAULT_PORT`:
  The default tcp port the server listens to. Change it if this port is already in use on your system. This is unlikely.

Then type `make` to compile everything and `make install` to copy the created binaries to the BINDIR. The example files will be copied to the LIBDIR.

[back] [Abstract] [Copyright Notice] [Contents] [next]

The `cardwords` game