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
|
2012-06-28 22:56:06 +00:00
|
|
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
2004-01-21 21:46:59 +00:00
|
|
|
|
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 = \
|
2014-02-07 19:14:52 +00:00
|
|
|
version.h
|
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
|
|
|
|
2013-07-12 03:50:50 +00:00
|
|
|
BUILT_C_FILES =
|
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.
|
2013-07-12 03:50:50 +00:00
|
|
|
GENERATED_C_FILES =
|
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)
|
|
|
|
|
2010-03-04 01:12:04 +00:00
|
|
|
# sources common for wireshark, tshark, and rawshark
|
2013-06-25 19:51:53 +00:00
|
|
|
SHARK_COMMON_SRC = \
|
2014-01-08 20:50:52 +00:00
|
|
|
$(PLATFORM_PCAP_SRC) \
|
2005-12-06 00:07:13 +00:00
|
|
|
capture-pcap-util.c \
|
2014-01-09 11:02:29 +00:00
|
|
|
cfile.c \
|
2012-11-22 06:02:49 +00:00
|
|
|
cfutils.c \
|
2012-02-17 16:59:14 +00:00
|
|
|
clopts_common.c \
|
2013-07-11 05:47:02 +00:00
|
|
|
frame_tvbuff.c \
|
2007-09-26 03:31:41 +00:00
|
|
|
sync_pipe_write.c \
|
2004-02-22 08:30:41 +00:00
|
|
|
version_info.c
|
|
|
|
|
|
|
|
# corresponding headers
|
2013-06-25 19:51:53 +00:00
|
|
|
SHARK_COMMON_INCLUDES = \
|
2014-02-07 19:14:52 +00:00
|
|
|
version.h \
|
2005-12-06 00:07:13 +00:00
|
|
|
capture-pcap-util.h \
|
|
|
|
capture-pcap-util-int.h \
|
2012-02-17 16:59:14 +00:00
|
|
|
cfile.h \
|
2012-11-22 06:02:49 +00:00
|
|
|
cfutils.h \
|
2012-02-17 18:23:48 +00:00
|
|
|
clopts_common.h \
|
2012-02-17 16:59:14 +00:00
|
|
|
cmdarg_err.h \
|
|
|
|
color.h \
|
|
|
|
file.h \
|
|
|
|
fileset.h \
|
2013-07-11 05:47:02 +00:00
|
|
|
frame_tvbuff.h \
|
2012-02-17 16:59:14 +00:00
|
|
|
register.h \
|
2013-02-28 15:27:15 +00:00
|
|
|
version_info.h \
|
|
|
|
ws_symbol_export.h
|
2004-02-01 10:07:20 +00:00
|
|
|
|
2010-03-04 01:12:04 +00:00
|
|
|
# sources common for wireshark and tshark, but not rawshark;
|
|
|
|
# these are for programs that capture traffic by running dumpcap
|
|
|
|
SHARK_COMMON_CAPTURE_SRC = \
|
|
|
|
capture_ifinfo.c \
|
2012-01-03 05:33:02 +00:00
|
|
|
capture_sync.c \
|
2010-03-04 01:12:04 +00:00
|
|
|
capture_ui_utils.c
|
|
|
|
|
|
|
|
# corresponding headers
|
|
|
|
SHARK_COMMON_CAPTURE_INCLUDES = \
|
|
|
|
capture_ifinfo.h \
|
2013-05-22 07:44:28 +00:00
|
|
|
capture_session.h \
|
2012-01-03 05:37:56 +00:00
|
|
|
capture_sync.h \
|
2010-03-04 01:12:04 +00:00
|
|
|
capture_ui_utils.h
|
|
|
|
|
2006-05-31 22:34:21 +00:00
|
|
|
# wireshark specifics
|
2013-06-25 19:51:53 +00:00
|
|
|
WIRESHARK_COMMON_SRC = \
|
|
|
|
$(SHARK_COMMON_SRC) \
|
2010-03-04 01:12:04 +00:00
|
|
|
$(SHARK_COMMON_CAPTURE_SRC) \
|
2006-08-16 18:01:25 +00:00
|
|
|
airpcap_loader.c \
|
2004-02-01 10:31:17 +00:00
|
|
|
capture.c \
|
2005-12-03 22:38:50 +00:00
|
|
|
capture_info.c \
|
2013-05-12 20:41:17 +00:00
|
|
|
capture_opts.c \
|
2004-07-24 01:29:12 +00:00
|
|
|
color_filters.c \
|
2013-05-12 20:41: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 \
|
2012-06-28 16:21:51 +00:00
|
|
|
iface_monitor.c \
|
2004-02-22 08:30:41 +00:00
|
|
|
proto_hier_stats.c \
|
2006-02-12 21:52:18 +00:00
|
|
|
summary.c \
|
2012-06-24 19:38:51 +00:00
|
|
|
ws80211_utils.c
|
2004-02-22 08:30:41 +00:00
|
|
|
|
|
|
|
# corresponding headers
|
2013-06-25 19:51:53 +00:00
|
|
|
WIRESHARK_COMMON_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
|
|
|
capture.h \
|
2005-12-03 22:38:50 +00:00
|
|
|
capture_info.h \
|
2005-12-03 21:09:56 +00:00
|
|
|
capture_opts.h \
|
2004-07-24 01:29:12 +00:00
|
|
|
color_filters.h \
|
2004-02-01 10:31:17 +00:00
|
|
|
filters.h \
|
|
|
|
globals.h \
|
2012-06-28 16:21:51 +00:00
|
|
|
iface_monitor.h \
|
2013-05-12 20:41:17 +00:00
|
|
|
log.h \
|
2004-02-01 10:31:17 +00:00
|
|
|
proto_hier_stats.h \
|
2005-08-21 09:48:27 +00:00
|
|
|
stat_menu.h \
|
2004-02-01 10:31:17 +00:00
|
|
|
summary.h \
|
2006-04-03 01:56:53 +00:00
|
|
|
sync_pipe.h \
|
2012-06-20 16:05:34 +00:00
|
|
|
ws80211_utils.h
|
2004-02-01 10:31:17 +00:00
|
|
|
|
2006-05-31 17:38:42 +00:00
|
|
|
# tshark specifics
|
|
|
|
tshark_SOURCES = \
|
2013-06-25 19:51:53 +00:00
|
|
|
$(SHARK_COMMON_SRC) \
|
2010-03-04 01:12:04 +00:00
|
|
|
$(SHARK_COMMON_CAPTURE_SRC) \
|
2005-07-12 12:44:42 +00:00
|
|
|
capture_opts.c \
|
2012-02-18 23:55:41 +00:00
|
|
|
tshark.c
|
2004-02-01 10:07:20 +00:00
|
|
|
|
2014-01-08 04:35:28 +00:00
|
|
|
# tfshark specifics
|
|
|
|
tfshark_SOURCES = \
|
|
|
|
$(SHARK_COMMON_SRC) \
|
|
|
|
tfshark.c
|
|
|
|
|
2008-02-15 23:20:32 +00:00
|
|
|
# rawshark specifics
|
|
|
|
rawshark_SOURCES = \
|
2013-06-25 19:51:53 +00:00
|
|
|
$(SHARK_COMMON_SRC) \
|
2012-02-18 23:55:41 +00:00
|
|
|
rawshark.c
|
2008-02-15 23:20:32 +00:00
|
|
|
|
2004-02-22 08:30:41 +00:00
|
|
|
# text2pcap specifics
|
|
|
|
text2pcap_SOURCES = \
|
2012-12-21 14:34:26 +00:00
|
|
|
pcapio.c \
|
2004-02-22 08:30:41 +00:00
|
|
|
text2pcap.c \
|
|
|
|
text2pcap-scanner.l
|
2004-02-01 10:07:20 +00:00
|
|
|
|
2012-12-21 14:34:26 +00:00
|
|
|
text2pcap_INCLUDES = \
|
|
|
|
pcapio.h \
|
|
|
|
text2pcap.h
|
|
|
|
|
2004-02-22 08:30:41 +00:00
|
|
|
# mergecap specifics
|
|
|
|
mergecap_SOURCES = \
|
2013-07-16 02:35:33 +00:00
|
|
|
mergecap.c
|
2004-02-01 10:07:20 +00:00
|
|
|
|
2004-02-22 08:30:41 +00:00
|
|
|
# editcap specifics
|
2008-06-21 13:31:24 +00:00
|
|
|
editcap_SOURCES = \
|
2013-12-02 08:30:29 +00:00
|
|
|
editcap.c
|
2007-05-25 17:22:32 +00:00
|
|
|
|
2012-09-24 10:23:20 +00:00
|
|
|
# reordercap specifics
|
|
|
|
reordercap_SOURCES = \
|
|
|
|
reordercap.c \
|
2014-02-07 19:14:52 +00:00
|
|
|
version.h
|
2012-09-24 10:23:20 +00:00
|
|
|
|
|
|
|
# capinfos specifics
|
2007-05-25 17:22:32 +00:00
|
|
|
capinfos_SOURCES = \
|
2013-12-02 08:30:29 +00:00
|
|
|
capinfos.c
|
2004-02-01 10:07:20 +00:00
|
|
|
|
2013-12-13 02:59:16 +00:00
|
|
|
# captype specifics
|
|
|
|
captype_SOURCES = \
|
|
|
|
captype.c
|
|
|
|
|
2004-02-22 08:30:41 +00:00
|
|
|
# dftest specifics
|
2004-02-01 10:07:20 +00:00
|
|
|
dftest_SOURCES = \
|
2012-02-19 05:57:14 +00:00
|
|
|
dftest.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 = \
|
2014-01-08 20:50:52 +00:00
|
|
|
$(PLATFORM_PCAP_SRC) \
|
2013-05-12 20:41:17 +00:00
|
|
|
capture_opts.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 \
|
2012-11-22 06:02:49 +00:00
|
|
|
cfutils.c \
|
2005-11-28 08:54:52 +00:00
|
|
|
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 \
|
2012-06-20 16:05:34 +00:00
|
|
|
version_info.c \
|
|
|
|
ws80211_utils.c
|
2005-11-28 08:54:52 +00:00
|
|
|
|
2007-09-25 21:55:06 +00:00
|
|
|
# corresponding headers
|
|
|
|
dumpcap_INCLUDES = \
|
|
|
|
capture_stop_conditions.h \
|
|
|
|
conditions.h \
|
|
|
|
pcapio.h \
|
2008-06-30 17:16:29 +00:00
|
|
|
ringbuffer.h
|
2005-11-28 08:54:52 +00:00
|
|
|
|
2004-02-22 08:30:41 +00:00
|
|
|
# this target needed for distribution only
|
|
|
|
noinst_HEADERS = \
|
2013-06-25 19:51:53 +00:00
|
|
|
$(SHARK_COMMON_INCLUDES) \
|
2010-03-04 01:12:04 +00:00
|
|
|
$(SHARK_COMMON_CAPTURE_INCLUDES) \
|
2013-06-25 19:51:53 +00:00
|
|
|
$(WIRESHARK_COMMON_INCLUDES) \
|
2007-09-25 21:55:06 +00:00
|
|
|
$(dumpcap_INCLUDES)
|