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
|
|
|
|
2008-05-23 02:09:48 +00:00
|
|
|
ACLOCAL_AMFLAGS = `../aclocal-flags`
|
|
|
|
|
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.
|
|
|
|
wsutil_optional_objects = \
|
|
|
|
@GETOPT_LO@ \
|
|
|
|
@INET_ATON_LO@ \
|
|
|
|
@INET_NTOP_LO@ \
|
|
|
|
@INET_PTON_LO@ \
|
|
|
|
@STRNCASECMP_LO@ \
|
|
|
|
@STRPTIME_LO@
|
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
|
|
|
|
2010-12-16 16:42:34 +00:00
|
|
|
include ../Makefile.am.inc
|
|
|
|
|
2008-05-23 02:09:48 +00:00
|
|
|
include Makefile.common
|
|
|
|
|
2013-03-01 23:53:11 +00:00
|
|
|
AM_CFLAGS =-DWS_BUILD_DLL
|
2013-02-28 14:09:46 +00:00
|
|
|
|
2008-05-20 21:51:01 +00:00
|
|
|
if HAVE_WARNINGS_AS_ERRORS
|
2013-02-28 14:09:46 +00:00
|
|
|
AM_CFLAGS += -Werror
|
2008-05-20 21:51:01 +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
|
2011-06-06 21:40:40 +00:00
|
|
|
# http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
|
2013-02-28 14:09:46 +00:00
|
|
|
libwsutil_la_LDFLAGS = -version-info 0:0:0 @LDFLAGS_SHAREDLIB@
|
2008-05-20 21:51:01 +00:00
|
|
|
|
2013-10-18 16:32:43 +00:00
|
|
|
AM_CPPFLAGS = -I$(srcdir)/.. \
|
2013-11-17 02:55:14 +00:00
|
|
|
$(LIBGCRYPT_CFLAGS) \
|
|
|
|
-DTOP_SRCDIR=\"$(abs_top_srcdir)\"
|
2008-05-20 21:51:01 +00:00
|
|
|
|
2010-05-28 20:19:55 +00:00
|
|
|
libwsutil_la_SOURCES = \
|
2008-05-23 02:09:48 +00:00
|
|
|
$(LIBWSUTIL_SRC) \
|
|
|
|
$(LIBWSUTIL_INCLUDES)
|
2008-05-20 21:51:01 +00:00
|
|
|
|
2014-05-22 21:04:40 +00:00
|
|
|
libwsutil_sse42_la_SOURCES = \
|
|
|
|
ws_mempbrk_sse42.c
|
2014-06-13 15:55:38 +00:00
|
|
|
|
2014-06-18 09:49:57 +00:00
|
|
|
libwsutil_sse42_la_CFLAGS = $(AM_CFLAGS) @CFLAGS_SSE42@
|
2014-05-22 21:04:40 +00:00
|
|
|
|
2010-05-29 01:00:52 +00:00
|
|
|
EXTRA_libwsutil_la_SOURCES= \
|
|
|
|
inet_aton.c \
|
2010-05-29 03:33:28 +00:00
|
|
|
inet_aton.h \
|
|
|
|
inet_ntop.c \
|
|
|
|
inet_pton.c \
|
|
|
|
inet_v6defs.h \
|
|
|
|
strncasecmp.c \
|
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
|
|
|
strncasecmp.h \
|
2010-05-29 03:33:28 +00:00
|
|
|
strptime.c \
|
|
|
|
strptime.h \
|
|
|
|
wsgetopt.c \
|
2012-04-04 15:23:47 +00:00
|
|
|
wsgetopt.h \
|
|
|
|
wsgetopt_int.h
|
2010-05-29 03:33:28 +00:00
|
|
|
|
|
|
|
libwsutil_la_DEPENDENCIES= \
|
2013-02-28 14:09:46 +00:00
|
|
|
$(wsutil_optional_objects)
|
2010-05-29 01:00:52 +00:00
|
|
|
|
|
|
|
libwsutil_la_LIBADD = \
|
2014-06-21 18:01:19 +00:00
|
|
|
@COREFOUNDATION_FRAMEWORKS@ \
|
2010-05-29 01:00:52 +00:00
|
|
|
@GLIB_LIBS@ \
|
2013-08-01 23:34:47 +00:00
|
|
|
@LIBGCRYPT_LIBS@ \
|
2010-05-28 20:19:55 +00:00
|
|
|
$(wsutil_optional_objects)
|
2008-05-20 21:51:01 +00:00
|
|
|
|
2010-05-28 20:19:55 +00:00
|
|
|
EXTRA_DIST = \
|
2013-04-03 07:38:44 +00:00
|
|
|
CMakeLists.txt \
|
2008-05-23 02:15:27 +00:00
|
|
|
Makefile.common \
|
|
|
|
Makefile.nmake \
|
|
|
|
file_util.c \
|
2014-06-13 15:55:38 +00:00
|
|
|
file_util.h \
|
2013-02-21 18:09:18 +00:00
|
|
|
wsgcrypt.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
|
2013-02-28 14:09:46 +00:00
|
|
|
cp ../config.h ../ws_symbol_export.h *.h abi-check-headers/
|
2013-01-29 01:06:24 +00:00
|
|
|
abi-compliance-checker -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 || \
|
|
|
|
cat logs/libwsutil/[0-9]*/log.txt
|
|
|
|
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
|
|
|
|
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
|
|
|
|
|
|
|
#
|
|
|
|
# Editor modelines - http://www.wireshark.org/tools/modelines.html
|
|
|
|
#
|
|
|
|
# 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:
|
|
|
|
#
|