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