2 # Automake file for the EPAN library
3 # (Ethereal Protocol ANalyzer Library)
5 # $Id: Makefile.am,v 1.43 2004/03/22 21:29:52 gerald Exp $
7 # Ethereal - Network traffic analyzer
8 # By Gerald Combs <gerald@ethereal.com>
9 # Copyright 1998 Gerald Combs
11 # This program is free software; you can redistribute it and/or
12 # modify it under the terms of the GNU General Public License
13 # as published by the Free Software Foundation; either version 2
14 # of the License, or (at your option) any later version.
16 # This program is distributed in the hope that it will be useful,
17 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 # GNU General Public License for more details.
21 # You should have received a copy of the GNU General Public License
22 # along with this program; if not, write to the Free Software
23 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25 SUBDIRS = ftypes dfilter
27 # EPAN will eventually be a shared library. While I move source code around,
28 # however, it is an archive library.
30 ACLOCAL_AMFLAGS = `../aclocal-flags`
32 lib_LTLIBRARIES = libethereal.la
33 libethereal_la_LDFLAGS = -version-info 0:1:0
35 include Makefile.common
37 INCLUDES = -I$(srcdir)/..
39 libethereal_la_SOURCES = \
96 $(DISSECTOR_SUPPORT_SRC)
98 EXTRA_libethereal_la_SOURCES = \
114 x11-register-info.h \
117 MAINTAINERCLEANFILES = \
122 # Add the object files for missing routines, if any.
124 libethereal_la_LIBADD = @INET_ATON_O@ @INET_PTON_O@ @INET_NTOP_O@ dfilter/libdfilter.la ftypes/libftypes.la @KRB5_LIBS@
125 libethereal_la_DEPENDENCIES = @INET_ATON_O@ @INET_PTON_O@ @INET_NTOP_O@ dfilter/libdfilter.la ftypes/libftypes.la
127 ../packet-ncp2222.c : $(srcdir)/../ncp2222.py
128 $(PYTHON) $(srcdir)/../ncp2222.py -o $@
130 tvbtest: tvbtest.o tvbuff.o except.o strutil.o
131 $(LINK) -o tvbtest tvbtest.o tvbuff.o except.o strutil.o `glib-config --libs`
134 # Build "register.c", which contains a function "register_all_protocols()"
135 # that calls the register routines for all protocols.
137 # We do this by grepping through sources. If that turns out to be too slow,
138 # maybe we could just require every .o file to have an register routine
139 # of a given name (packet-aarp.o -> proto_register_aarp, etc.).
141 # Formatting conventions: The name of the proto_register_* routines must
142 # start in column zero, or must be preceded only by "void " starting in
143 # column zero, and must not be inside #if.
145 # We assume that all dissector routines are in "packet-XXX.c" files.
147 # For some unknown reason, having a big "for" loop in the Makefile
148 # to scan all the "packet-XXX.c" files doesn't work with some "make"s;
149 # they seem to pass only the first few names in the list to the shell,
152 # Therefore, we have a script to generate the "register.c" file.
154 # The first argument is the name of the file to write.
155 # The second argument is the directory in which the source files live.
156 # All subsequent arguments are the files to scan.
158 register.c: $(plugin_src) $(DISSECTOR_SRC) $(srcdir)/../make-reg-dotc
159 @if test -n $(PYTHON); then \
160 echo Making register.c with python ; \
161 $(PYTHON) $(srcdir)/../make-reg-dotc.py $(srcdir) $(DISSECTOR_SRC) ; \
163 echo Making register.c with shell script ; \
164 $(srcdir)/../make-reg-dotc register.c $(srcdir) \
165 $(plugin_src) $(DISSECTOR_SRC) ; \
169 # Currently register.c can be included in the distribution because
170 # we always build all protocol dissectors. We used to have to check
171 # whether or not to build the snmp dissector. If we again need to
172 # variably build something, making register.c non-portable, uncomment
173 # the dist-hook line below.
175 # Oh, yuk. We don't want to include "register.c" in the distribution, as
176 # its contents depend on the configuration, and therefore we want it
177 # to be built when the first "make" is done; however, Automake insists
178 # on putting *all* source into the distribution.
180 # We work around this by having a "dist-hook" rule that deletes
181 # "register.c", so that "dist" won't pick it up.
184 # @rm -f $(distdir)/register.c
187 # Build various header files for the X11 dissector.
189 x11-declarations.h x11-register-info.h: ../x11-fields ../process-x11-fields.pl
190 $(PERL) $(srcdir)/../process-x11-fields.pl <$(srcdir)/../x11-fields
197 ../plugins/acn/packet-acn.c \
198 ../plugins/artnet/packet-artnet.c \
199 ../plugins/asn1/packet-asn1.c \
200 ../plugins/docsis/packet-bpkmattr.c \
201 ../plugins/docsis/packet-bpkmreq.c \
202 ../plugins/docsis/packet-bpkmrsp.c \
203 ../plugins/docsis/packet-docsis.c \
204 ../plugins/docsis/packet-dsaack.c \
205 ../plugins/docsis/packet-dsareq.c \
206 ../plugins/docsis/packet-dsarsp.c \
207 ../plugins/docsis/packet-dscack.c \
208 ../plugins/docsis/packet-dscreq.c \
209 ../plugins/docsis/packet-dscrsp.c \
210 ../plugins/docsis/packet-dsdreq.c \
211 ../plugins/docsis/packet-dsdrsp.c \
212 ../plugins/docsis/packet-intrngreq.c \
213 ../plugins/docsis/packet-macmgmt.c \
214 ../plugins/docsis/packet-map.c \
215 ../plugins/docsis/packet-regack.c \
216 ../plugins/docsis/packet-regreq.c \
217 ../plugins/docsis/packet-regrsp.c \
218 ../plugins/docsis/packet-rngreq.c \
219 ../plugins/docsis/packet-rngrsp.c \
220 ../plugins/docsis/packet-tlv.c \
221 ../plugins/docsis/packet-type29ucd.c \
222 ../plugins/docsis/packet-uccreq.c \
223 ../plugins/docsis/packet-uccrsp.c \
224 ../plugins/docsis/packet-ucd.c \
225 ../plugins/enttec/packet-enttec.c \
226 ../plugins/giop/packet-cosnaming.c \
227 ../plugins/giop/packet-coseventcomm.c \
228 ../plugins/gryphon/packet-gryphon.c \
229 ../plugins/irda/packet-irda.c \
230 ../plugins/lwres/packet-lwres.c \
231 ../plugins/megaco/packet-megaco.c \
232 ../plugins/mgcp/packet-mgcp.c \
233 ../plugins/pcli/packet-pcli.c \
234 ../plugins/rdm/packet-rdm.c \
235 ../plugins/rtnet/packet-rtnet.c \
236 ../plugins/v5ua/packet-v5ua.c
242 endif # ENABLE_STATIC