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 INCLUDEDIRS = -I$(top_srcdir)
32 #AM_CPPFLAGS = $(INCLUDEDIRS) $(WS_CPPFLAGS)
34 AM_CFLAGS = $(WERROR) $(WS_CFLAGS)
36 GENERATED_CFLAGS = $(WS_CFLAGS)
38 AM_CXXFLAGS = $(WERROR) $(WS_CXXFLAGS)
40 GENERATED_CXXFLAGS = $(WS_CXXFLAGS)
42 AM_LDFLAGS = $(WS_LDFLAGS)
44 AM_V_PERL = $(am__v_PERL_@AM_V@)
45 am__v_PERL_ = $(am__v_PERL_@AM_DEFAULT_V@)
46 am__v_PERL_0 = @echo " PERL " $@;
48 AM_V_AWK = $(am__v_AWK_@AM_V@)
49 am__v_AWK_ = $(am__v_AWK_@AM_DEFAULT_V@)
50 am__v_AWK_0 = @echo " AWK " $@;
52 AM_V_LEMON = $(am__v_LEMON_@AM_V@)
53 am__v_LEMON_ = $(am__v_LEMON_@AM_DEFAULT_V@)
54 am__v_LEMON_0 = @echo " LEMON " $@;
56 AM_V_LEX = $(am__v_LEX_@AM_V@)
57 am__v_LEX_ = $(am__v_LEX_@AM_DEFAULT_V@)
58 am__v_LEX_0 = @echo " LEX " $@;
60 AM_V_SED = $(am__v_SED_@AM_V@)
61 am__v_SED_ = $(am__v_SED_@AM_DEFAULT_V@)
62 am__v_SED_0 = @echo " SED " $@;
64 AM_V_LN_S = $(am__v_LN_S_@AM_V@)
65 am__v_LN_S_ = $(am__v_LN_S_@AM_DEFAULT_V@)
66 am__v_LN_S_0 = @echo " LN_S " $@;
68 # _PYTHON is a reserved automake keyword
69 AM_V_python = $(am__v_python_@AM_V@)
70 am__v_python_ = $(am__v_python_@AM_DEFAULT_V@)
71 am__v_python_0 = @echo " PYTHON " $@;
73 AM_V_YACC = $(am__v_YACC_@AM_V@)
74 am__v_YACC_ = $(am__v_YACC_@AM_DEFAULT_V@)
75 am__v_YACC_0 = @echo " YACC " $@;
78 $(AM_V_LEX)$(LEX) -o$@ --header-file=$(@:.c=_lex.h) $<
80 # abi-compliance-checker descriptor
81 abi_incdirs = $(subst -I,NEWLINE,$(filter -I%,$(AM_CPPFLAGS) -I$(abs_top_srcdir) -I$(abs_srcdir)))
82 abi_sysdirs = $(subst -isystem,NEWLINE,$(filter -isystem%,$(AM_CPPFLAGS)))
83 abi_includes = $(abi_incdirs) $(abi_sysdirs)
84 abi-descriptor.xml: ../abi-descriptor.template
86 -e 's|@INCLUDE_DIRS@|$(abi_includes)|g' \
87 -e 's/ *NEWLINE/\n /g' \
88 -e 's|@LIBRARY_OUTPUT_PATH@|{RELPATH}/.libs|' $< > $@