The cardwords game - Chapter 2
Getting, compiling and installing cardwords
You can obtain the latest
cardwords source from
or from your local sunsite mirror.
You will currently need the
libraries in order to compile and run
because the only existing client
program uses 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:
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
- The executable files will be installed into this directory.
- This directory will contain the
charset files, the
card set files, the
card-table files and the
- This is the directory where translated messages
(.mo files) will be stored under
- 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.
- 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
- The default tcp port the server listens to.
Change it if this port is already in use on your system.
This is unlikely.
Tobias Peters firstname.lastname@example.org