summaryrefslogtreecommitdiffstats
path: root/src/Makefile.am
blob: c0f52863b87b33f3a2a833e9605ae7362f632116 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# This is _NOT_ the library release version, it's an API version.
# Extracted from Chapter 6 "Library interface versions" of the libtool docs.
#
# <snippet>
# Here are a set of rules to help you update your library version information:
#
# 1. Start with version information of `0:0:0' for each libtool library.
# 2. Update the version information only immediately before a public release
# of your software. More frequent updates are unnecessary, and only guarantee
# that the current interface number gets larger faster.
# 3. If the library source code has changed at all since the last update,
# then increment revision (`c:r:a' becomes `c:r+1:a').
# 4. If any interfaces have been added, removed, or changed since the last
# update, increment current, and set revision to 0.
# 5. If any interfaces have been added since the last public release, then
# increment age.
# 6. If any interfaces have been removed since the last public release, then
# set age to 0.
# </snippet>
#
LIBVERSION = 3:0:2
IPULOG_LIBVERSION = 1:0:0

include ${top_srcdir}/Make_global.am

lib_LTLIBRARIES = libnetfilter_log.la

libnetfilter_log_la_CPPFLAGS = ${AM_CPPFLAGS} ${LIBNFNETLINK_CFLAGS} ${LIBMNL_CFLAGS}
libnetfilter_log_la_LDFLAGS  = -Wc,-nostartfiles \
			       -version-info $(LIBVERSION)
libnetfilter_log_la_SOURCES  = libnetfilter_log.c nlmsg.c
libnetfilter_log_la_LIBADD   = ${LIBNFNETLINK_LIBS} ${LIBMNL_LIBS}

if BUILD_IPULOG
lib_LTLIBRARIES += libnetfilter_log_libipulog.la

libnetfilter_log_libipulog_la_CPPFLAGS = ${AM_CPPFLAGS} ${LIBNFNETLINK_CFLAGS}
libnetfilter_log_libipulog_la_LDFLAGS  = -Wc,-nostartfiles \
					 -version-info $(IPULOG_LIBVERSION)
libnetfilter_log_libipulog_la_LIBADD   = libnetfilter_log.la ${LIBNFNETLINK_LIBS}
libnetfilter_log_libipulog_la_SOURCES  = libipulog_compat.c
endif