2008-05-20 21:51:01 +00:00
|
|
|
# Makefile.am
|
|
|
|
#
|
|
|
|
# Wireshark - Network traffic analyzer
|
|
|
|
# By Gerald Combs <gerald@wireshark.org>
|
|
|
|
# Copyright 1998 Gerald Combs
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU General Public License
|
|
|
|
# as published by the Free Software Foundation; either version 2
|
|
|
|
# of the License, or (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software
|
2012-06-28 22:56:06 +00:00
|
|
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
2008-05-20 21:51:01 +00:00
|
|
|
|
2015-11-27 02:28:17 +00:00
|
|
|
include $(top_srcdir)/Makefile.am.inc
|
|
|
|
|
2016-02-19 08:20:35 +00:00
|
|
|
AM_CPPFLAGS = $(INCLUDEDIRS) $(WS_CPPFLAGS) -DWS_BUILD_DLL \
|
2016-02-20 13:13:35 +00:00
|
|
|
-DTOP_SRCDIR=\"$(abs_top_srcdir)\" \
|
|
|
|
-DDATAFILE_DIR=\"$(pkgdatadir)\" \
|
|
|
|
-DEXTCAP_DIR=\"$(extcapdir)\" \
|
2016-02-19 08:20:35 +00:00
|
|
|
-DPLUGIN_INSTALL_DIR=\"$(plugindir)\" \
|
2016-09-28 10:01:33 +00:00
|
|
|
-DJSMN_STRICT \
|
2016-02-19 08:20:35 +00:00
|
|
|
$(GLIB_CFLAGS) $(LIBGCRYPT_CFLAGS)
|
2015-11-27 02:28:17 +00:00
|
|
|
|
2014-07-19 07:23:37 +00:00
|
|
|
# Optional headers for ABI checking
|
2014-10-29 01:43:12 +00:00
|
|
|
wsutil_optional_abi_includes =
|
2014-07-19 07:23:37 +00:00
|
|
|
|
2015-11-25 05:46:40 +00:00
|
|
|
if HAVE_OS_X_FRAMEWORKS
|
|
|
|
wsutil_optional_abi_includes += cfutils.h
|
|
|
|
endif
|
|
|
|
|
2016-06-21 04:06:23 +00:00
|
|
|
# Header files that don't declare replacement functions for functions
|
|
|
|
# present in the APIs/ABIs of some, but not all, targets.
|
|
|
|
libwsutil_nonrepl_INCLUDES = \
|
|
|
|
adler32.h \
|
|
|
|
aes.h \
|
2016-10-31 05:10:56 +00:00
|
|
|
base32.h \
|
2016-06-21 04:06:23 +00:00
|
|
|
base64.h \
|
|
|
|
bits_count_ones.h \
|
|
|
|
bits_ctz.h \
|
|
|
|
bitswap.h \
|
|
|
|
buffer.h \
|
|
|
|
clopts_common.h \
|
|
|
|
cmdarg_err.h \
|
|
|
|
copyright_info.h \
|
2016-09-22 11:23:37 +00:00
|
|
|
cpu_info.h \
|
2016-06-21 04:06:23 +00:00
|
|
|
crash_info.h \
|
|
|
|
crc6.h \
|
|
|
|
crc7.h \
|
|
|
|
crc8.h \
|
|
|
|
crc10.h \
|
|
|
|
crc11.h \
|
|
|
|
crc16.h \
|
|
|
|
crc16-plain.h \
|
|
|
|
crc32.h \
|
|
|
|
des.h \
|
|
|
|
eax.h \
|
|
|
|
filesystem.h \
|
|
|
|
frequency-utils.h \
|
|
|
|
g711.h \
|
|
|
|
inet_addr.h \
|
|
|
|
inet_ipv6.h \
|
|
|
|
interface.h \
|
|
|
|
jsmn.h \
|
|
|
|
md4.h \
|
|
|
|
md5.h \
|
|
|
|
mpeg-audio.h \
|
|
|
|
nstime.h \
|
|
|
|
os_version_info.h \
|
|
|
|
pint.h \
|
|
|
|
plugins.h \
|
|
|
|
privileges.h \
|
|
|
|
processes.h \
|
|
|
|
rc4.h \
|
|
|
|
report_err.h \
|
|
|
|
sha1.h \
|
|
|
|
sha2.h \
|
|
|
|
sign_ext.h \
|
|
|
|
sober128.h \
|
|
|
|
str_util.h \
|
|
|
|
strnatcmp.h \
|
2016-08-30 15:52:54 +00:00
|
|
|
strtoi.h \
|
2016-06-21 04:06:23 +00:00
|
|
|
tempfile.h \
|
|
|
|
time_util.h \
|
|
|
|
type_util.h \
|
|
|
|
unicode-utils.h \
|
|
|
|
utf8_entities.h \
|
|
|
|
ws_cpuid.h \
|
|
|
|
ws_mempbrk.h \
|
2016-07-15 20:59:23 +00:00
|
|
|
ws_mempbrk_int.h \
|
2016-09-28 10:01:33 +00:00
|
|
|
ws_printf.h \
|
|
|
|
wsjsmn.h
|
2016-06-21 04:06:23 +00:00
|
|
|
|
2014-07-19 07:23:37 +00:00
|
|
|
# Header files for functions in libwsutil's ABI on this platform.
|
2016-06-21 04:06:23 +00:00
|
|
|
libwsutil_abi_INCLUDES = \
|
2014-07-19 07:23:37 +00:00
|
|
|
$(libwsutil_nonrepl_INCLUDES) \
|
|
|
|
$(wsutil_optional_abi_includes)
|
|
|
|
|
2010-12-16 16:42:34 +00:00
|
|
|
# Optional objects that I know how to build. These will be
|
Clean up handling of missing functions.
With autotools, CMake, and nmake, if we have a function, #define
HAVE_{function_name_in_all_caps}, otherwise don't #define it.
If we provide our own version of a function in libwsutil, make sure we
have a header that declares it, and *ONLY* include that header if
HAVE_{function_name_in_all_caps} is *NOT* defined, so that we don't have
the system declaration and our declaration colliding.
Check for inet_aton, strncasecmp, and strptime with CMake, just as we do
with autotools.
Simplify the addition of {function_name_in_all_caps}_LO to libwsutil in
autotools.
Change-Id: Id5be5c73f79f81919a3a865324e400eca7b88889
Reviewed-on: https://code.wireshark.org/review/2903
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2014-07-06 21:02:39 +00:00
|
|
|
# linked into libwsutil if necessary.
|
2016-03-27 00:32:57 +00:00
|
|
|
wsutil_optional_objects =
|
2010-12-16 16:42:34 +00:00
|
|
|
|
2014-06-12 21:42:18 +00:00
|
|
|
if SSE42_SUPPORTED
|
2014-05-22 21:04:40 +00:00
|
|
|
wsutil_optional_objects += libwsutil_sse42.la
|
2014-06-12 21:42:18 +00:00
|
|
|
endif
|
2014-05-22 21:04:40 +00:00
|
|
|
|
|
|
|
noinst_LTLIBRARIES = libwsutil_sse42.la
|
|
|
|
|
2008-05-20 21:51:01 +00:00
|
|
|
lib_LTLIBRARIES = libwsutil.la
|
|
|
|
|
2016-06-21 04:06:23 +00:00
|
|
|
libwsutil_la_SOURCES = \
|
|
|
|
$(libwsutil_nonrepl_INCLUDES) \
|
|
|
|
adler32.c \
|
|
|
|
aes.c \
|
|
|
|
airpdcap_wep.c \
|
2016-10-31 05:10:56 +00:00
|
|
|
base32.c \
|
2016-06-21 04:06:23 +00:00
|
|
|
base64.c \
|
|
|
|
bitswap.c \
|
|
|
|
buffer.c \
|
|
|
|
clopts_common.c \
|
|
|
|
cmdarg_err.c \
|
|
|
|
copyright_info.c \
|
2016-09-22 11:23:37 +00:00
|
|
|
cpu_info.c \
|
2016-06-21 04:06:23 +00:00
|
|
|
crash_info.c \
|
|
|
|
crc6.c \
|
|
|
|
crc7.c \
|
|
|
|
crc8.c \
|
|
|
|
crc10.c \
|
|
|
|
crc11.c \
|
|
|
|
crc16.c \
|
|
|
|
crc16-plain.c \
|
|
|
|
crc32.c \
|
|
|
|
des.c \
|
|
|
|
eax.c \
|
|
|
|
filesystem.c \
|
|
|
|
frequency-utils.c \
|
|
|
|
g711.c \
|
|
|
|
inet_addr.c \
|
|
|
|
interface.c \
|
|
|
|
jsmn.c \
|
|
|
|
md4.c \
|
|
|
|
md5.c \
|
|
|
|
mpeg-audio.c \
|
|
|
|
nstime.c \
|
|
|
|
os_version_info.c \
|
|
|
|
plugins.c \
|
|
|
|
privileges.c \
|
|
|
|
rc4.c \
|
|
|
|
report_err.c \
|
|
|
|
sha1.c \
|
|
|
|
sha2.c \
|
|
|
|
sober128.c \
|
|
|
|
str_util.c \
|
2016-08-30 15:52:54 +00:00
|
|
|
strtoi.c \
|
2016-06-21 04:06:23 +00:00
|
|
|
strnatcmp.c \
|
|
|
|
tempfile.c \
|
|
|
|
time_util.c \
|
|
|
|
type_util.c \
|
|
|
|
unicode-utils.c \
|
2016-09-28 10:01:33 +00:00
|
|
|
ws_mempbrk.c \
|
|
|
|
wsjsmn.c
|
2015-11-25 05:46:40 +00:00
|
|
|
|
|
|
|
if HAVE_OS_X_FRAMEWORKS
|
2016-06-21 04:06:23 +00:00
|
|
|
libwsutil_la_SOURCES += cfutils.c cfutils.h
|
2015-11-25 05:46:40 +00:00
|
|
|
endif
|
|
|
|
|
2014-05-22 21:04:40 +00:00
|
|
|
libwsutil_sse42_la_SOURCES = \
|
|
|
|
ws_mempbrk_sse42.c
|
2014-06-13 15:55:38 +00:00
|
|
|
|
2015-11-27 02:28:17 +00:00
|
|
|
libwsutil_sse42_la_CFLAGS = $(AM_CFLAGS) $(CFLAGS_SSE42)
|
2014-05-22 21:04:40 +00:00
|
|
|
|
2016-06-21 04:06:23 +00:00
|
|
|
# http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
|
|
|
|
libwsutil_la_LDFLAGS = -version-info 0:0:0 @LDFLAGS_SHAREDLIB@
|
2010-05-29 01:00:52 +00:00
|
|
|
|
2015-11-25 05:46:40 +00:00
|
|
|
libwsutil_la_LIBADD = \
|
2016-06-21 04:06:23 +00:00
|
|
|
$(LTLIBOBJS) \
|
2014-06-21 18:01:19 +00:00
|
|
|
@COREFOUNDATION_FRAMEWORKS@ \
|
2016-06-21 04:06:23 +00:00
|
|
|
@GLIB_LIBS@ \
|
|
|
|
@LIBGCRYPT_LIBS@ \
|
|
|
|
$(wsutil_optional_objects)
|
|
|
|
|
|
|
|
EXTRA_libwsutil_la_DEPENDENCIES = \
|
2010-05-28 20:19:55 +00:00
|
|
|
$(wsutil_optional_objects)
|
2008-05-20 21:51:01 +00:00
|
|
|
|
2015-11-25 05:46:40 +00:00
|
|
|
EXTRA_DIST = \
|
2016-06-21 04:06:23 +00:00
|
|
|
.editorconfig \
|
|
|
|
cfutils.c \
|
|
|
|
cfutils.h \
|
|
|
|
CMakeLists.txt \
|
|
|
|
file_util.c \
|
|
|
|
file_util.h \
|
|
|
|
getopt_long.c \
|
|
|
|
getopt_long.h \
|
|
|
|
inet_addr-int.h \
|
|
|
|
inet_aton.c \
|
|
|
|
inet_aton.h \
|
|
|
|
inet_ntop.c \
|
|
|
|
inet_pton.c \
|
|
|
|
popcount.c \
|
|
|
|
popcount.h \
|
|
|
|
strptime.c \
|
|
|
|
strptime.h \
|
|
|
|
win32-utils.c \
|
|
|
|
win32-utils.h \
|
|
|
|
ws_mempbrk_sse42.c \
|
|
|
|
wsgcrypt.h \
|
2016-04-05 02:02:03 +00:00
|
|
|
wsgetopt.h
|
2008-05-22 15:46:27 +00:00
|
|
|
|
|
|
|
CLEANFILES = \
|
|
|
|
libwsutil.a \
|
|
|
|
libwsutil.la \
|
|
|
|
*~
|
|
|
|
|
|
|
|
MAINTAINERCLEANFILES = \
|
|
|
|
Makefile.in
|
2008-05-20 21:51:01 +00:00
|
|
|
|
2011-05-31 12:07:25 +00:00
|
|
|
# ABI compliance checker can be obtained from
|
|
|
|
# http://ispras.linux-foundation.org/index.php/ABI_compliance_checker
|
|
|
|
# Checked using version 1.21.12
|
2013-02-25 18:12:20 +00:00
|
|
|
dumpabi-libwsutil: all abi-descriptor.xml
|
2012-06-08 23:54:22 +00:00
|
|
|
rm -rf abi-check-headers abi_dumps .libs/*.abi.tar.gz
|
|
|
|
mkdir abi-check-headers
|
2014-07-19 07:23:37 +00:00
|
|
|
cp ../config.h ../ws_symbol_export.h $(libwsutil_abi_INCLUDES) abi-check-headers/
|
2015-11-25 06:28:50 +00:00
|
|
|
abi-compliance-checker -log-path abi_logs/log.txt -l libwsutil -v1 `readlink .libs/libwsutil.so | sed 's/.*\.so\.//'` \
|
2012-06-08 23:54:22 +00:00
|
|
|
-relpath $(abs_srcdir) -dump-abi abi-descriptor.xml || \
|
2016-10-11 21:01:20 +00:00
|
|
|
cat abi_logs/log.txt
|
2012-06-08 23:54:22 +00:00
|
|
|
cp -f abi_dumps/libwsutil/libwsutil_* .libs/
|
|
|
|
cd .libs && ln -sf libwsutil_*.abi.tar.gz libwsutil.abi.tar.gz
|
2011-05-31 12:07:25 +00:00
|
|
|
|
2015-11-25 06:28:50 +00:00
|
|
|
maintainer-clean-local: clean-dumpabi-libwsutil
|
|
|
|
|
|
|
|
.PHONY: clean-dumpabi-libwsutil
|
|
|
|
|
|
|
|
clean-dumpabi-libwsutil:
|
2015-12-01 21:26:35 +00:00
|
|
|
rm -rf abi-check-headers abi_dumps .libs/*.abi.tar.gz abi_logs abi-descriptor.xml
|
2015-11-25 06:28:50 +00:00
|
|
|
|
2008-07-02 01:44:30 +00:00
|
|
|
checkapi:
|
2014-04-23 08:50:27 +00:00
|
|
|
$(PERL) $(top_srcdir)/tools/checkAPIs.pl -g termoutput -build \
|
|
|
|
-sourcedir=$(srcdir) \
|
2008-07-02 01:44:30 +00:00
|
|
|
$(LIBWSUTIL_SRC)
|
2013-08-02 02:34:13 +00:00
|
|
|
|
2014-04-23 08:50:27 +00:00
|
|
|
# $(PERL) $(top_srcdir)/tools/checkAPIs.pl -g abort -g termoutput \
|
|
|
|
# -sourcedir=$(srcdir) \
|
2008-07-11 16:18:32 +00:00
|
|
|
# file_util.c unicode-utils.c
|
2014-05-28 16:04:34 +00:00
|
|
|
|
|
|
|
#
|
2014-09-16 20:12:10 +00:00
|
|
|
# Editor modelines - https://www.wireshark.org/tools/modelines.html
|
2014-05-28 16:04:34 +00:00
|
|
|
#
|
|
|
|
# Local variables:
|
|
|
|
# c-basic-offset: 8
|
|
|
|
# tab-width: 8
|
|
|
|
# indent-tabs-mode: t
|
|
|
|
# End:
|
|
|
|
#
|
|
|
|
# vi: set shiftwidth=8 tabstop=8 noexpandtab:
|
|
|
|
# :indentSize=8:tabSize=8:noTabs=false:
|
|
|
|
#
|