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)\" \
|
2017-09-12 09:51:46 +00:00
|
|
|
-DPLUGIN_DIR=\"$(pkglibdir)/plugins\" \
|
2016-09-28 10:01:33 +00:00
|
|
|
-DJSMN_STRICT \
|
2017-08-31 13:39:30 +00:00
|
|
|
$(GLIB_CFLAGS) \
|
|
|
|
$(PCAP_CFLAGS) \
|
|
|
|
$(LIBGCRYPT_CFLAGS) \
|
2017-04-26 05:33:25 +00:00
|
|
|
$(LIBGNUTLS_CFLAGS)
|
2015-11-27 02:28:17 +00:00
|
|
|
|
2017-10-17 22:17:15 +00:00
|
|
|
WSUTIL_PUBLIC_INCLUDES = \
|
2016-06-21 04:06:23 +00:00
|
|
|
adler32.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 \
|
2017-06-10 01:43:00 +00:00
|
|
|
color.h \
|
2016-06-21 04:06:23 +00:00
|
|
|
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 \
|
|
|
|
eax.h \
|
|
|
|
filesystem.h \
|
|
|
|
frequency-utils.h \
|
|
|
|
g711.h \
|
2017-02-17 15:19:56 +00:00
|
|
|
glib-compat.h \
|
2016-06-21 04:06:23 +00:00
|
|
|
inet_addr.h \
|
|
|
|
inet_ipv6.h \
|
|
|
|
interface.h \
|
|
|
|
jsmn.h \
|
|
|
|
mpeg-audio.h \
|
|
|
|
nstime.h \
|
|
|
|
os_version_info.h \
|
|
|
|
pint.h \
|
|
|
|
plugins.h \
|
|
|
|
privileges.h \
|
|
|
|
processes.h \
|
2017-04-08 19:45:19 +00:00
|
|
|
report_message.h \
|
2017-10-17 22:17:15 +00:00
|
|
|
rsa.h \
|
2016-06-21 04:06:23 +00:00
|
|
|
sign_ext.h \
|
|
|
|
sober128.h \
|
2017-01-26 06:20:07 +00:00
|
|
|
socket.h \
|
2016-06-21 04:06:23 +00:00
|
|
|
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 \
|
2017-07-30 15:05:02 +00:00
|
|
|
wsjsmn.h \
|
2017-10-17 22:17:15 +00:00
|
|
|
wsgcrypt.h \
|
|
|
|
wsgetopt.h \
|
|
|
|
wspcap.h \
|
2017-07-30 15:05:02 +00:00
|
|
|
xtea.h
|
2016-06-21 04:06:23 +00:00
|
|
|
|
2017-10-24 23:29:14 +00:00
|
|
|
WSUTIL_PRIVATE_INCLUDES =
|
2017-10-17 22:17:15 +00:00
|
|
|
|
|
|
|
subpkgincludedir = $(pkgincludedir)/wsutil
|
|
|
|
|
|
|
|
subpkginclude_HEADERS = \
|
|
|
|
$(WSUTIL_PUBLIC_INCLUDES)
|
|
|
|
|
|
|
|
noinst_HEADERS = \
|
|
|
|
$(WSUTIL_PRIVATE_INCLUDES)
|
2014-07-19 07:23:37 +00:00
|
|
|
|
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
|
|
|
|
|
2017-10-17 22:17:15 +00:00
|
|
|
libwsutil_sse42_la_SOURCES = \
|
|
|
|
ws_mempbrk_sse42.c
|
2017-09-02 23:42:00 +00:00
|
|
|
|
2017-10-17 22:17:15 +00:00
|
|
|
libwsutil_sse42_la_CFLAGS = $(AM_CFLAGS) $(CFLAGS_SSE42)
|
2017-09-02 23:42:00 +00:00
|
|
|
|
2016-06-21 04:06:23 +00:00
|
|
|
libwsutil_la_SOURCES = \
|
|
|
|
adler32.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 \
|
|
|
|
eax.c \
|
|
|
|
filesystem.c \
|
|
|
|
frequency-utils.c \
|
|
|
|
g711.c \
|
2017-02-17 15:19:56 +00:00
|
|
|
glib-compat.c \
|
2016-06-21 04:06:23 +00:00
|
|
|
inet_addr.c \
|
|
|
|
interface.c \
|
|
|
|
jsmn.c \
|
|
|
|
mpeg-audio.c \
|
|
|
|
nstime.c \
|
|
|
|
os_version_info.c \
|
|
|
|
plugins.c \
|
|
|
|
privileges.c \
|
2017-04-08 19:45:19 +00:00
|
|
|
report_message.c \
|
2017-04-26 05:33:25 +00:00
|
|
|
rsa.c \
|
2016-06-21 04:06:23 +00:00
|
|
|
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 \
|
2017-02-13 18:31:26 +00:00
|
|
|
wsgcrypt.c \
|
2017-06-04 10:32:13 +00:00
|
|
|
wsjsmn.c \
|
|
|
|
xtea.c
|
2015-11-25 05:46: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) \
|
2017-10-17 22:17:15 +00:00
|
|
|
$(GLIB_LIBS) \
|
|
|
|
$(LIBGCRYPT_LIBS) \
|
|
|
|
$(LIBGNUTLS_LIBS) \
|
2016-06-21 04:06:23 +00:00
|
|
|
$(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
|
|
|
|
2017-10-17 22:17:15 +00:00
|
|
|
# Only source code files that may be built via LTLIBOBJS (besides files not
|
|
|
|
# built at all) must be added to EXTRA_DIST
|
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 \
|
|
|
|
popcount.c \
|
|
|
|
popcount.h \
|
|
|
|
strptime.c \
|
|
|
|
strptime.h \
|
|
|
|
win32-utils.c \
|
2017-10-17 22:17:15 +00:00
|
|
|
win32-utils.h
|
2008-05-22 15:46:27 +00:00
|
|
|
|
|
|
|
CLEANFILES = \
|
|
|
|
libwsutil.a \
|
|
|
|
libwsutil.la \
|
|
|
|
*~
|
|
|
|
|
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) \
|
2017-10-08 16:54:50 +00:00
|
|
|
$(libwsutil_la_SOURCES)
|
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:
|
|
|
|
#
|