name change
[metze/wireshark/wip.git] / plugins / mate / Makefile.am
1 # Makefile.am
2 # Automake file for MATE Ethereal plugin
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., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
23 #
24
25 INCLUDES = -I$(top_srcdir)
26
27 plugindir = @plugindir@
28
29 plugin_LTLIBRARIES = mate.la
30
31 mate_la_SOURCES = \
32         mate.h          \
33         mate_grammar.c  \
34         mate_grammar.h  \
35         mate_parser.c   \
36         mate_plugin.c   \
37         mate_runtime.c  \
38         mate_setup.c    \
39         mate_util.c     \
40         mate_util.h     \
41         moduleinfo.h    \
42         packet-mate.c
43
44 mate_la_LDFLAGS = -module -avoid-version
45 mate_la_LIBADD = @PLUGIN_LIBS@
46
47 # Libs must be cleared, or else libtool won't create a shared module.
48 # If your module needs to be linked against any particular libraries,
49 # add them here.
50 LIBS =
51
52 CLEANFILES = \
53         mate \
54         *~
55
56 DISTCLEANFILES = \
57         mate_grammar.out        \
58         mate_grammar.c          \
59         mate_grammar.h
60
61 MAINTAINERCLEANFILES = \
62         Makefile.in             \
63         mate_grammar.c          \
64         mate_grammar.h          \
65         mate_grammar.out        \
66         mate_parser.c
67
68 EXTRA_DIST = \
69         mate_grammar.lemon \
70         mate_parser.l \
71         Makefile.nmake
72
73 mate_parser.c : mate_parser.l
74         $(LEX) -Pdf_ -omate_parser.c $(srcdir)/mate_parser.l
75
76 LEMON = ../../tools/lemon
77
78 mate_grammar.h : mate_grammar.c
79 mate_grammar.c : mate_grammar.lemon mate.h mate_util.h $(LEMON)/lemon
80         $(LEMON)/lemon t=$(srcdir)/$(LEMON)/lempar.c $(srcdir)/mate_grammar.lemon || \
81                 (rm -f grammar.c grammar.h ; false)
82