Please refer to the contribution guidelines for more information.
If you are trying to build the repository for the first time then you need the following git command
git submodule update --init --recursive
and to prepare the repository a build directory has to be created.
mkdir build
cd build
The final step is using cmake and on Linux make to build the game.
cmake ..
make
Make can also be built with a -jN flag. N is the number of parallel building threads.
There is a cross-compiler ready. You need x86_64-w64-mingw32-gcc and x86_64-w64-mingw32-g++ installed in order to cross-compile the game.
This changes the directory to the cross-compiling makefile
cd scripts/windows-crossbuild
The game can be cross-compiled by simply calling
make
This creates a directory with the name 5PM that contains the windows version of the game. It can then be executed on Windows or on Linux with Wine. When 'make clean' is called then everything except this directory is removed, as it's usually the desired product.