InitKit uses the industry-standard combination of the CMake build automation framework with the GIT source code management suite. These products make building and contributing to InitKit a straightforward experience.
There are three steps to building and installing InitKit from source: installing dependencies, checking out the source tree and its submodules, running CMake, then running Make to install it.
Installing dependencies is a different process on each platform. The required software and libraries are:
- GIT;
- CMake;
- Make, or at your preference Ninja;
- ISO-standard C and C++ compilers, compliant with the C99 and C++0x standards, e.g. HP C/aC++ A0.06.25; IBM XLC++ 13.1; Apple LLVM/Clang 3.0; GNU Compiler Collection 4.8;
- The Fast Lexical Analyser FLEX.
- NetBSD EditLine (or GNU ReadLine; only the ReadLine interface is consumed).
Some dependencies are optional:
- ManDoc: Required for compilation of the Manual Pages.
For example, to install dependencies on FreeBSD:
# pkg install git cmake flex libedit
On Open SuSE Linux (Leap 15.3):
# zypper in cmake git flex libedit libedit-devel
Checking out the source code is straightforward:
$ cd InitKit
$ git submodule update --init --recursive
To update an already checked-out source tree, run in the source tree directory:
$ git submodule update --recursive
First, create a build
subdirectory, and $ cd build
into that folder. Run
$ cmake ..
to instruct CMake to prepare Makefiles, then run $ make
to build
InitKit and its dependencies.
Run # make install
to install InitKit.