Debian Codegraph @

lib/README.libtool

raw
1 libgretl uses the libtool versioning system. Version information is
2 specified using libtool's `-version-info' flag during link mode.
3
4 The following notes are taken from the libtool info manual.
5
6 ...libtool library versions are described by three integers:
7
8 CURRENT
9 The most recent interface number that this library implements.
10
11 REVISION
12 The implementation number of the CURRENT interface.
13
14 AGE
15 The difference between the newest and oldest interfaces that this
16 library implements. In other words, the library implements all the
17 interface numbers in the range from number `CURRENT - AGE' to
18 `CURRENT'.
19
20 [libtool's -version-info] flag accepts an argument of the form
21 `CURRENT[:REVISION[:AGE]]'. So, passing `-version-info 3:12:1' sets
22 CURRENT to 3, REVISION to 12, and AGE to 1.
23
24 If either REVISION or AGE are omitted, they default to 0. Also note
25 that AGE must be less than or equal to the CURRENT interface number.
26
27 Here are a set of rules to help you update your library version
28 information:
29
30 1. Start with version information of `0:0:0' for each libtool library.
31
32 2. Update the version information only immediately before a public
33 release of your software. More frequent updates are unnecessary,
34 and only guarantee that the current interface number gets larger
35 faster.
36
37 3. If the library source code has changed at all since the last
38 update, then increment REVISION (`C:R:A' becomes `C:r+1:A').
39
40 4. If any interfaces have been added, removed, or changed since the
41 last update, increment CURRENT, and set REVISION to 0.
42
43 5. If any interfaces have been added since the last public release,
44 then increment AGE.
45
46 6. If any interfaces have been removed since the last public release,
47 then set AGE to 0.