2 # Include file for Makefile.am files to get additional rules
4 # Wireshark - Network traffic analyzer
5 # By Gerald Combs <gerald@wireshark.org>
6 # Copyright 1998 Gerald Combs
8 # This program is free software; you can redistribute it and/or
9 # modify it under the terms of the GNU General Public License
10 # as published by the Free Software Foundation; either version 2
11 # of the License, or (at your option) any later version.
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22 AUTOMAKE_OPTIONS = -Wno-portability
24 lemon_srcdir = $(top_srcdir)/tools/lemon
25 lemon_builddir = $(top_builddir)/tools/lemon
26 LEMON = $(lemon_builddir)/lemon$(EXEEXT)
28 cd $(lemon_builddir) && $(MAKE)
30 RUNLEX = $(top_srcdir)/tools/runlex.sh
32 INCLUDEDIRS = -I$(top_srcdir)
34 #AM_CPPFLAGS = $(INCLUDEDIRS) $(WS_CPPFLAGS)
36 AM_CFLAGS = $(WERROR) $(WS_CFLAGS)
38 GENERATED_CFLAGS = $(WS_CFLAGS)
40 AM_CXXFLAGS = $(WERROR) $(WS_CXXFLAGS)
42 GENERATED_CXXFLAGS = $(WS_CXXFLAGS)
44 AM_LDFLAGS = $(WS_LDFLAGS)
46 AM_V_PERL = $(am__v_PERL_@AM_V@)
47 am__v_PERL_ = $(am__v_PERL_@AM_DEFAULT_V@)
48 am__v_PERL_0 = @echo " PERL " $@;
50 AM_V_AWK = $(am__v_AWK_@AM_V@)
51 am__v_AWK_ = $(am__v_AWK_@AM_DEFAULT_V@)
52 am__v_AWK_0 = @echo " AWK " $@;
54 AM_V_LEMON = $(am__v_LEMON_@AM_V@)
55 am__v_LEMON_ = $(am__v_LEMON_@AM_DEFAULT_V@)
56 am__v_LEMON_0 = @echo " LEMON " $@;
58 AM_V_RUNLEX = $(am__v_RUNLEX_@AM_V@)
59 am__v_RUNLEX_ = $(am__v_RUNLEX_@AM_DEFAULT_V@)
60 am__v_RUNLEX_0 = @echo " RUNLEX " $@;
62 AM_V_SED = $(am__v_SED_@AM_V@)
63 am__v_SED_ = $(am__v_SED_@AM_DEFAULT_V@)
64 am__v_SED_0 = @echo " SED " $@;
66 # _PYTHON is a reserved automake keyword
67 AM_V_python = $(am__v_python_@AM_V@)
68 am__v_python_ = $(am__v_python_@AM_DEFAULT_V@)
69 am__v_python_0 = @echo " PYTHON " $@;
71 AM_V_YACC = $(am__v_YACC_@AM_V@)
72 am__v_YACC_ = $(am__v_YACC_@AM_DEFAULT_V@)
73 am__v_YACC_0 = @echo " YACC " $@;
76 $(AM_V_RUNLEX)$(RUNLEX) "$(LEX)" "$(SED)" -o$@ $<
78 # abi-compliance-checker descriptor
79 abi_incdirs = $(subst -I,NEWLINE,$(filter -I%,$(WS_CFLAGS) -I$(abs_top_srcdir) -I$(abs_srcdir)))
80 abi_sysdirs = $(subst -isystem,NEWLINE,$(filter -isystem%,$(WS_CFLAGS)))
81 abi_includes = $(abi_incdirs) $(abi_sysdirs)
82 abi-descriptor.xml: ../abi-descriptor.template
84 -e 's|@INCLUDE_DIRS@|$(abi_includes)|g' \
85 -e 's/ *NEWLINE/\n /g' \
86 -e 's|@LIBRARY_OUTPUT_PATH@|{RELPATH}/.libs|' $< > $@