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
|
|
|
#
|
|
|
|
# Ethereal - Network traffic analyzer
|
|
|
|
# By Gerald Combs <gerald@ethereal.com>
|
|
|
|
# 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) \
|
|
|
|
tethereal-tap-register.c
|
|
|
|
|
|
|
|
# All the generated files.
|
|
|
|
GENERATED_FILES = $(GENERATED_C_FILES) $(GENERATED_HEADER_FILES)
|
|
|
|
|
2004-02-22 08:30:41 +00:00
|
|
|
# sources common for ethereal and tethereal
|
2004-02-01 10:07:20 +00:00
|
|
|
ETHEREAL_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 \
|
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
|
2004-02-22 09:07:38 +00:00
|
|
|
ETHEREAL_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 \
|
2004-07-29 00:11:14 +00:00
|
|
|
print.h \
|
|
|
|
ps.h \
|
2004-02-01 10:07:20 +00:00
|
|
|
register.h \
|
|
|
|
ringbuffer.h \
|
|
|
|
timestats.h \
|
2004-09-11 00:00:06 +00:00
|
|
|
util.h \
|
2004-02-01 10:07:20 +00:00
|
|
|
version_info.h
|
|
|
|
|
2004-02-22 23:40:28 +00:00
|
|
|
# sources for Tethereal taps
|
2004-02-01 10:07:20 +00:00
|
|
|
TETHEREAL_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 \
|
|
|
|
tap-dcerpcstat.c \
|
|
|
|
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 \
|
|
|
|
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)
|
2004-02-22 08:30:41 +00:00
|
|
|
EXTRA_ethereal_SOURCES = \
|
|
|
|
snprintf.c \
|
|
|
|
strerror.c \
|
|
|
|
strcasecmp.c \
|
|
|
|
strncasecmp.c \
|
|
|
|
mkstemp.c \
|
|
|
|
strptime.c
|
|
|
|
|
|
|
|
# corresponding headers
|
2004-02-22 09:07:38 +00:00
|
|
|
EXTRA_ethereal_INCLUDES = \
|
2004-02-22 08:30:41 +00:00
|
|
|
snprintf.h \
|
|
|
|
snprintf-imp.h \
|
|
|
|
strerror.h \
|
|
|
|
mkstemp.h \
|
|
|
|
strptime.h
|
|
|
|
|
|
|
|
# ethereal specifics
|
2004-02-01 10:31:17 +00:00
|
|
|
ethereal_SOURCES = \
|
|
|
|
$(ETHEREAL_COMMON_SRC) \
|
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 \
|
|
|
|
capture_loop.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 \
|
|
|
|
summary.c
|
|
|
|
|
|
|
|
# corresponding headers
|
2004-02-22 09:07:38 +00:00
|
|
|
ethereal_INCLUDES = \
|
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 \
|
|
|
|
tap_dfilter_dlg.h \
|
|
|
|
ui_util.h
|
|
|
|
|
2004-02-22 08:30:41 +00:00
|
|
|
# tethereal specifics
|
2004-02-01 10:07:20 +00:00
|
|
|
tethereal_SOURCES = \
|
|
|
|
$(ETHEREAL_COMMON_SRC) \
|
|
|
|
$(TETHEREAL_TAP_SRC) \
|
2005-07-12 12:44:42 +00:00
|
|
|
capture_opts.c \
|
2005-12-13 22:48:58 +00:00
|
|
|
capture_loop.c \
|
2004-02-01 10:07:20 +00:00
|
|
|
tethereal-tap-register.c \
|
|
|
|
tethereal.c
|
|
|
|
|
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 = \
|
|
|
|
editcap.c
|
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) \
|
2005-12-06 00:07:13 +00:00
|
|
|
capture-pcap-util.c \
|
2005-11-28 08:54:52 +00:00
|
|
|
capture_stop_conditions.c \
|
2005-12-05 21:28:34 +00:00
|
|
|
getopt.c \
|
2005-11-28 08:54:52 +00:00
|
|
|
clopts_common.c \
|
|
|
|
conditions.c \
|
|
|
|
ringbuffer.c \
|
|
|
|
util.c \
|
|
|
|
version_info.c \
|
|
|
|
capture_opts.c \
|
|
|
|
capture_loop.c \
|
2005-11-28 21:12:50 +00:00
|
|
|
dumpcap.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 = \
|
2004-02-22 09:07:38 +00:00
|
|
|
$(ETHEREAL_COMMON_INCLUDES) \
|
|
|
|
$(ethereal_INCLUDES) \
|
|
|
|
$(EXTRA_ethereal_INCLUDES)
|
2004-02-22 08:30:41 +00:00
|
|
|
|