]> granicus.if.org Git - ipset/blob - Make_global.am
Fix use-after-free in ipset_parse_name_compat()
[ipset] / Make_global.am
1 # This is _NOT_ the library release version, it's an API version.
2 # Please read Chapter 6 "Library interface versions" of the libtool
3 # documentation before making any modification
4 #
5 # http://sources.redhat.com/autobook/autobook/autobook_91.html
6 #
7 # The version scheme used by Libtool tracks interfaces, where an interface
8 # is the set of exported entry points into the library. All Libtool libraries
9 # start with `-version-info' set to `0:0:0' -- this will be the default
10 # version number if you don't explicitly set it on the Libtool link command
11 # line. The meaning of these numbers (from left to right) is as follows:
12 #
13 # current
14 #    The number of the current interface exported by the library. A current
15 #    value of `0', means that you are calling the interface exported by this
16 #    library interface 0.
17 #
18 # revision
19 #    The implementation number of the most recent interface exported by this
20 #    library. In this case, a revision value of `0' means that this is the 
21 #    first implementation of the interface.
22 #
23 #    If the next release of this library exports the same interface, but has
24 #    a different implementation (perhaps some bugs have been fixed), the
25 #    revision number will be higher, but current number will be the same.
26 #    In that case, when given a choice, the library with the highest revision
27 #    will always be used by the runtime loader.
28 #
29 # age
30 #    The number of previous additional interfaces supported by this library.
31 #    If age were `2', then this library can be linked into executables which
32 #    were built with a release of this library that exported the current
33 #    interface number, current, or any of the previous two interfaces.
34 #
35 #    By definition age must be less than or equal to current. At the outset,
36 #    only the first ever interface is implemented, so age can only be `0'. 
37 #
38 # 1. If you have changed any of the sources for this library, the revision
39 #    number must be incremented.
40 #    This is a new revision of the current interface.
41 #
42 # 2. If the interface has changed, then current must be incremented, and
43 #    revision reset to `0'.
44 #    This is the first revision of a new interface.
45 #
46 # 3. If the new interface is a superset of the previous interface (that is, 
47 #    if the previous interface has not been broken by the changes in this 
48 #    new release), then age must be incremented.
49 #    This release is backwards compatible with the previous release.
50 #
51 # 4. If the new interface has removed elements with respect to the previous
52 #    interface, then you have broken backward compatibility and age must be
53 #    reset to `0'.
54 #    This release has a new, but backwards incompatible interface.
55 #
56 # For example, if the next release of the library included some new commands
57 # for an existing socket protocol, you would use -version-info 1:0:1.
58 # This is the first revision of a new interface. This release is backwards
59 # compatible with the previous release.
60 #
61 # Later, you implement a faster way of handling part of the algorithm at the
62 # core of the library, and release it with -version-info 1:1:1. This is a new
63 # revision of the current interface.
64 #
65 # Unfortunately the speed of your new implementation can only be fully
66 # exploited by changing the API to access the structures at a lower level,
67 # which breaks compatibility with the previous interface, so you release it
68 # as -version-info 2:0:0. This release has a new, but backwards incompatible
69 # interface. 
70
71 #            curr:rev:age
72 LIBVERSION = 12:0:1
73
74 AM_CPPFLAGS = $(kinclude_CFLAGS) $(all_includes) -I$(top_srcdir)/include
75
76 AM_CFLAGS = -std=gnu99
77
78 if ENABLE_DEBUG
79 AM_CFLAGS += -g -g3 -ggdb -gdwarf-2 -DIPSET_DEBUG -Wall -Werror
80 else
81 AM_CFLAGS += -O2 -DNDEBUG
82 endif
83
84 SPARSE          = sparse
85 SPARSE_FLAGS    = -Wsparse-all -I../include $(SPARSE_EXT_FLAGS)
86 IPSET_AM_V_CHECK = $(ipset_am__v_CHECK_$(V))
87 ipset_am__v_CHECK_ = $(ipset_am__v_CHECK_$(AM_DEFAULT_VERBOSITY))
88 ipset_am__v_CHECK_0 = @echo "  CHECK " $<;
89