3 # Wireshark - Network traffic analyzer
4 # By Gerald Combs <gerald@wireshark.org>
5 # Copyright 1998 Gerald Combs
7 # This program is free software; you can redistribute it and/or
8 # modify it under the terms of the GNU General Public License
9 # as published by the Free Software Foundation; either version 2
10 # of the License, or (at your option) any later version.
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
17 # You should have received a copy of the GNU General Public License
18 # along with this program; if not, write to the Free Software
19 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21 include $(top_srcdir)/Makefile.am.inc
23 AM_CPPFLAGS = $(INCLUDEDIRS) $(WS_CPPFLAGS) -DWS_BUILD_DLL \
24 -DTOP_SRCDIR=\"$(abs_top_srcdir)\" \
25 -DDATAFILE_DIR=\"$(pkgdatadir)\" \
26 -DEXTCAP_DIR=\"$(extcapdir)\" \
27 -DPLUGIN_DIR=\"$(pkglibdir)/plugins\" \
29 $(GLIB_CFLAGS) $(LIBGCRYPT_CFLAGS) \
32 # Optional headers for ABI checking
33 wsutil_optional_abi_includes =
35 if HAVE_MACOS_FRAMEWORKS
36 wsutil_optional_abi_includes += cfutils.h
39 # Header files that don't declare replacement functions for functions
40 # present in the APIs/ABIs of some, but not all, targets.
41 libwsutil_nonrepl_INCLUDES = \
98 # Header files for functions in libwsutil's ABI on this platform.
99 libwsutil_abi_INCLUDES = \
100 $(libwsutil_nonrepl_INCLUDES) \
101 $(wsutil_optional_abi_includes)
103 # Optional objects that I know how to build. These will be
104 # linked into libwsutil if necessary.
105 wsutil_optional_objects =
108 wsutil_optional_objects += libwsutil_sse42.la
111 noinst_LTLIBRARIES = libwsutil_sse42.la
113 lib_LTLIBRARIES = libwsutil.la
115 subpkgincludedir = $(pkgincludedir)/wsutil
117 subpkginclude_HEADERS = \
118 $(libwsutil_nonrepl_INCLUDES)
120 libwsutil_la_SOURCES = \
168 if HAVE_MACOS_FRAMEWORKS
169 libwsutil_la_SOURCES += cfutils.c cfutils.h
172 libwsutil_sse42_la_SOURCES = \
175 libwsutil_sse42_la_CFLAGS = $(AM_CFLAGS) $(CFLAGS_SSE42)
177 # http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
178 libwsutil_la_LDFLAGS = -version-info 0:0:0 @LDFLAGS_SHAREDLIB@
180 libwsutil_la_LIBADD = \
182 @COREFOUNDATION_FRAMEWORKS@ \
186 $(wsutil_optional_objects)
188 EXTRA_libwsutil_la_DEPENDENCIES = \
189 $(wsutil_optional_objects)
223 MAINTAINERCLEANFILES = \
226 # ABI compliance checker can be obtained from
227 # http://ispras.linux-foundation.org/index.php/ABI_compliance_checker
228 # Checked using version 1.21.12
229 dumpabi-libwsutil: all abi-descriptor.xml
230 rm -rf abi-check-headers abi_dumps .libs/*.abi.tar.gz
231 mkdir abi-check-headers
232 cp ../config.h ../ws_symbol_export.h $(libwsutil_abi_INCLUDES) abi-check-headers/
233 abi-compliance-checker -log-path abi_logs/log.txt -l libwsutil -v1 `readlink .libs/libwsutil.so | sed 's/.*\.so\.//'` \
234 -relpath $(abs_srcdir) -dump-abi abi-descriptor.xml || \
236 cp -f abi_dumps/libwsutil/libwsutil_* .libs/
237 cd .libs && ln -sf libwsutil_*.abi.tar.gz libwsutil.abi.tar.gz
239 maintainer-clean-local: clean-dumpabi-libwsutil
241 .PHONY: clean-dumpabi-libwsutil
243 clean-dumpabi-libwsutil:
244 rm -rf abi-check-headers abi_dumps .libs/*.abi.tar.gz abi_logs abi-descriptor.xml
247 $(PERL) $(top_srcdir)/tools/checkAPIs.pl -g termoutput -build \
248 -sourcedir=$(srcdir) \
251 # $(PERL) $(top_srcdir)/tools/checkAPIs.pl -g abort -g termoutput \
252 # -sourcedir=$(srcdir) \
253 # file_util.c unicode-utils.c
256 # Editor modelines - https://www.wireshark.org/tools/modelines.html
261 # indent-tabs-mode: t
264 # vi: set shiftwidth=8 tabstop=8 noexpandtab:
265 # :indentSize=8:tabSize=8:noTabs=false: