2000-09-27 04:55:05 +00:00
|
|
|
# Makefile.am
|
|
|
|
# Automake file for the EPAN library
|
|
|
|
# (Ethereal Protocol ANalyzer Library)
|
|
|
|
#
|
2004-07-18 00:24:25 +00:00
|
|
|
# $Id$
|
2000-09-27 04:55:05 +00:00
|
|
|
#
|
2006-05-21 05:12:17 +00:00
|
|
|
# Wireshark - Network traffic analyzer
|
|
|
|
# By Gerald Combs <gerald@wireshark.org>
|
2000-09-27 04:55:05 +00:00
|
|
|
# Copyright 1998 Gerald Combs
|
2008-01-17 18:42:19 +00:00
|
|
|
#
|
2000-09-27 04:55:05 +00:00
|
|
|
# This program is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU General Public License
|
|
|
|
# as published by the Free Software Foundation; either version 2
|
|
|
|
# of the License, or (at your option) any later version.
|
2008-01-17 18:42:19 +00:00
|
|
|
#
|
2000-09-27 04:55:05 +00:00
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
2008-01-17 18:42:19 +00:00
|
|
|
#
|
2000-09-27 04:55:05 +00:00
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software
|
|
|
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
|
2007-08-01 20:35:05 +00:00
|
|
|
include ../Makefile.am.inc
|
|
|
|
|
2006-09-25 01:09:00 +00:00
|
|
|
if HAVE_LIBLUA
|
|
|
|
wslua_lib = wslua/libwslua.la
|
|
|
|
wslua_dir = wslua
|
2008-01-17 18:42:19 +00:00
|
|
|
wslua_dist_dir =
|
2006-09-25 01:09:00 +00:00
|
|
|
else # HAVE_LIBLUA
|
|
|
|
wslua_lib =
|
|
|
|
wslua_dir =
|
2006-09-26 22:24:50 +00:00
|
|
|
wslua_dist_dir = wslua
|
2006-09-25 01:09:00 +00:00
|
|
|
endif # HAVE_LIBLUA
|
|
|
|
|
|
|
|
|
2006-12-28 17:22:12 +00:00
|
|
|
SUBDIRS = crypt ftypes dfilter dissectors $(wslua_dir)
|
2000-09-27 04:55:05 +00:00
|
|
|
|
2006-09-26 22:24:50 +00:00
|
|
|
DIST_SUBDIRS = $(SUBDIRS) $(wslua_dist_dir)
|
|
|
|
|
Give libethereal its own configuration file, and have that configuration
file, rather than the top-level Ethereal configuration file, check for
"inet_aton()", "inet_pton()", and "inet_ntop()". Then make its
Makefile.am include the appropriate object files if necessary.
Otherwise, they don't get built and put into libethereal, and therefore
attempts to link with anything in libethereal that uses them fail on
platforms that lack ethem, causing the build to fail.
That means a bunch of things need to be fixed to cope with libethereal
having its own "config.h" file; this means removing the include of
"config.h" from some libethereal header files. Move the definitions of
the path names used only by "resolv.c" to "resolv.c" from "resolv.h" (so
"resolv.h" doesn't need "config.h", define HAVE_PLUGINS in the configure
script (so we don't have to include it in "plugins.h" to check whether
HAVE_DLFCN_H is defined).
Unfortunately, stuff outside libethereal needs to know PLUGIN_DIR; for
now, define that in the top-level configuration file, and have Ethereal
and Tethereal pass it as an argument to "epan_init()" - that should be
cleaned up at some point.
Remove from the top-level configure script checks for things used only
in libethereal.
svn path=/trunk/; revision=2498
2000-10-16 23:18:05 +00:00
|
|
|
ACLOCAL_AMFLAGS = `../aclocal-flags`
|
|
|
|
|
2007-11-28 14:39:51 +00:00
|
|
|
noinst_LTLIBRARIES = libwireshark_generated.la libwireshark_asmopt.la
|
2006-05-31 00:23:01 +00:00
|
|
|
lib_LTLIBRARIES = libwireshark.la
|
2007-01-12 21:04:33 +00:00
|
|
|
libwireshark_la_LDFLAGS = -version-info 0:1:0 @LDFLAGS_SHAREDLIB@
|
2000-09-27 04:55:05 +00:00
|
|
|
|
2004-03-02 01:21:56 +00:00
|
|
|
include Makefile.common
|
|
|
|
|
2006-09-25 01:09:00 +00:00
|
|
|
INCLUDES = -I$(srcdir)/.. -I$(srcdir)/$(LEMON) @LUA_INCLUDES@ \
|
2007-11-30 00:45:12 +00:00
|
|
|
$(LIBGNUTLS_CFLAGS) $(LIBGCRYPT_CFLAGS) $(LIBSMI_CFLAGS)
|
2000-09-27 04:55:05 +00:00
|
|
|
|
2007-05-17 17:08:11 +00:00
|
|
|
|
|
|
|
if HAVE_WARNINGS_AS_ERRORS
|
|
|
|
AM_NON_GENERATED_CFLAGS = -Werror
|
|
|
|
endif
|
|
|
|
|
|
|
|
#Since code generated by lex may trigger gcc warnings, we are now generating two
|
|
|
|
#libraries. A single library is generated with the lex code without the barrier
|
|
|
|
#"stop on warning". An other library is generated from the remaining source
|
|
|
|
#files with the "stop on warning" barrier.
|
2006-05-31 00:23:01 +00:00
|
|
|
libwireshark_la_SOURCES = \
|
|
|
|
$(LIBWIRESHARK_SRC) \
|
|
|
|
$(LIBWIRESHARK_INCLUDES)
|
2007-05-17 17:08:11 +00:00
|
|
|
libwireshark_la_CFLAGS = $(AM_NON_GENERATED_CFLAGS)
|
|
|
|
|
|
|
|
libwireshark_generated_la_SOURCES = \
|
2007-08-04 08:04:17 +00:00
|
|
|
$(LIBWIRESHARK_GENERATED_SRC) \
|
|
|
|
$(LIBWIRESHARK_GENERATED_INCLUDES)
|
2000-09-27 04:55:05 +00:00
|
|
|
|
2007-11-28 14:39:51 +00:00
|
|
|
# code optionally implemented in assembler
|
|
|
|
# only C source available for platforms other than Win32
|
|
|
|
libwireshark_asmopt_la_SOURCES = \
|
|
|
|
asm_utils.c \
|
|
|
|
asm_utils.h
|
|
|
|
|
2006-05-31 00:23:01 +00:00
|
|
|
EXTRA_libwireshark_la_SOURCES = \
|
strcasecmp(), strncasecmp(), g_strcasecmp(), and g_strncasecmp() delenda
est. Use g_ascii_strcasecmp() and g_ascii_strncasecmp(), and supply our
own versions if they're missing from GLib (as is the case with GLib
1.x).
In the code to build the list of named fields for Diameter, don't use
g_strdown(); do our own g_ascii_-style upper-case to lower-case mapping
in the hash function and use g_ascii_strcasecmp() in the compare
function.
We do this because there is no guarantee that toupper(), tolower(), and
functions that use them will, for example, map between "I" and "i" in
all locales; in Turkish locales, for example, there are, in both
upper case and lower case, versions of "i" with and without a dot, and
the upper-case version of "i" is "I"-with-a-dot and the lower-case
version of "I" is "i"-without-a-dot. This causes strings that should
match not to match.
This finishes fixing bug 2010 - an earlier checkin prevented the crash
(as there are other ways to produce the same crash, e.g. a bogus
dictionary.xml file), but didn't fix the case-insensitive string matching.
svn path=/trunk/; revision=23623
2007-11-27 18:52:51 +00:00
|
|
|
g_ascii_strcasecmp.c \
|
|
|
|
g_ascii_strcasecmp.h \
|
2004-09-03 18:14:00 +00:00
|
|
|
g_ascii_strtoull.c \
|
|
|
|
g_ascii_strtoull.h \
|
|
|
|
inet_aton.c \
|
2007-11-28 14:39:51 +00:00
|
|
|
inet_aton.h
|
2000-09-27 04:55:05 +00:00
|
|
|
|
2000-10-11 07:35:02 +00:00
|
|
|
EXTRA_DIST = \
|
2007-07-16 17:39:40 +00:00
|
|
|
diam_dict.l \
|
2007-05-17 17:08:11 +00:00
|
|
|
dtd_grammar.lemon \
|
|
|
|
dtd_parse.l \
|
2007-05-19 18:33:44 +00:00
|
|
|
dtd_parse.h \
|
2007-05-17 17:08:11 +00:00
|
|
|
dtd_preparse.l \
|
|
|
|
enterprise-numbers \
|
2006-05-31 00:23:01 +00:00
|
|
|
libwireshark.def \
|
2007-05-17 17:08:11 +00:00
|
|
|
Makefile.common \
|
|
|
|
Makefile.nmake \
|
|
|
|
make-sminmpec.pl \
|
|
|
|
radius_dict.l \
|
|
|
|
tvbtest.c \
|
|
|
|
reassemble_test.c \
|
|
|
|
uat_load.l \
|
|
|
|
exntest.c \
|
2004-06-25 07:10:55 +00:00
|
|
|
doxygen.cfg.in
|
2000-10-11 07:35:02 +00:00
|
|
|
|
2000-09-27 04:55:05 +00:00
|
|
|
CLEANFILES = \
|
2007-05-17 17:08:11 +00:00
|
|
|
libwireshark.a \
|
|
|
|
libwireshark.la \
|
|
|
|
libwireshark_generated.a \
|
|
|
|
libwireshark_generated.la \
|
2007-11-28 14:39:51 +00:00
|
|
|
libwireshark_asmopt.a \
|
|
|
|
libwireshark_asmopt.la \
|
2000-09-27 04:55:05 +00:00
|
|
|
*~
|
|
|
|
|
2005-07-17 13:55:46 +00:00
|
|
|
DISTCLEANFILES = \
|
2007-05-22 07:21:12 +00:00
|
|
|
$(LIBWIRESHARK_DISTCLEAN_GENERATED_SRC) \
|
2007-08-04 08:04:17 +00:00
|
|
|
$(LIBWIRESHARK_DISTCLEAN_GENERATED_INCLUDES) \
|
2007-05-17 17:08:11 +00:00
|
|
|
dtd_grammar.out
|
2005-07-17 13:55:46 +00:00
|
|
|
|
2005-07-10 08:04:27 +00:00
|
|
|
MAINTAINERCLEANFILES = \
|
2007-05-22 07:21:12 +00:00
|
|
|
$(LIBWIRESHARK_NODISTCLEAN_GENERATED_SRC) \
|
2007-08-04 08:04:17 +00:00
|
|
|
$(LIBWIRESHARK_NODISTCLEAN_GENERATED_INCLUDES) \
|
2005-10-09 07:33:07 +00:00
|
|
|
Makefile.in \
|
|
|
|
sminmpec.c
|
2005-07-10 08:04:27 +00:00
|
|
|
|
Give libethereal its own configuration file, and have that configuration
file, rather than the top-level Ethereal configuration file, check for
"inet_aton()", "inet_pton()", and "inet_ntop()". Then make its
Makefile.am include the appropriate object files if necessary.
Otherwise, they don't get built and put into libethereal, and therefore
attempts to link with anything in libethereal that uses them fail on
platforms that lack ethem, causing the build to fail.
That means a bunch of things need to be fixed to cope with libethereal
having its own "config.h" file; this means removing the include of
"config.h" from some libethereal header files. Move the definitions of
the path names used only by "resolv.c" to "resolv.c" from "resolv.h" (so
"resolv.h" doesn't need "config.h", define HAVE_PLUGINS in the configure
script (so we don't have to include it in "plugins.h" to check whether
HAVE_DLFCN_H is defined).
Unfortunately, stuff outside libethereal needs to know PLUGIN_DIR; for
now, define that in the top-level configuration file, and have Ethereal
and Tethereal pass it as an argument to "epan_init()" - that should be
cleaned up at some point.
Remove from the top-level configure script checks for things used only
in libethereal.
svn path=/trunk/; revision=2498
2000-10-16 23:18:05 +00:00
|
|
|
#
|
|
|
|
# Add the object files for missing routines, if any.
|
|
|
|
#
|
2008-01-17 18:42:19 +00:00
|
|
|
libwireshark_la_LIBADD = @G_ASCII_STRCASECMP_LO@ @G_ASCII_STRTOULL_LO@ @INET_ATON_LO@ @INET_PTON_LO@ @INET_NTOP_LO@ libwireshark_generated.la libwireshark_asmopt.la crypt/libairpdcap.la ftypes/libftypes.la dfilter/libdfilter.la dissectors/libcleandissectors.la dissectors/libdissectors.la dissectors/libasndissectors.la dissectors/libpidldissectors.la $(wslua_lib) @SOCKET_LIBS@ @NSL_LIBS@ @ADNS_LIBS@ @LIBGCRYPT_LIBS@ @LIBGNUTLS_LIBS@ @LIBICONV@ @KRB5_LIBS@ @SSL_LIBS@ @LIBSMI_LDFLAGS@ -lm
|
2007-11-28 14:39:51 +00:00
|
|
|
libwireshark_la_DEPENDENCIES = @G_ASCII_STRCASECMP_LO@ @G_ASCII_STRTOULL_LO@ @INET_ATON_LO@ @INET_PTON_LO@ @INET_NTOP_LO@ libwireshark_generated.la libwireshark_asmopt.la crypt/libairpdcap.la ftypes/libftypes.la dfilter/libdfilter.la dissectors/libcleandissectors.la dissectors/libdissectors.la dissectors/libasndissectors.la dissectors/libpidldissectors.la $(wslua_lib)
|
2000-09-27 04:55:05 +00:00
|
|
|
|
2007-04-11 00:22:58 +00:00
|
|
|
#EXTRA_PROGRAMS = reassemble_test
|
|
|
|
#reassemble_test_LDADD = $(GLIB_LIBS)
|
|
|
|
|
|
|
|
reassemble_test: reassemble_test.o tvbuff.o except.o strutil.o emem.o \
|
2008-01-17 18:42:19 +00:00
|
|
|
reassemble.o
|
2007-04-11 00:22:58 +00:00
|
|
|
$(LINK) $^ $(GLIB_LIBS) -lz
|
2007-02-27 06:25:07 +00:00
|
|
|
|
2006-12-02 03:06:55 +00:00
|
|
|
tvbtest: tvbtest.o tvbuff.o except.o strutil.o emem.o
|
2005-08-04 13:54:46 +00:00
|
|
|
$(LINK) $^ $(GLIB_LIBS) -lz
|
|
|
|
|
|
|
|
exntest: exntest.o except.o
|
|
|
|
$(LINK) $^ $(GLIB_LIBS)
|
2004-03-02 01:21:56 +00:00
|
|
|
|
2007-08-04 02:13:52 +00:00
|
|
|
RUNLEX=$(top_srcdir)/tools/runlex.sh
|
|
|
|
|
|
|
|
diam_dict_lex.h: diam_dict.c
|
|
|
|
|
|
|
|
dtd_parse_lex.h: dtd_parse.c
|
|
|
|
|
|
|
|
dtd_preparse_lex.h: dtd_preparse.c
|
|
|
|
|
|
|
|
radius_dict_lex.h: radius_dict.c
|
|
|
|
|
|
|
|
uat_load_lex.h: uat_load.c
|
2005-09-10 17:29:15 +00:00
|
|
|
|
|
|
|
LEMON=../tools/lemon
|
|
|
|
|
2007-08-04 02:13:52 +00:00
|
|
|
dtd_grammar.h: dtd_grammar.c
|
|
|
|
|
2006-11-03 18:39:03 +00:00
|
|
|
dtd_grammar.c: dtd_grammar.lemon $(LEMON)/lemon$(EXEEXT)
|
|
|
|
$(LEMON)/lemon$(EXEEXT) t=$(srcdir)/$(LEMON)/lempar.c $(srcdir)/dtd_grammar.lemon
|
2008-01-17 18:42:19 +00:00
|
|
|
|
2005-08-04 13:54:46 +00:00
|
|
|
tvbtest.o exntest.o: exceptions.h
|
|
|
|
|
2005-07-24 03:36:21 +00:00
|
|
|
sminmpec.c: enterprise-numbers make-sminmpec.pl
|
2005-08-08 14:17:42 +00:00
|
|
|
$(PERL) $(srcdir)/make-sminmpec.pl $(srcdir)/enterprise-numbers sminmpec.c
|
2005-07-24 03:36:21 +00:00
|
|
|
|
2004-03-02 01:21:56 +00:00
|
|
|
if HAVE_PLUGINS
|
|
|
|
|
|
|
|
if ENABLE_STATIC
|
|
|
|
|
|
|
|
plugin_src = \
|
2004-03-02 03:46:02 +00:00
|
|
|
../plugins/artnet/packet-artnet.c \
|
|
|
|
../plugins/asn1/packet-asn1.c \
|
|
|
|
../plugins/docsis/packet-bpkmattr.c \
|
|
|
|
../plugins/docsis/packet-bpkmreq.c \
|
|
|
|
../plugins/docsis/packet-bpkmrsp.c \
|
|
|
|
../plugins/docsis/packet-docsis.c \
|
|
|
|
../plugins/docsis/packet-dsaack.c \
|
|
|
|
../plugins/docsis/packet-dsareq.c \
|
|
|
|
../plugins/docsis/packet-dsarsp.c \
|
|
|
|
../plugins/docsis/packet-dscack.c \
|
|
|
|
../plugins/docsis/packet-dscreq.c \
|
|
|
|
../plugins/docsis/packet-dscrsp.c \
|
|
|
|
../plugins/docsis/packet-dsdreq.c \
|
|
|
|
../plugins/docsis/packet-dsdrsp.c \
|
2004-03-17 17:46:40 +00:00
|
|
|
../plugins/docsis/packet-intrngreq.c \
|
2004-03-02 03:46:02 +00:00
|
|
|
../plugins/docsis/packet-macmgmt.c \
|
|
|
|
../plugins/docsis/packet-map.c \
|
|
|
|
../plugins/docsis/packet-regack.c \
|
|
|
|
../plugins/docsis/packet-regreq.c \
|
|
|
|
../plugins/docsis/packet-regrsp.c \
|
|
|
|
../plugins/docsis/packet-rngreq.c \
|
|
|
|
../plugins/docsis/packet-rngrsp.c \
|
|
|
|
../plugins/docsis/packet-tlv.c \
|
2004-03-17 17:46:40 +00:00
|
|
|
../plugins/docsis/packet-type29ucd.c \
|
2004-03-02 03:46:02 +00:00
|
|
|
../plugins/docsis/packet-uccreq.c \
|
|
|
|
../plugins/docsis/packet-uccrsp.c \
|
|
|
|
../plugins/docsis/packet-ucd.c \
|
|
|
|
../plugins/enttec/packet-enttec.c \
|
|
|
|
../plugins/giop/packet-cosnaming.c \
|
|
|
|
../plugins/giop/packet-coseventcomm.c \
|
|
|
|
../plugins/gryphon/packet-gryphon.c \
|
|
|
|
../plugins/irda/packet-irda.c \
|
|
|
|
../plugins/lwres/packet-lwres.c \
|
2007-05-25 23:40:42 +00:00
|
|
|
../plugins/m2m/packet-m2m.c \
|
|
|
|
../plugins/m2m/wimax_tlv.c \
|
2004-03-02 03:46:02 +00:00
|
|
|
../plugins/mgcp/packet-mgcp.c \
|
|
|
|
../plugins/pcli/packet-pcli.c \
|
|
|
|
../plugins/rdm/packet-rdm.c \
|
|
|
|
../plugins/rtnet/packet-rtnet.c \
|
2007-05-25 23:40:42 +00:00
|
|
|
../plugins/v5ua/packet-v5ua.c \
|
|
|
|
../plugins/wimax/crc.c \
|
|
|
|
../plugins/wimax/crc_data.c \
|
|
|
|
../plugins/wimax/mac_hd_generic_decoder.c \
|
|
|
|
../plugins/wimax/mac_hd_type1_decoder.c \
|
|
|
|
../plugins/wimax/mac_hd_type2_decoder.c \
|
|
|
|
../plugins/wimax/mac_mgmt_msg_decoder.c \
|
|
|
|
../plugins/wimax/msg_aas_beam.c \
|
|
|
|
../plugins/wimax/msg_aas_fbck.c \
|
|
|
|
../plugins/wimax/msg_arq.c \
|
|
|
|
../plugins/wimax/msg_clk_cmp.c \
|
|
|
|
../plugins/wimax/msg_dcd.c \
|
|
|
|
../plugins/wimax/msg_dlmap.c \
|
|
|
|
../plugins/wimax/msg_dreg.c \
|
|
|
|
../plugins/wimax/msg_dsa.c \
|
|
|
|
../plugins/wimax/msg_dsc.c \
|
|
|
|
../plugins/wimax/msg_dsd.c \
|
|
|
|
../plugins/wimax/msg_dsx_rvd.c \
|
|
|
|
../plugins/wimax/msg_fpc.c \
|
|
|
|
../plugins/wimax/msg_pkm.c \
|
|
|
|
../plugins/wimax/msg_pmc.c \
|
|
|
|
../plugins/wimax/msg_prc_lt_ctrl.c \
|
|
|
|
../plugins/wimax/msg_reg_req.c \
|
|
|
|
../plugins/wimax/msg_reg_rsp.c \
|
|
|
|
../plugins/wimax/msg_rep.c \
|
|
|
|
../plugins/wimax/msg_res_cmd.c \
|
|
|
|
../plugins/wimax/msg_rng_req.c \
|
|
|
|
../plugins/wimax/msg_rng_rsp.c \
|
|
|
|
../plugins/wimax/msg_sbc.c \
|
|
|
|
../plugins/wimax/msg_ucd.c \
|
|
|
|
../plugins/wimax/msg_ulmap.c \
|
|
|
|
../plugins/wimax/packet-wmx.c \
|
|
|
|
../plugins/wimax/wimax_cdma_code_decoder.c \
|
|
|
|
../plugins/wimax/wimax_compact_dlmap_ie_decoder.c \
|
|
|
|
../plugins/wimax/wimax_compact_ulmap_ie_decoder.c \
|
|
|
|
../plugins/wimax/wimax_fch_decoder.c \
|
|
|
|
../plugins/wimax/wimax_ffb_decoder.c \
|
|
|
|
../plugins/wimax/wimax_hack_decoder.c \
|
|
|
|
../plugins/wimax/wimax_harq_map_decoder.c \
|
|
|
|
../plugins/wimax/wimax_pdu_decoder.c \
|
|
|
|
../plugins/wimax/wimax_phy_attributes_decoder.c \
|
|
|
|
../plugins/wimax/wimax_tlv.c \
|
|
|
|
../plugins/wimax/wimax_utils.c
|
|
|
|
|
2004-03-02 01:21:56 +00:00
|
|
|
|
|
|
|
else # ENABLE_STATIC
|
|
|
|
|
|
|
|
plugin_src =
|
|
|
|
|
|
|
|
endif # ENABLE_STATIC
|
|
|
|
|
|
|
|
else # HAVE_PLUGINS
|
|
|
|
plugin_src =
|
|
|
|
|
|
|
|
endif # HAVE_PLUGINS
|
|
|
|
|
2004-06-25 07:10:55 +00:00
|
|
|
doxygen:
|
2004-06-09 03:08:13 +00:00
|
|
|
if HAVE_DOXYGEN
|
2004-06-25 07:10:55 +00:00
|
|
|
$(DOXYGEN) doxygen.cfg
|
2004-06-09 03:08:13 +00:00
|
|
|
endif # HAVE_DOXYGEN
|