mirror of
https://github.com/lexborisov/Modest
synced 2024-11-22 05:41:32 +03:00
1.6 KiB
1.6 KiB
Modest: Build and Installation
GNU Make
In root directory of project (/
):
make
make test
sudo make install
Flags that can be passed to make:
prefix
, default /usr/localOS
, if not defined try to get from "uname -s"PROJECT_OPTIMIZATION_LEVEL
, default -O2MyCORE_BUILD_WITHOUT_THREADS
, YES or (NO or undefined), default undefinedMyCORE_BUILD_DEBUG
, YES or (NO or undefined), default undefinedMyCORE_WITH_PERF
, YES or (NO or undefined), default undefined, try build with timers (rdtsc or some), OS dependent, may not work on some systems,PROJECT_INSTALL_HEADER
, default "include"PROJECT_INSTALL_LIBRARY
, default "lib"PROJECT_INSTALL_WITHOUT_HEADERS
, YES or (NO or undefined), default undefined
for example:
make -j4 prefix=/usr MyCORE_BUILD_WITHOUT_THREADS=YES
sudo make install
Makefile rules:
all
—- build all components (libraries, examples, tests) (default)library
-- build only static and shared libraryshared
-- build only shared librarystatic
-- build only static libraryclean
-- clean up current build directoryclone
-- copy all headers from source to include directories and modify local include (#include "..."
) to global (#include <...>
)clean_api
-- remove all headers from include directorycreate
-- create directories for binary, libraries, teststest
-- run all testsmodules
-- print modules name, description, dependenciesinstall
-- install libraries and headers on your systemuninstall
-- delete libraries and headers on your systemmake-pc-file
-- create pkg-config file
for example:
make shared