HACK: pinfo->private_data points to smb_info again
[wireshark-wip.git] / plugins / gryphon / Makefile.am
blobdf171466d96f7895ddfa79e153be46144610bfd0
1 # Makefile.am
2 # Automake file for Gryphon plugin
3 # By Steve Limkemann <stevelim@dgtech.com>
4 # Copyright 1998 Steve Limkemann
6 # $Id$
8 # Wireshark - Network traffic analyzer
9 # By Gerald Combs <gerald@wireshark.org>
10 # Copyright 1998 Gerald Combs
12 # This program is free software; you can redistribute it and/or
13 # modify it under the terms of the GNU General Public License
14 # as published by the Free Software Foundation; either version 2
15 # of the License, or (at your option) any later version.
17 # This program is distributed in the hope that it will be useful,
18 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20 # GNU General Public License for more details.
22 # You should have received a copy of the GNU General Public License
23 # along with this program; if not, write to the Free Software
24 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
27 include $(top_srcdir)/Makefile.am.inc
29 AM_CPPFLAGS = -I$(top_srcdir)
31 include Makefile.common
33 if HAVE_WARNINGS_AS_ERRORS
34 AM_CFLAGS = -Werror
35 endif
37 plugindir = @plugindir@
39 plugin_LTLIBRARIES = gryphon.la
41 gryphon_la_SOURCES = \
42         plugin.c \
43         moduleinfo.h \
44         $(SRC_FILES)    \
45         $(HEADER_FILES)
47 gryphon_la_LDFLAGS = -module -avoid-version
48 gryphon_la_LIBADD = @PLUGIN_LIBS@
50 # Libs must be cleared, or else libtool won't create a shared module.
51 # If your module needs to be linked against any particular libraries,
52 # add them here.
53 LIBS =
56 # Build plugin.c, which contains the plugin version[] string, a
57 # function plugin_register() that calls the register routines for all
58 # protocols, and a function plugin_reg_handoff() that calls the handoff
59 # registration routines for all protocols.
61 # We do this by scanning sources.  If that turns out to be too slow,
62 # maybe we could just require every .o file to have an register routine
63 # of a given name (packet-aarp.o -> proto_register_aarp, etc.).
65 # Formatting conventions:  The name of the proto_register_* routines an
66 # proto_reg_handoff_* routines must start in column zero, or must be
67 # preceded only by "void " starting in column zero, and must not be
68 # inside #if.
70 # REGISTER_SRC_FILES is assumed to have all the files that need to be scanned.
72 # For some unknown reason, having a big "for" loop in the Makefile
73 # to scan all the files doesn't work with some "make"s; they seem to
74 # pass only the first few names in the list to the shell, for some
75 # reason.
77 # Therefore, we have a script to generate the plugin.c file.
78 # The shell script runs slowly, as multiple greps and seds are run
79 # for each input file; this is especially slow on Windows.  Therefore,
80 # if Python is present (as indicated by PYTHON being defined), we run
81 # a faster Python script to do that work instead.
83 # The first argument is the directory in which the source files live.
84 # The second argument is "plugin", to indicate that we should build
85 # a plugin.c file for a plugin.
86 # All subsequent arguments are the files to scan.
88 plugin.c: $(REGISTER_SRC_FILES) Makefile.common $(top_srcdir)/tools/make-dissector-reg \
89     $(top_srcdir)/tools/make-dissector-reg.py
90         @if test -n "$(PYTHON)"; then \
91                 echo Making plugin.c with python ; \
92                 $(PYTHON) $(top_srcdir)/tools/make-dissector-reg.py $(srcdir) \
93                     plugin $(REGISTER_SRC_FILES) ; \
94         else \
95                 echo Making plugin.c with shell script ; \
96                 $(top_srcdir)/tools/make-dissector-reg $(srcdir) \
97                     $(plugin_src) plugin $(REGISTER_SRC_FILES) ; \
98         fi
101 # Currently plugin.c can be included in the distribution because
102 # we always build all protocol dissectors. We used to have to check
103 # whether or not to build the snmp dissector. If we again need to
104 # variably build something, making plugin.c non-portable, uncomment
105 # the dist-hook line below.
107 # Oh, yuk.  We don't want to include "plugin.c" in the distribution, as
108 # its contents depend on the configuration, and therefore we want it
109 # to be built when the first "make" is done; however, Automake insists
110 # on putting *all* source into the distribution.
112 # We work around this by having a "dist-hook" rule that deletes
113 # "plugin.c", so that "dist" won't pick it up.
115 #dist-hook:
116 #       @rm -f $(distdir)/plugin.c
118 CLEANFILES = \
119         gryphon \
120         *~
122 MAINTAINERCLEANFILES = \
123         Makefile.in     \
124         plugin.c
126 EXTRA_DIST = \
127         Makefile.common         \
128         Makefile.nmake          \
129         moduleinfo.nmake        \
130         plugin.rc.in            \
131         CMakeLists.txt
133 checkapi:
134         $(PERL) $(top_srcdir)/tools/checkAPIs.pl -g abort -g termoutput -build \
135                 $(CLEAN_SRC_FILES) $(CLEAN_HEADER_FILES)