![Jeff Morriss](/assets/img/avatar_default.png)
of adding libwsutil but somehow I missed it/got it wrong. This should solve https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1677#c18 Also remove the _DEPENDENCIES lines in epan and wiretap (as was done in the top-level Makefile in rev 25930) so that automake will automatically figure out the dependencies for us. Since the those 2 libraries now link against libwsutil, don't make every executable link against the library. (If this works I think we can significantly trim the list of libraries the executables link against and just let the libraries pull in what they need--which is, apparently, the point of the --as-needed flag: http://www.gentoo.org/proj/en/qa/asneeded.xml ). svn path=/trunk/; revision=26218
88 lines
2.4 KiB
Makefile
88 lines
2.4 KiB
Makefile
# Makefile.am
|
|
# Automake file for Wiretap
|
|
#
|
|
# $Id$
|
|
#
|
|
# 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
|
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
include ../Makefile.am.inc
|
|
|
|
ACLOCAL_AMFLAGS = `../aclocal-flags`
|
|
|
|
include Makefile.common
|
|
|
|
noinst_LTLIBRARIES = libwiretap_generated.la
|
|
lib_LTLIBRARIES = libwiretap.la
|
|
libwiretap_la_LDFLAGS = -version-info 0:1:0 @LDFLAGS_SHAREDLIB@
|
|
|
|
if HAVE_WARNINGS_AS_ERRORS
|
|
AM_NON_GENERATED_CFLAGS = -Werror
|
|
endif
|
|
|
|
INCLUDES = -I$(srcdir)/..
|
|
|
|
CLEANFILES = \
|
|
libwiretap.a \
|
|
libwiretap.la \
|
|
libwiretap_generated.a \
|
|
libwiretap_generated.la \
|
|
*~
|
|
|
|
MAINTAINERCLEANFILES = \
|
|
$(GENERATED_FILES) \
|
|
Makefile.in
|
|
|
|
#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.
|
|
libwiretap_la_SOURCES = \
|
|
$(NONGENERATED_C_FILES) \
|
|
$(NONGENERATED_HEADER_FILES)
|
|
libwiretap_la_CFLAGS = $(AM_NON_GENERATED_CFLAGS)
|
|
|
|
libwiretap_generated_la_SOURCES = \
|
|
$(GENERATED_C_FILES)
|
|
|
|
EXTRA_DIST = \
|
|
README.developer \
|
|
Makefile.common \
|
|
Makefile.nmake \
|
|
wtap.def \
|
|
$(GENERATOR_FILES) \
|
|
$(GENERATED_FILES)
|
|
|
|
libwiretap_la_LIBADD = libwiretap_generated.la $(GLIB_LIBS) ${top_builddir}/wsutil/libwsutil.la
|
|
|
|
RUNLEX = $(top_srcdir)/tools/runlex.sh
|
|
|
|
ascend-scanner_lex.h : ascend-scanner.c
|
|
|
|
k12text_lex.h : k12text.c
|
|
|
|
ascend-grammar.c ascend-grammar.h: ascend-grammar.y
|
|
@if [ -z "$(YACC)" ]; then \
|
|
echo "Neither bison nor byacc has been found"; \
|
|
exit 1; \
|
|
fi
|
|
$(YACC) -d -p ascend -o ascend-grammar.c $(srcdir)/ascend-grammar.y
|
|
|
|
checkapi:
|
|
$(PERL) ../tools/checkAPIs.pl -g abort -g termoutput $(NONGENERATED_C_FILES) $(GENERATOR_FILES)
|