1 How to Configure Sherlock libraries
2 ===================================
6 There are two different levels of configuring/customizing program
7 based on sherlock libraries:
9 - runtime configuration in configuration files (see <<config:>>)
11 - compile-time configuration of the libraries: config switches set
12 before compiling, selecting optional features.
16 If you run configure in the source directory, it prepares for compilation inside
17 the source tree. In this case, an `obj` subdirectory is created to hold all generated
18 files (object files, binaries, generated source files etc.) and all final files
19 are linked to the `run` subdirectory. No other parts of the source tree are written into.
21 Alternatively, you can compile in a separate object tree (which is useful when you
22 want to build several different configurations from a single source tree). In order
23 to do that, switch to the destination directory and issue `<source-dir>/configure ...`.
24 This way, configure will create the `obj` and `run` directories locally and set up
25 a Makefile which refers to the original source tree.
29 To set up compilation, possibly overriding default compile-time
32 ./configure [<option> | -<option> | <option>=<value> ...]
34 The default values of feature options are taken from `default.cfg`.
35 Compiler flags and options dependent on compiler, OS and CPU type
36 are set in `ucw/autoconf.cfg`. Everything can be overriden by options
37 specified on the configure's command line, which have the highest
40 If you want to see the resulting set of options, take a look at
43 Options specifying compiler/linker/debugger options can be also overriden
44 during compilation by `make <option>=<value>`. While it's also possible
45 to specify the other options in this way, it probably won't have the desired
46 effect, because configure also generates C include files containing the
51 - `./configure -CONFIG_SHARED` will build the libraries statically.
52 - `./configure -CONFIG_IMAGES` avoids building the image library.
53 - `./configure CONFIG_UCW_ONLY -CONFIG_UCW_UTILS` compiles only the
54 libucw library without its util programs.