Ncurses version:
$ make
SDL version:
$ make SDL=yes
To install, make install
with DESTDIR
defined:
# make DESTDIR=/path install
It copies:
curseofwar
to $DESTDIR/usr/bin/
curseofwar.6.gz
to $DESTDIR/usr/share/man/man6/
changelog.gz
to $DESTDIR/usr/share/doc/curseofwar/
To uninstall:
# make DESTDIR=/path uninstall
To install:
# make SDL=yes DESTDIR=/path install
It copies:
curseofwar-sdl
to $DESTDIR/usr/bin/
curseofwar-sdl.6.gz
to $DESTDIR/usr/share/man/man6/
images
to $DESTDIR/usr/share/curseofwar
The SDL executable is searching for the game data (directory images
) in the
following places:
./
(Your current directory)$XDG_DATA_HOME/curseofwar
(Defaults to ~/.local/share/curseofwar
)~/.curseofwar
(If possible, use ~/.local/share/curseofwar
)/usr/local/share/curseofwar
/usr/share/curseofwar
/usr/share/curseofwar-sdl
/usr/share/curseofwar-common
Make sure that images
is one of those folders.
You can make use of the variable INSTALL_DATA
to install images
to a specific
place in your filesystem, instead of $(DESTDIR)/usr/share/curseofwar
:
# make SDL=yes DESTDIR=/path INSTALL_DATA=/game/data/path install
It installs both executables to /usr/bin/
, and all game data to
/usr/share/curseofwar/
To build and install:
$ make
$ make SDL=yes
# make DESTDIR=/ install
# make SDL=yes DESTDIR=/ install
Then to uninsitall, if necessary:
# make SDL=yes DESTDIR=/ uninstall
# make DESTDIR=/ uninstall
DESTDIR=/
can be omitted here, but it’s kept for completeness.
You will need the SDL development libraries installed on your computer.
There are several possibilities. You can use cmake-gui, for example.
source code
field with the path to the root directory of curseofwarbinairies
field with the path of your build directory[Configure]
[Configure]
again.CW_NCURSE_FRONTEND
and CW_SDL_MULTIPLAYER
[Generate]
Note that executable will fail if they are not run from the directory containing images/
.