2004-01-21 21:46:59 +00:00
|
|
|
# Makefile.common
|
|
|
|
# Contains the stuff from Makefile.am and Makefile.nmake that is
|
|
|
|
# a) common to both files and
|
|
|
|
# b) portable between both files
|
|
|
|
#
|
2004-07-18 00:24:25 +00:00
|
|
|
# $Id$
|
2004-01-21 21:46:59 +00:00
|
|
|
#
|
2006-05-21 05:12:17 +00:00
|
|
|
# Wireshark - Network traffic analyzer
|
|
|
|
# By Gerald Combs <gerald@wireshark.org>
|
2004-01-21 21:46:59 +00:00
|
|
|
# Copyright 1998 Gerald Combs
|
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2004-02-23 16:12:52 +00:00
|
|
|
# "BUILT_SOURCES" are built before any "make all" or "make check" targets.
|
Make the "maintainer-clean" rules get rid of some additional generated
files. Do this with GENERATED_HEADER_FILES, GENERATED_C_FILES, and
GENERATED_FILES macros in Makefile.common files, along the lines of what
wiretap/Makefile.common has.
Clean up "*~" files with "make clean" rather than only "make distclean"
in some additional places.
Add "maintainer-clean" rules to the Makefile.nmake files, paralelling
the ones in the automake-generated Makefile.in files, using the
GENERATED_FILES macros from Makefile.common files. In some cases, move
the cleanup of files from "make distclean" to "make maintainer-clean",
and in other cases, put in a comment indicating why we're not doing that
(because some files that are distributed in the source tarballs, namely
Flex output, were built with a UN*X Flex and won't compile on Windows,
so we get rid of them with "make distclean" so you can clean up stuff
that *has* to be re-generated for Windows).
Clean up some *CLEANFILES definitions - get rid of ones that no longer
apply as files were moved or that add to the definition a name that's
already there.
svn path=/trunk/; revision=13402
2005-02-14 20:33:57 +00:00
|
|
|
BUILT_HEADER_FILES = \
|
|
|
|
svnversion.h
|
|
|
|
|
|
|
|
BUILT_C_FILES = \
|
2004-05-10 03:30:24 +00:00
|
|
|
ps.c
|
2004-02-01 10:07:20 +00:00
|
|
|
|
Make the "maintainer-clean" rules get rid of some additional generated
files. Do this with GENERATED_HEADER_FILES, GENERATED_C_FILES, and
GENERATED_FILES macros in Makefile.common files, along the lines of what
wiretap/Makefile.common has.
Clean up "*~" files with "make clean" rather than only "make distclean"
in some additional places.
Add "maintainer-clean" rules to the Makefile.nmake files, paralelling
the ones in the automake-generated Makefile.in files, using the
GENERATED_FILES macros from Makefile.common files. In some cases, move
the cleanup of files from "make distclean" to "make maintainer-clean",
and in other cases, put in a comment indicating why we're not doing that
(because some files that are distributed in the source tarballs, namely
Flex output, were built with a UN*X Flex and won't compile on Windows,
so we get rid of them with "make distclean" so you can clean up stuff
that *has* to be re-generated for Windows).
Clean up some *CLEANFILES definitions - get rid of ones that no longer
apply as files were moved or that add to the definition a name that's
already there.
svn path=/trunk/; revision=13402
2005-02-14 20:33:57 +00:00
|
|
|
BUILT_SOURCES = $(BUILT_C_FILES) $(BUILT_HEADER_FILES)
|
|
|
|
|
|
|
|
# Header files generated from source files.
|
|
|
|
GENERATED_HEADER_FILES = \
|
|
|
|
$(BUILT_HEADER_FILES)
|
|
|
|
|
|
|
|
# C source files generated from source files.
|
|
|
|
GENERATED_C_FILES = \
|
|
|
|
$(BUILT_C_FILES) \
|
2006-05-31 17:38:42 +00:00
|
|
|
tshark-tap-register.c
|
Make the "maintainer-clean" rules get rid of some additional generated
files. Do this with GENERATED_HEADER_FILES, GENERATED_C_FILES, and
GENERATED_FILES macros in Makefile.common files, along the lines of what
wiretap/Makefile.common has.
Clean up "*~" files with "make clean" rather than only "make distclean"
in some additional places.
Add "maintainer-clean" rules to the Makefile.nmake files, paralelling
the ones in the automake-generated Makefile.in files, using the
GENERATED_FILES macros from Makefile.common files. In some cases, move
the cleanup of files from "make distclean" to "make maintainer-clean",
and in other cases, put in a comment indicating why we're not doing that
(because some files that are distributed in the source tarballs, namely
Flex output, were built with a UN*X Flex and won't compile on Windows,
so we get rid of them with "make distclean" so you can clean up stuff
that *has* to be re-generated for Windows).
Clean up some *CLEANFILES definitions - get rid of ones that no longer
apply as files were moved or that add to the definition a name that's
already there.
svn path=/trunk/; revision=13402
2005-02-14 20:33:57 +00:00
|
|
|
|
|
|
|
# All the generated files.
|
|
|
|
GENERATED_FILES = $(GENERATED_C_FILES) $(GENERATED_HEADER_FILES)
|
|
|
|
|
2006-05-31 22:34:21 +00:00
|
|
|
# sources common for wireshark and tshark
|
2006-05-31 19:12:15 +00:00
|
|
|
WIRESHARK_COMMON_SRC = \
|
2004-02-22 08:30:41 +00:00
|
|
|
$(PLATFORM_SRC) \
|
2005-10-04 06:25:01 +00:00
|
|
|
capture_errs.c \
|
2005-12-06 00:07:13 +00:00
|
|
|
capture-pcap-util.c \
|
2004-02-01 10:07:20 +00:00
|
|
|
capture_stop_conditions.c \
|
2005-01-16 03:09:05 +00:00
|
|
|
capture_ui_utils.c \
|
2004-02-01 10:07:20 +00:00
|
|
|
cfile.c \
|
2004-09-10 22:47:02 +00:00
|
|
|
clopts_common.c \
|
2004-02-22 08:30:41 +00:00
|
|
|
conditions.c \
|
|
|
|
disabled_protos.c \
|
2004-09-04 20:02:11 +00:00
|
|
|
packet-range.c \
|
2004-07-29 00:11:14 +00:00
|
|
|
print.c \
|
|
|
|
ps.c \
|
2006-03-04 22:33:04 +00:00
|
|
|
pcapio.c \
|
2004-02-22 08:30:41 +00:00
|
|
|
ringbuffer.c \
|
|
|
|
timestats.c \
|
2004-09-11 00:00:06 +00:00
|
|
|
util.c \
|
2004-02-22 08:30:41 +00:00
|
|
|
version_info.c
|
|
|
|
|
|
|
|
# corresponding headers
|
2006-05-31 19:12:15 +00:00
|
|
|
WIRESHARK_COMMON_INCLUDES = \
|
2004-07-27 03:27:20 +00:00
|
|
|
svnversion.h \
|
2005-10-04 06:25:01 +00:00
|
|
|
capture_errs.h \
|
2005-12-06 00:07:13 +00:00
|
|
|
capture-pcap-util.h \
|
|
|
|
capture-pcap-util-int.h \
|
2004-02-22 08:30:41 +00:00
|
|
|
capture_stop_conditions.h \
|
2005-01-16 03:09:05 +00:00
|
|
|
capture_ui_utils.h \
|
2004-02-01 10:07:20 +00:00
|
|
|
cfile.h \
|
2004-09-10 22:47:02 +00:00
|
|
|
clopts_common.h \
|
2005-11-17 05:59:21 +00:00
|
|
|
cmdarg_err.h \
|
2004-02-01 10:07:20 +00:00
|
|
|
color.h \
|
|
|
|
conditions.h \
|
|
|
|
disabled_protos.h \
|
|
|
|
file.h \
|
2005-04-29 14:51:52 +00:00
|
|
|
fileset.h \
|
2005-10-04 06:25:01 +00:00
|
|
|
isprint.h \
|
2004-09-04 20:02:11 +00:00
|
|
|
packet-range.h \
|
2006-03-04 22:33:04 +00:00
|
|
|
pcapio.h \
|
2004-07-29 00:11:14 +00:00
|
|
|
print.h \
|
|
|
|
ps.h \
|
2004-02-01 10:07:20 +00:00
|
|
|
register.h \
|
|
|
|
ringbuffer.h \
|
2006-02-13 01:30:03 +00:00
|
|
|
tempfile.h \
|
2004-02-01 10:07:20 +00:00
|
|
|
timestats.h \
|
2004-09-11 00:00:06 +00:00
|
|
|
util.h \
|
2004-02-01 10:07:20 +00:00
|
|
|
version_info.h
|
|
|
|
|
2006-05-31 17:38:42 +00:00
|
|
|
# sources for TShark taps
|
|
|
|
TSHARK_TAP_SRC = \
|
2005-08-20 02:19:37 +00:00
|
|
|
tap-afpstat.c \
|
2004-02-01 10:07:20 +00:00
|
|
|
tap-ansi_astat.c \
|
|
|
|
tap-bootpstat.c \
|
2006-10-04 16:02:59 +00:00
|
|
|
tap-camelcounter.c \
|
|
|
|
tap-camelsrt.c \
|
2004-02-01 10:07:20 +00:00
|
|
|
tap-dcerpcstat.c \
|
2006-02-24 01:41:59 +00:00
|
|
|
tap-funnel.c \
|
2004-02-01 10:07:20 +00:00
|
|
|
tap-gsm_astat.c \
|
|
|
|
tap-h225counter.c \
|
|
|
|
tap-h225rassrt.c \
|
|
|
|
tap-httpstat.c \
|
|
|
|
tap-iostat.c \
|
|
|
|
tap-iousers.c \
|
|
|
|
tap-mgcpstat.c \
|
|
|
|
tap-protocolinfo.c \
|
|
|
|
tap-protohierstat.c \
|
2006-10-24 05:21:00 +00:00
|
|
|
tap-radiusstat.c \
|
2004-02-01 10:07:20 +00:00
|
|
|
tap-rpcstat.c \
|
|
|
|
tap-rpcprogs.c \
|
2005-03-20 12:02:00 +00:00
|
|
|
tap-sctpchunkstat.c \
|
2004-03-30 18:55:47 +00:00
|
|
|
tap-sipstat.c \
|
2004-02-01 10:07:20 +00:00
|
|
|
tap-smbsids.c \
|
|
|
|
tap-smbstat.c \
|
2005-02-25 04:02:00 +00:00
|
|
|
tap-stats_tree.c \
|
2004-02-01 10:07:20 +00:00
|
|
|
tap-wspstat.c
|
|
|
|
|
2005-08-17 22:08:06 +00:00
|
|
|
# helpers already available on some platforms (and on others not)
|
2006-05-31 19:12:15 +00:00
|
|
|
EXTRA_wireshark_SOURCES = \
|
2006-02-15 19:20:36 +00:00
|
|
|
getopt.c \
|
2007-06-11 18:26:09 +00:00
|
|
|
inet_ntop.c \
|
|
|
|
inet_pton.c \
|
2006-02-15 19:20:36 +00:00
|
|
|
mkstemp.c \
|
2004-02-22 08:30:41 +00:00
|
|
|
strerror.c \
|
|
|
|
strcasecmp.c \
|
|
|
|
strncasecmp.c \
|
|
|
|
strptime.c
|
|
|
|
|
|
|
|
# corresponding headers
|
2006-05-31 19:12:15 +00:00
|
|
|
EXTRA_wireshark_INCLUDES = \
|
2006-02-15 19:20:36 +00:00
|
|
|
getopt.h \
|
2007-06-11 18:26:09 +00:00
|
|
|
inet_v6defs.h \
|
2006-02-15 19:20:36 +00:00
|
|
|
mkstemp.h \
|
2004-02-22 08:30:41 +00:00
|
|
|
strerror.h \
|
|
|
|
strptime.h
|
|
|
|
|
2006-05-31 22:34:21 +00:00
|
|
|
# wireshark specifics
|
2006-05-31 19:12:15 +00:00
|
|
|
wireshark_SOURCES = \
|
|
|
|
$(WIRESHARK_COMMON_SRC) \
|
2006-08-16 18:01:25 +00:00
|
|
|
airpcap_loader.c \
|
2004-02-11 00:55:28 +00:00
|
|
|
alert_box.c \
|
2004-02-01 10:31:17 +00:00
|
|
|
capture.c \
|
2005-12-03 22:38:50 +00:00
|
|
|
capture_info.c \
|
2005-07-12 12:44:42 +00:00
|
|
|
capture_opts.c \
|
2004-10-30 11:44:06 +00:00
|
|
|
capture_sync.c \
|
2004-07-24 01:29:12 +00:00
|
|
|
color_filters.c \
|
2004-02-01 10:31:17 +00:00
|
|
|
file.c \
|
2005-04-29 14:51:52 +00:00
|
|
|
fileset.c \
|
2004-02-01 10:31:17 +00:00
|
|
|
filters.c \
|
2004-05-09 10:03:41 +00:00
|
|
|
g711.c \
|
2004-06-17 21:53:26 +00:00
|
|
|
merge.c \
|
2004-02-22 08:30:41 +00:00
|
|
|
proto_hier_stats.c \
|
2006-04-03 01:56:53 +00:00
|
|
|
sync_pipe_write.c \
|
2006-02-12 21:52:18 +00:00
|
|
|
summary.c \
|
|
|
|
tempfile.c
|
2004-02-22 08:30:41 +00:00
|
|
|
|
|
|
|
# corresponding headers
|
2006-05-31 19:12:15 +00:00
|
|
|
wireshark_INCLUDES = \
|
2007-06-27 23:42:06 +00:00
|
|
|
airpcap.h \
|
2006-08-16 18:01:25 +00:00
|
|
|
airpcap_loader.h \
|
2004-02-22 08:30:41 +00:00
|
|
|
alert_box.h \
|
|
|
|
capture.h \
|
2005-12-03 22:38:50 +00:00
|
|
|
capture_info.h \
|
|
|
|
capture_loop.h \
|
2005-12-03 21:09:56 +00:00
|
|
|
capture_opts.h \
|
2004-10-30 11:44:06 +00:00
|
|
|
capture_sync.h \
|
2004-07-24 01:29:12 +00:00
|
|
|
color_filters.h \
|
2004-02-01 10:31:17 +00:00
|
|
|
filters.h \
|
2004-05-09 10:03:41 +00:00
|
|
|
g711.h \
|
2004-02-01 10:31:17 +00:00
|
|
|
globals.h \
|
2005-05-26 20:23:13 +00:00
|
|
|
log.h \
|
2005-02-06 23:16:05 +00:00
|
|
|
main_window.h \
|
2004-02-01 10:31:17 +00:00
|
|
|
menu.h \
|
2004-06-18 10:01:59 +00:00
|
|
|
merge.h \
|
2004-02-01 10:31:17 +00:00
|
|
|
progress_dlg.h \
|
|
|
|
proto_hier_stats.h \
|
|
|
|
simple_dialog.h \
|
2005-08-21 09:48:27 +00:00
|
|
|
stat_menu.h \
|
2004-02-01 10:31:17 +00:00
|
|
|
statusbar.h \
|
|
|
|
summary.h \
|
2006-04-03 01:56:53 +00:00
|
|
|
sync_pipe.h \
|
2004-02-01 10:31:17 +00:00
|
|
|
tap_dfilter_dlg.h \
|
|
|
|
ui_util.h
|
|
|
|
|
2006-05-31 17:38:42 +00:00
|
|
|
# tshark specifics
|
|
|
|
tshark_SOURCES = \
|
2006-05-31 19:12:15 +00:00
|
|
|
$(WIRESHARK_COMMON_SRC) \
|
2006-05-31 17:38:42 +00:00
|
|
|
$(TSHARK_TAP_SRC) \
|
2005-07-12 12:44:42 +00:00
|
|
|
capture_opts.c \
|
2006-02-12 21:52:18 +00:00
|
|
|
capture_loop.c \
|
|
|
|
tempfile.c \
|
2006-05-31 17:38:42 +00:00
|
|
|
tshark-tap-register.c \
|
|
|
|
tshark.c
|
2004-02-01 10:07:20 +00:00
|
|
|
|
2004-02-22 08:30:41 +00:00
|
|
|
# text2pcap specifics
|
|
|
|
text2pcap_SOURCES = \
|
|
|
|
text2pcap.c \
|
|
|
|
text2pcap-scanner.l
|
2004-02-01 10:07:20 +00:00
|
|
|
|
2004-02-22 08:30:41 +00:00
|
|
|
# mergecap specifics
|
|
|
|
mergecap_SOURCES = \
|
|
|
|
mergecap.c \
|
2004-06-18 10:01:59 +00:00
|
|
|
merge.c \
|
2004-07-15 21:09:33 +00:00
|
|
|
svnversion.h
|
2004-02-01 10:07:20 +00:00
|
|
|
|
2004-02-22 08:30:41 +00:00
|
|
|
# editcap specifics
|
|
|
|
editcap_SOURCES = \
|
2006-07-27 17:53:29 +00:00
|
|
|
editcap.c \
|
2007-05-25 17:22:32 +00:00
|
|
|
epan/crypt/crypt-md5.c \
|
2007-06-17 04:58:16 +00:00
|
|
|
$(WTAP_PLUGIN_SOURCES)
|
2007-05-25 17:22:32 +00:00
|
|
|
|
|
|
|
capinfos_SOURCES = \
|
|
|
|
capinfos.c \
|
2007-06-17 04:58:16 +00:00
|
|
|
$(WTAP_PLUGIN_SOURCES)
|
2004-02-01 10:07:20 +00:00
|
|
|
|
2004-02-22 08:30:41 +00:00
|
|
|
# dftest specifics
|
2004-02-01 10:07:20 +00:00
|
|
|
dftest_SOURCES = \
|
2004-09-11 00:00:06 +00:00
|
|
|
dftest.c \
|
|
|
|
util.c
|
2004-02-01 10:07:20 +00:00
|
|
|
|
2004-02-22 08:30:41 +00:00
|
|
|
# randpkt specifics
|
|
|
|
randpkt_SOURCES = \
|
|
|
|
randpkt.c
|
|
|
|
|
2005-11-28 08:54:52 +00:00
|
|
|
# dumpcap specifics
|
|
|
|
dumpcap_SOURCES = \
|
|
|
|
$(PLATFORM_SRC) \
|
2006-02-12 21:52:18 +00:00
|
|
|
capture_opts.c \
|
|
|
|
capture_loop.c \
|
2005-12-06 00:07:13 +00:00
|
|
|
capture-pcap-util.c \
|
2005-11-28 08:54:52 +00:00
|
|
|
capture_stop_conditions.c \
|
|
|
|
clopts_common.c \
|
|
|
|
conditions.c \
|
2006-02-12 21:52:18 +00:00
|
|
|
dumpcap.c \
|
2006-03-04 22:33:04 +00:00
|
|
|
pcapio.c \
|
2005-11-28 08:54:52 +00:00
|
|
|
ringbuffer.c \
|
2006-04-03 01:56:53 +00:00
|
|
|
sync_pipe_write.c \
|
2006-02-12 21:52:18 +00:00
|
|
|
tempfile.c \
|
2006-09-22 21:14:54 +00:00
|
|
|
version_info.c \
|
|
|
|
epan/unicode-utils.c
|
2005-11-28 08:54:52 +00:00
|
|
|
|
|
|
|
|
2004-02-22 08:30:41 +00:00
|
|
|
# this target needed for distribution only
|
|
|
|
noinst_HEADERS = \
|
2006-05-31 19:12:15 +00:00
|
|
|
$(WIRESHARK_COMMON_INCLUDES) \
|
|
|
|
$(wireshark_INCLUDES) \
|
|
|
|
$(EXTRA_wireshark_INCLUDES)
|