From Zoltán Lajos Kis:
[metze/wireshark/wip.git] / Makefile.am.inc
1 # Makefile.am.inc
2 # Include file for Makefile.am files to get additional rules
3 #
4 # $Id$
5 #
6 # Wireshark - Network traffic analyzer
7 # By Gerald Combs <gerald@wireshark.org>
8 # Copyright 1998 Gerald Combs
9
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.
14
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.
19
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23
24 AUTOMAKE_OPTIONS = -Wno-portability
25
26 AM_V_AWK = $(am__v_AWK_@AM_V@)
27 am__v_AWK_ = $(am__v_AWK_@AM_DEFAULT_V@)
28 am__v_AWK_0 = @echo "  AWK     " $@;
29
30 AM_V_LEMON = $(am__v_LEMON_@AM_V@)
31 am__v_LEMON_ = $(am__v_LEMON_@AM_DEFAULT_V@)
32 am__v_LEMON_0 = @echo "  LEMON   " $@;
33
34 AM_V_RUNLEX = $(am__v_RUNLEX_@AM_V@)
35 am__v_RUNLEX_ = $(am__v_RUNLEX_@AM_DEFAULT_V@)
36 am__v_RUNLEX_0 = @echo "  RUNLEX  " $@;
37
38 AM_V_SED = $(am__v_SED_@AM_V@)
39 am__v_SED_ = $(am__v_SED_@AM_DEFAULT_V@)
40 am__v_SED_0 = @echo "  SED     " $@;
41
42 .l.c:
43         $(AM_V_RUNLEX)$(RUNLEX) "$(LEX)" -o$@ $<
44
45 .def.sym:
46         $(AM_V_AWK)$(AWK) '/^EXPORTS$$/ {next;}; ${def_sym_filter_symbols} /^[^;]/ { print $$1;}' < $< > $@
47
48 # abi-compliance-checker descriptor
49 INCLUDE_DIRS = $(subst -I,NEWLINE,$(filter -I%, $(CFLAGS) -I$(abs_top_srcdir) -I$(abs_srcdir)))
50 abi-descriptor.xml: ../abi-descriptor.template
51         $(AM_V_SED)sed "s|@INCLUDE_DIRS@|$(INCLUDE_DIRS)|g;s/NEWLINE/\n    /g;s|@LIBRARY_OUTPUT_PATH@|{RELPATH}/.libs|" $< > $@