Version 2 (modified by 9 years ago) ( diff ) | ,
---|
Matreshka's User's Guide
Installation
To install Matreshka unpack its source code archive and run
make make install
Automatic configuration utility will be build and run to configure Matreshka to meet your machine and operating system.
Advanced installation
Sometimes, it is needed to have more control over configuration and build of Matreshka. One example is use Matreshka on Windows, where detection of non-standard libraries is problematic. Another example is binary packages supporters.
So, build of Matreshka consists from several steps:
- build of configuration utility;
- execution of configuration utility;
- build of package;
- installation of package.
Build of configuration utility
Configuration utility can be build by using
make config
Execution of configuration utility
Execution of configuration utility in its simplest form looks like:
./configure
This is exactly what default make target do, so there is no reasons to use it.
Configuration utility allows to specify several additional parameters all of is reported by
./configure --help
Below is small example of manual execution of configuration utility to install Matreshka in specified directory and to lookup SQLite's libraries in the specified directory on Windows:
configure.exe --prefix=C:\Matreshka --with-sqlite3-libdir=C:\Matreshka\lib
Build of Matreshka
To build Matreshka after manual configuration it is sufficient to run
make
Several make's variables can be used to adjust build process:
- SMP_MFLAGS can be used to utilize several CPUs to compile Matreshka;
- GNAT_OPTFLAGS can be used to pass additional user defined switches for compiler.
Installation of Matreshka
And to install Matreshka:
make install
Install target is used DESTDIR environment variable to adjust root directory, it is very useful for binary packages supporters.