[Automatic manuf and enterprise-numbers update for 2010-04-04]
[obnox/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., 59 Temple Place - Suite 330, Boston, MA  02111-1307, 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         ps.c
32
33 BUILT_SOURCES = $(BUILT_C_FILES) $(BUILT_HEADER_FILES)
34
35 # Header files generated from source files.
36 GENERATED_HEADER_FILES = \
37         $(BUILT_HEADER_FILES)
38
39 # C source files generated from source files.
40 GENERATED_C_FILES = \
41         $(BUILT_C_FILES)        \
42         tshark-tap-register.c
43
44 # All the generated files.
45 GENERATED_FILES = $(GENERATED_C_FILES) $(GENERATED_HEADER_FILES)
46
47 # sources common for wireshark, tshark, and rawshark
48 WIRESHARK_COMMON_SRC =  \
49         $(PLATFORM_SRC) \
50         capture-pcap-util.c     \
51         cfile.c \
52         clopts_common.c \
53         disabled_protos.c       \
54         packet-range.c  \
55         print.c \
56         ps.c    \
57         sync_pipe_write.c       \
58         timestats.c     \
59         util.c  \
60         tap-megaco-common.c     \
61         tap-rtp-common.c        \
62         version_info.c
63
64 # corresponding headers
65 WIRESHARK_COMMON_INCLUDES =     \
66         svnversion.h            \
67         capture-pcap-util.h     \
68         capture-pcap-util-int.h \
69         cfile.h \
70         clopts_common.h \
71         cmdarg_err.h    \
72         color.h \
73         disabled_protos.h       \
74         file.h  \
75         fileset.h       \
76         isprint.h       \
77         packet-range.h  \
78         print.h \
79         ps.h    \
80         register.h      \
81         tempfile.h      \
82         timestats.h     \
83         util.h  \
84         tap-megaco-common.h     \
85         tap-rtp-common.h        \
86         version_info.h
87
88 # sources common for wireshark and tshark, but not rawshark;
89 # these are for programs that capture traffic by running dumpcap
90 SHARK_COMMON_CAPTURE_SRC =      \
91         capture_errs.c          \
92         capture_ifinfo.c        \
93         capture_ui_utils.c
94
95 # corresponding headers
96 SHARK_COMMON_CAPTURE_INCLUDES = \
97         capture_errs.h  \
98         capture_ifinfo.h        \
99         capture_ui_utils.h
100
101 # sources for TShark taps
102 TSHARK_TAP_SRC =        \
103         tap-afpstat.c   \
104         tap-ansi_astat.c        \
105         tap-bootpstat.c \
106         tap-camelcounter.c      \
107         tap-camelsrt.c  \
108         tap-comparestat.c       \
109         tap-dcerpcstat.c        \
110         tap-diameter-avp.c \
111         tap-funnel.c \
112         tap-gsm_astat.c \
113         tap-h225counter.c       \
114         tap-h225rassrt.c        \
115         tap-httpstat.c  \
116         tap-iostat.c    \
117         tap-iousers.c   \
118         tap-mgcpstat.c  \
119         tap-megacostat.c        \
120         tap-protocolinfo.c      \
121         tap-protohierstat.c     \
122         tap-radiusstat.c        \
123         tap-rpcstat.c   \
124         tap-rpcprogs.c  \
125         tap-rtp.c       \
126         tap-sctpchunkstat.c     \
127         tap-sipstat.c \
128         tap-smbsids.c   \
129         tap-smbstat.c   \
130         tap-stats_tree.c        \
131         tap-wspstat.c
132
133 # helpers already available on some platforms (and on others not)
134 EXTRA_wireshark_SOURCES =       \
135         wsgetopt.c      \
136         inet_ntop.c     \
137         inet_pton.c     \
138         strerror.c      \
139         strncasecmp.c   \
140         strptime.c
141
142 # corresponding headers
143 EXTRA_wireshark_INCLUDES =      \
144         wsgetopt.h      \
145         inet_v6defs.h   \
146         strerror.h      \
147         strptime.h
148
149 # wireshark specifics
150 wireshark_SOURCES =     \
151         $(WIRESHARK_COMMON_SRC) \
152         $(SHARK_COMMON_CAPTURE_SRC) \
153         airpcap_loader.c \
154         alert_box.c     \
155         capture.c       \
156         capture_info.c  \
157         capture_opts.c \
158         capture_sync.c  \
159         color_filters.c \
160         file.c  \
161         fileset.c       \
162         filters.c       \
163         g711.c \
164         merge.c \
165         proto_hier_stats.c      \
166         summary.c       \
167         tempfile.c
168
169 # corresponding headers
170 wireshark_INCLUDES =    \
171         airpcap.h       \
172         airpcap_loader.h \
173         alert_box.h     \
174         capture.h       \
175         capture_info.h  \
176         capture_opts.h  \
177         capture_sync.h  \
178         color_filters.h \
179         filters.h       \
180         g711.h  \
181         globals.h       \
182         log.h   \
183         merge.h \
184         progress_dlg.h  \
185         proto_hier_stats.h      \
186         simple_dialog.h \
187         stat_menu.h     \
188         summary.h       \
189         sync_pipe.h     \
190         ui_util.h
191
192 # tshark specifics
193 tshark_SOURCES =        \
194         $(WIRESHARK_COMMON_SRC) \
195         $(SHARK_COMMON_CAPTURE_SRC) \
196         $(TSHARK_TAP_SRC)       \
197         capture_opts.c          \
198         capture_sync.c          \
199         tempfile.c              \
200         tshark-tap-register.c   \
201         tshark.c
202
203 # rawshark specifics
204 rawshark_SOURCES =      \
205         $(WIRESHARK_COMMON_SRC) \
206         rawshark.c
207
208 # text2pcap specifics
209 text2pcap_SOURCES = \
210         text2pcap.c \
211         text2pcap-scanner.l
212
213 # mergecap specifics
214 mergecap_SOURCES = \
215         mergecap.c \
216         merge.c \
217         svnversion.h
218
219 # editcap specifics
220 editcap_SOURCES = \
221         editcap.c       \
222         epan/crypt/crypt-md5.c \
223         epan/nstime.c \
224         $(WTAP_PLUGIN_SOURCES)
225
226 capinfos_SOURCES = \
227         capinfos.c \
228         $(WTAP_PLUGIN_SOURCES)
229
230 # dftest specifics
231 dftest_SOURCES =        \
232         dftest.c        \
233         util.c
234
235 # randpkt specifics
236 randpkt_SOURCES = \
237         randpkt.c
238
239 # dumpcap specifics
240 dumpcap_SOURCES =       \
241         $(PLATFORM_SRC) \
242         capture_opts.c \
243         capture-pcap-util.c     \
244         capture_stop_conditions.c       \
245         clopts_common.c \
246         conditions.c    \
247         dumpcap.c       \
248         pcapio.c        \
249         ringbuffer.c    \
250         sync_pipe_write.c       \
251         tempfile.c      \
252         version_info.c
253
254 # corresponding headers
255 dumpcap_INCLUDES = \
256         capture_stop_conditions.h       \
257         conditions.h    \
258         pcapio.h        \
259         ringbuffer.h
260
261 # this target needed for distribution only
262 noinst_HEADERS =        \
263         $(WIRESHARK_COMMON_INCLUDES) \
264         $(SHARK_COMMON_CAPTURE_INCLUDES) \
265         $(wireshark_INCLUDES) \
266         $(EXTRA_wireshark_INCLUDES) \
267         $(dumpcap_INCLUDES)