YAJL build system is basaed on CMake.
- Chose and create a nice directory to store the intermediate build files.
- Execute
cmake -G"Unix Makefiles" -D CMAKE_INSTALL_PREFIX=./install -D GENERATE_DOCUMENTATION=ON path/to/yajl/root/dir;-G"Unix Makefiles"tells cmake to generate makefiles, other generators are available depending on your platform,-D CMAKE_INSTALL_PREFIX=./installspecify the installation directory to./install,-D GENERATE_DOCUMENTATION=ONspecify to not generate the documentation if doxygen is found,path/to/yajl/root/dirtells cmake where it will find the rootCMakeLists.txtit will build.
- Build YAJL library and tests using your chosen build system, e.g.
make all. - Execute
ctest -Vto launch the tests. - Execute
make installto generate the package to the specified install directory. - Execute
cpackto generate the.tgzpackage.
PS. obviously you can also use CMake via its gui.