Add a few more menu items.
[obnox/wireshark/wip.git] / plugins / tpg / Makefile.am
1 # Makefile.am
2 # Automake file for MATE Wireshark 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 if HAVE_WARNINGS_AS_ERRORS
26 AM_CFLAGS = -Werror
27 endif
28
29 INCLUDES = -I$(top_srcdir)
30
31 plugindir = @plugindir@
32
33 plugin_LTLIBRARIES = tpg.la
34
35 tpg_la_SOURCES = \
36         moduleinfo.h    \
37         http-parser.c \
38         http-parser.h \
39         packet-http.c
40
41 tpg_la_LDFLAGS = -module -avoid-version
42 tpg_la_LIBADD = @PLUGIN_LIBS@
43
44 # Libs must be cleared, or else libtool won't create a shared module.
45 # If your module needs to be linked against any particular libraries,
46 # add them here.
47 LIBS =
48
49 CLEANFILES = \
50         tpg \
51         *~
52
53 DISTCLEANFILES = \
54         http-parser.c \
55         http-parser.h
56
57 MAINTAINERCLEANFILES = \
58         Makefile.in     \
59         http-parser.c   \
60         http-parser.h   \
61         plugin.c
62
63 EXTRA_DIST = \
64         http.tpg        \
65         Makefile.nmake  \
66         CMakeLists.txt
67
68 TPG = $(top_builddir)/tools/tpg
69
70 http-parser.h: http-parser.c
71
72 $(TPG)/TPG.pm: $(TPG)/TPG.yp
73         cd $(TPG) && make
74
75 http-parser.c: http.tpg $(TPG)/tpg.pl $(TPG)/TPG.pm
76         $(PERL) -I$(TPG) $(TPG)/tpg.pl http.tpg
77
78 checkapi:
79         $(PERL) $(top_srcdir)/tools/checkAPIs.pl -g abort -g termoutput $(DISSECTOR_SRC) $(DISSECTOR_INCLUDES)