2 # Automake file for Wiretap
6 # Wireshark - Network traffic analyzer
7 # By Gerald Combs <gerald@wireshark.org>
8 # Copyright 1998 Gerald Combs
10 # This program is free software; you can redistribute it and/or
11 # modify it under the terms of the GNU General Public License
12 # as published by the Free Software Foundation; either version 2
13 # of the License, or (at your option) any later version.
15 # This program is distributed in the hope that it will be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 # GNU General Public License for more details.
20 # You should have received a copy of the GNU General Public License
21 # along with this program; if not, write to the Free Software
22 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24 include ../Makefile.am.inc
26 ACLOCAL_AMFLAGS = `../aclocal-flags`
28 include Makefile.common
30 noinst_LTLIBRARIES = libwiretap_generated.la
31 lib_LTLIBRARIES = libwiretap.la
32 libwiretap_la_LDFLAGS = -version-info 0:1:0 -export-symbols wtap.sym @LDFLAGS_SHAREDLIB@
34 if HAVE_WARNINGS_AS_ERRORS
35 AM_NON_GENERATED_CFLAGS = -Werror
38 INCLUDES = -I$(srcdir)/..
43 libwiretap_generated.a \
44 libwiretap_generated.la \
48 MAINTAINERCLEANFILES = \
52 #Since code generated by lex may trigger gcc warnings, we are now generating two
53 #libraries. A single library is generated with the lex code without the barrier
54 #"stop on warning". An other library is generated from the remaining source
55 #files with the "stop on warning" barrier.
56 libwiretap_la_SOURCES = \
57 $(NONGENERATED_C_FILES) \
58 $(NONGENERATED_HEADER_FILES)
59 libwiretap_la_CFLAGS = $(AM_NON_GENERATED_CFLAGS)
61 libwiretap_generated_la_SOURCES = \
73 libwiretap_la_LIBADD = libwiretap_generated.la ${top_builddir}/wsutil/libwsutil.la $(GLIB_LIBS)
74 libwiretap_la_DEPENDENCIES = libwiretap_generated.la ${top_builddir}/wsutil/libwsutil.la wtap.sym
76 RUNLEX = $(top_srcdir)/tools/runlex.sh
78 ascend_scanner_lex.h : ascend_scanner.c
80 k12text_lex.h : k12text.c
82 ascend.c ascend.h: ascend.y
83 @if [ -z "$(YACC)" ]; then \
84 echo "Neither bison nor byacc has been found"; \
87 $(YACC) -d -p ascend -o ascend.c $(srcdir)/ascend.y
90 ## 'abort' checking disabled for now pending resolution of existing use of g_assert & g_error
91 ## $(PERL) ../tools/checkAPIs.pl -g abort -g termoutput $(NONGENERATED_C_FILES) $(GENERATOR_FILES)
92 $(PERL) ../tools/checkAPIs.pl -g termoutput $(NONGENERATED_C_FILES) $(GENERATOR_FILES)