5 # Wireshark - Network traffic analyzer
6 # By Gerald Combs <gerald@wireshark.org>
7 # Copyright 1998 Gerald Combs
9 # This program is free software; you can redistribute it and/or
10 # modify it under the terms of the GNU General Public License
11 # as published by the Free Software Foundation; either version 2
12 # of the License, or (at your option) any later version.
14 # This program is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 # GNU General Public License for more details.
19 # You should have received a copy of the GNU General Public License
20 # along with this program; if not, write to the Free Software
21 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23 ACLOCAL_AMFLAGS = `../aclocal-flags`
25 # Optional objects that I know how to build. These will be
26 # linked into libwsutil.
27 wsutil_optional_objects =
30 wsutil_optional_objects += @GETOPT_LO@
34 wsutil_optional_objects += @INET_ATON_LO@
38 wsutil_optional_objects += @INET_NTOP_LO@
42 wsutil_optional_objects += @INET_PTON_LO@
45 if NEED_STRNCASECMP_LO
46 wsutil_optional_objects += @STRNCASECMP_LO@
50 wsutil_optional_objects += @STRPTIME_LO@
53 include ../Makefile.am.inc
55 include Makefile.common
57 AM_CFLAGS =-DWS_BUILD_DLL
59 if HAVE_WARNINGS_AS_ERRORS
63 lib_LTLIBRARIES = libwsutil.la
64 # http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
65 libwsutil_la_LDFLAGS = -version-info 0:0:0 @LDFLAGS_SHAREDLIB@
67 AM_CPPFLAGS = -I$(srcdir)/.. \
70 libwsutil_la_SOURCES = \
74 EXTRA_libwsutil_la_SOURCES= \
87 libwsutil_la_DEPENDENCIES= \
88 $(wsutil_optional_objects)
90 libwsutil_la_LIBADD = \
93 $(wsutil_optional_objects)
110 MAINTAINERCLEANFILES = \
113 # ABI compliance checker can be obtained from
114 # http://ispras.linux-foundation.org/index.php/ABI_compliance_checker
115 # Checked using version 1.21.12
116 dumpabi-libwsutil: all abi-descriptor.xml
117 rm -rf abi-check-headers abi_dumps .libs/*.abi.tar.gz
118 mkdir abi-check-headers
119 cp ../config.h ../ws_symbol_export.h *.h abi-check-headers/
120 abi-compliance-checker -l libwsutil -v1 `readlink .libs/libwsutil.so | sed 's/.*\.so\.//'` \
121 -relpath $(abs_srcdir) -dump-abi abi-descriptor.xml || \
122 cat logs/libwsutil/[0-9]*/log.txt
123 cp -f abi_dumps/libwsutil/libwsutil_* .libs/
124 cd .libs && ln -sf libwsutil_*.abi.tar.gz libwsutil.abi.tar.gz
127 $(PERL) ../tools/checkAPIs.pl -g termoutput -build \
130 # $(PERL) ../tools/checkAPIs.pl -g abort -g termoutput \
131 # file_util.c unicode-utils.c