Pass struct tcpinfo into all TCP subdissectors instead of through pinfo->private_data.
[metze/wireshark/wip.git] / Makefile.common
1 # Makefile.common
2 #     Contains the stuff from Makefile.am and Makefile.nmake that is
3 #     a) common to both files and
4 #     b) portable between both files
5 #
6 # $Id$
7 #
8 # Wireshark - Network traffic analyzer
9 # By Gerald Combs <gerald@wireshark.org>
10 # Copyright 1998 Gerald Combs
11 #
12 # This program is free software; you can redistribute it and/or
13 # modify it under the terms of the GNU General Public License
14 # as published by the Free Software Foundation; either version 2
15 # of the License, or (at your option) any later version.
16 #
17 # This program is distributed in the hope that it will be useful,
18 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20 # GNU General Public License for more details.
21 #
22 # You should have received a copy of the GNU General Public License
23 # along with this program; if not, write to the Free Software
24 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
25
26 # "BUILT_SOURCES" are built before any "make all" or "make check" targets.
27 BUILT_HEADER_FILES =    \
28         svnversion.h
29
30 BUILT_C_FILES =
31
32 BUILT_SOURCES = $(BUILT_C_FILES) $(BUILT_HEADER_FILES)
33
34 # Header files generated from source files.
35 GENERATED_HEADER_FILES = \
36         $(BUILT_HEADER_FILES)
37
38 # C source files generated from source files.
39 GENERATED_C_FILES =
40
41 # All the generated files.
42 GENERATED_FILES = $(GENERATED_C_FILES) $(GENERATED_HEADER_FILES)
43
44 # sources common for wireshark, tshark, and rawshark
45 SHARK_COMMON_SRC =      \
46         $(PLATFORM_SRC)         \
47         capture-pcap-util.c     \
48         cfile.c                 \
49         cfutils.c               \
50         clopts_common.c         \
51         frame_tvbuff.c          \
52         sync_pipe_write.c       \
53         version_info.c
54
55 # corresponding headers
56 SHARK_COMMON_INCLUDES = \
57         svnversion.h            \
58         capture-pcap-util.h     \
59         capture-pcap-util-int.h \
60         cfile.h                 \
61         cfutils.h               \
62         clopts_common.h         \
63         cmdarg_err.h            \
64         color.h                 \
65         file.h                  \
66         fileset.h               \
67         frame_tvbuff.h          \
68         isprint.h               \
69         register.h              \
70         version_info.h          \
71         ws_symbol_export.h
72
73 # sources common for wireshark and tshark, but not rawshark;
74 # these are for programs that capture traffic by running dumpcap
75 SHARK_COMMON_CAPTURE_SRC =      \
76         capture_ifinfo.c        \
77         capture_sync.c          \
78         capture_ui_utils.c
79
80 # corresponding headers
81 SHARK_COMMON_CAPTURE_INCLUDES = \
82         capture_ifinfo.h        \
83         capture_session.h       \
84         capture_sync.h          \
85         capture_ui_utils.h
86
87 # wireshark specifics
88 WIRESHARK_COMMON_SRC =  \
89         $(SHARK_COMMON_SRC)     \
90         $(SHARK_COMMON_CAPTURE_SRC) \
91         airpcap_loader.c \
92         capture.c       \
93         capture_info.c  \
94         capture_opts.c  \
95         color_filters.c \
96         file.c          \
97         fileset.c       \
98         filters.c       \
99         iface_monitor.c \
100         proto_hier_stats.c      \
101         summary.c       \
102         ws80211_utils.c
103
104 # corresponding headers
105 WIRESHARK_COMMON_INCLUDES =     \
106         airpcap.h       \
107         airpcap_loader.h \
108         capture.h       \
109         capture_info.h  \
110         capture_opts.h  \
111         color_filters.h \
112         filters.h       \
113         globals.h       \
114         iface_monitor.h \
115         log.h           \
116         proto_hier_stats.h      \
117         stat_menu.h     \
118         summary.h       \
119         sync_pipe.h     \
120         ws80211_utils.h
121
122 # tshark specifics
123 tshark_SOURCES =        \
124         $(SHARK_COMMON_SRC)     \
125         $(SHARK_COMMON_CAPTURE_SRC) \
126         capture_opts.c          \
127         tshark.c
128
129 # rawshark specifics
130 rawshark_SOURCES =      \
131         $(SHARK_COMMON_SRC)     \
132         rawshark.c
133
134 # text2pcap specifics
135 text2pcap_SOURCES = \
136         pcapio.c \
137         text2pcap.c \
138         text2pcap-scanner.l
139
140 text2pcap_INCLUDES = \
141         pcapio.h \
142         text2pcap.h
143
144 # mergecap specifics
145 mergecap_SOURCES = \
146         mergecap.c
147
148 # editcap specifics
149 editcap_SOURCES = \
150         editcap.c       \
151         $(WTAP_PLUGIN_SOURCES)
152
153 # reordercap specifics
154 reordercap_SOURCES = \
155         reordercap.c \
156         svnversion.h
157
158 # capinfos specifics
159 capinfos_SOURCES = \
160         capinfos.c \
161         $(WTAP_PLUGIN_SOURCES)
162
163 # dftest specifics
164 dftest_SOURCES =        \
165         dftest.c
166
167 # randpkt specifics
168 randpkt_SOURCES = \
169         randpkt.c
170
171 # dumpcap specifics
172 dumpcap_SOURCES =       \
173         $(PLATFORM_SRC) \
174         capture_opts.c  \
175         capture-pcap-util.c     \
176         capture_stop_conditions.c       \
177         cfutils.c       \
178         clopts_common.c \
179         conditions.c    \
180         dumpcap.c       \
181         pcapio.c        \
182         ringbuffer.c    \
183         sync_pipe_write.c       \
184         version_info.c  \
185         ws80211_utils.c
186
187 # corresponding headers
188 dumpcap_INCLUDES = \
189         capture_stop_conditions.h       \
190         conditions.h    \
191         pcapio.h        \
192         ringbuffer.h
193
194 # this target needed for distribution only
195 noinst_HEADERS =        \
196         $(SHARK_COMMON_INCLUDES) \
197         $(SHARK_COMMON_CAPTURE_INCLUDES) \
198         $(WIRESHARK_COMMON_INCLUDES) \
199         $(dumpcap_INCLUDES)