1999-09-09 03:55:49 +00:00
|
|
|
# Makefile.am
|
|
|
|
# Automake file for Wiretap
|
|
|
|
#
|
2004-07-18 00:24:25 +00:00
|
|
|
# $Id$
|
1999-09-09 03:55:49 +00:00
|
|
|
#
|
2006-05-21 05:12:17 +00:00
|
|
|
# Wireshark - Network traffic analyzer
|
|
|
|
# By Gerald Combs <gerald@wireshark.org>
|
1999-09-09 03:55:49 +00:00
|
|
|
# Copyright 1998 Gerald Combs
|
2003-07-29 19:42:01 +00:00
|
|
|
#
|
1999-09-09 03:55:49 +00:00
|
|
|
# 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.
|
2003-07-29 19:42:01 +00:00
|
|
|
#
|
1999-09-09 03:55:49 +00:00
|
|
|
# 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.
|
2003-07-29 19:42:01 +00:00
|
|
|
#
|
1999-09-09 03:55:49 +00:00
|
|
|
# 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.
|
1999-09-09 03:55:49 +00:00
|
|
|
|
2007-08-01 20:35:05 +00:00
|
|
|
include ../Makefile.am.inc
|
|
|
|
|
Add a script, "aclocal-flags", which figures out where
1) aclocal expects autoconf/automake macros to be hidden;
2) GTK+ hid its autoconf/automake macros;
and, if both places exist but aren't the same directory, returns a "-I"
flag to tell aclocal to look in GTK+'s directory.
Then have "autogen.sh", and Makefiles in directories with "acinclude.m4"
files, use that script and pass what flag it supplies, if any, to
aclocal.
This should, I hope, avoid problems such as those FreeBSD systems where
GTK+ was installed from a port or package (and thus stuck its macros in
"/usr/X11R6/share/aclocal") but aclocal doesn't look there.
(It doesn't solve the problem of somebody downloading and installing,
say, libtool from source - which means it probably shows up under
"/usr/local", with its macros in "/usr/local/share/aclocal" - on a
system that comes with aclocal (meaning it probably just looks in
"/usr/share/aclocal", but that may be best fixed by, whenever you
download a source tarball for something that's part of your OS,
configuring it to install in the standard system directories and
*overwriting* your OS's version.)
svn path=/trunk/; revision=2165
2000-07-26 08:03:57 +00:00
|
|
|
ACLOCAL_AMFLAGS = `../aclocal-flags`
|
|
|
|
|
2004-07-26 20:46:54 +00:00
|
|
|
include Makefile.common
|
|
|
|
|
2007-05-17 18:02:22 +00:00
|
|
|
noinst_LTLIBRARIES = libwiretap_generated.la
|
2004-03-13 10:15:36 +00:00
|
|
|
lib_LTLIBRARIES = libwiretap.la
|
2011-06-06 21:40:40 +00:00
|
|
|
# http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
|
2013-04-22 17:59:38 +00:00
|
|
|
libwiretap_la_LDFLAGS = -version-info 0:0:0 @LDFLAGS_SHAREDLIB@
|
2013-02-28 19:35:59 +00:00
|
|
|
|
2013-03-01 23:53:11 +00:00
|
|
|
AM_NON_GENERATED_CFLAGS =-DWS_BUILD_DLL
|
1999-05-01 05:19:25 +00:00
|
|
|
|
2007-05-17 18:02:22 +00:00
|
|
|
if HAVE_WARNINGS_AS_ERRORS
|
2013-02-28 19:35:59 +00:00
|
|
|
AM_NON_GENERATED_CFLAGS += -Werror
|
2007-05-17 18:02:22 +00:00
|
|
|
endif
|
|
|
|
|
2013-03-12 06:53:39 +00:00
|
|
|
AM_CPPFLAGS = -I$(srcdir)/..
|
2008-05-20 21:51:01 +00:00
|
|
|
|
1999-03-01 18:57:07 +00:00
|
|
|
CLEANFILES = \
|
|
|
|
libwiretap.a \
|
2004-03-24 21:27:44 +00:00
|
|
|
libwiretap.la \
|
2007-05-17 18:02:22 +00:00
|
|
|
libwiretap_generated.a \
|
|
|
|
libwiretap_generated.la \
|
1999-07-07 22:52:57 +00:00
|
|
|
*~
|
1998-11-12 00:06:47 +00:00
|
|
|
|
2005-07-10 08:04:27 +00:00
|
|
|
MAINTAINERCLEANFILES = \
|
|
|
|
$(GENERATED_FILES) \
|
2007-12-07 23:38:59 +00:00
|
|
|
Makefile.in
|
2004-03-06 21:46:27 +00:00
|
|
|
|
2007-05-17 18:02:22 +00:00
|
|
|
#Since code generated by lex may trigger gcc warnings, we are now generating two
|
|
|
|
#libraries. A single library is generated with the lex code without the barrier
|
|
|
|
#"stop on warning". An other library is generated from the remaining source
|
|
|
|
#files with the "stop on warning" barrier.
|
2004-03-13 10:15:36 +00:00
|
|
|
libwiretap_la_SOURCES = \
|
2004-07-27 00:36:31 +00:00
|
|
|
$(NONGENERATED_C_FILES) \
|
|
|
|
$(NONGENERATED_HEADER_FILES)
|
2007-05-17 18:02:22 +00:00
|
|
|
libwiretap_la_CFLAGS = $(AM_NON_GENERATED_CFLAGS)
|
|
|
|
|
|
|
|
libwiretap_generated_la_SOURCES = \
|
|
|
|
$(GENERATED_C_FILES)
|
1999-07-15 15:33:52 +00:00
|
|
|
|
|
|
|
EXTRA_DIST = \
|
2011-06-07 15:05:45 +00:00
|
|
|
README.airmagnet \
|
2003-04-02 20:21:45 +00:00
|
|
|
README.developer \
|
2004-07-26 20:46:54 +00:00
|
|
|
Makefile.common \
|
2001-04-18 21:34:22 +00:00
|
|
|
Makefile.nmake \
|
2010-06-30 23:20:03 +00:00
|
|
|
libwiretap.vcproj \
|
2007-12-17 23:35:02 +00:00
|
|
|
$(GENERATOR_FILES) \
|
2004-07-26 20:46:54 +00:00
|
|
|
$(GENERATED_FILES)
|
1999-09-11 04:50:44 +00:00
|
|
|
|
2009-08-07 18:47:56 +00:00
|
|
|
libwiretap_la_LIBADD = libwiretap_generated.la ${top_builddir}/wsutil/libwsutil.la $(GLIB_LIBS)
|
2013-02-28 19:35:59 +00:00
|
|
|
libwiretap_la_DEPENDENCIES = libwiretap_generated.la ${top_builddir}/wsutil/libwsutil.la
|
2007-05-17 18:02:22 +00:00
|
|
|
|
2007-12-07 23:38:59 +00:00
|
|
|
RUNLEX = $(top_srcdir)/tools/runlex.sh
|
2007-08-04 02:13:52 +00:00
|
|
|
|
2012-06-19 19:53:03 +00:00
|
|
|
k12text_lex.h : k12text.c
|
|
|
|
|
2009-06-15 18:56:46 +00:00
|
|
|
ascend_scanner_lex.h : ascend_scanner.c
|
2007-08-04 02:13:52 +00:00
|
|
|
|
2012-06-19 19:53:03 +00:00
|
|
|
ascend_scanner.c: ascend.h
|
2007-08-04 02:13:52 +00:00
|
|
|
|
2013-07-12 03:35:44 +00:00
|
|
|
ascend.h: ascend.c
|
|
|
|
|
|
|
|
ascend.c: ascend.y
|
2007-05-17 18:02:22 +00:00
|
|
|
@if [ -z "$(YACC)" ]; then \
|
|
|
|
echo "Neither bison nor byacc has been found"; \
|
|
|
|
exit 1; \
|
|
|
|
fi
|
2009-06-15 18:56:46 +00:00
|
|
|
$(YACC) -d -p ascend -o ascend.c $(srcdir)/ascend.y
|
2008-07-02 01:44:30 +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-libwiretap: 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 19:35:59 +00:00
|
|
|
cp *.h ../ws_symbol_export.h abi-check-headers/
|
2013-01-29 01:06:24 +00:00
|
|
|
abi-compliance-checker -l libwiretap -v1 `readlink .libs/libwiretap.so | sed 's/.*\.so\.//'` \
|
2012-06-08 23:54:22 +00:00
|
|
|
-relpath $(abs_srcdir) -dump-abi abi-descriptor.xml || \
|
|
|
|
cat logs/libwiretap/[0-9]*/log.txt
|
|
|
|
cp -f abi_dumps/libwiretap/libwiretap_* .libs/
|
|
|
|
cd .libs && ln -sf libwiretap_*.abi.tar.gz libwiretap.abi.tar.gz
|
2011-05-31 12:07:25 +00:00
|
|
|
|
2008-07-02 01:44:30 +00:00
|
|
|
checkapi:
|
2011-02-04 02:10:15 +00:00
|
|
|
## 'abort' checking disabled for now pending resolution of existing use of g_assert & g_error
|
|
|
|
## $(PERL) ../tools/checkAPIs.pl -g abort -g termoutput $(NONGENERATED_C_FILES) $(GENERATOR_FILES)
|
2012-04-04 20:46:49 +00:00
|
|
|
$(PERL) ../tools/checkAPIs.pl -g termoutput -build $(NONGENERATED_C_FILES) $(GENERATOR_FILES)
|