Fix a typo.
[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         rawshark.c
198
199 # text2pcap specifics
200 text2pcap_SOURCES = \
201         text2pcap.c \
202         text2pcap-scanner.l
203
204 # mergecap specifics
205 mergecap_SOURCES = \
206         mergecap.c \
207         merge.c \
208         svnversion.h
209
210 # editcap specifics
211 editcap_SOURCES = \
212         editcap.c       \
213         epan/crypt/crypt-md5.c \
214         $(WTAP_PLUGIN_SOURCES)
215
216 capinfos_SOURCES = \
217         capinfos.c \
218         $(WTAP_PLUGIN_SOURCES)
219
220 # dftest specifics
221 dftest_SOURCES =        \
222         dftest.c        \
223         util.c
224
225 # randpkt specifics
226 randpkt_SOURCES = \
227         randpkt.c
228
229 # dumpcap specifics
230 dumpcap_SOURCES =       \
231         $(PLATFORM_SRC) \
232         capture_opts.c \
233         capture-pcap-util.c     \
234         capture_stop_conditions.c       \
235         clopts_common.c \
236         conditions.c    \
237         dumpcap.c       \
238         pcapio.c        \
239         ringbuffer.c    \
240         sync_pipe_write.c       \
241         tempfile.c      \
242         version_info.c  \
243         epan/unicode-utils.c    \
244         epan/privileges.c
245
246 # corresponding headers
247 dumpcap_INCLUDES = \
248         capture_stop_conditions.h       \
249         conditions.h    \
250         pcapio.h        \
251         ringbuffer.h    \
252         epan/unicode-utils.h    \
253         epan/privileges.h
254
255 # this target needed for distribution only
256 noinst_HEADERS =        \
257         $(WIRESHARK_COMMON_INCLUDES) \
258         $(wireshark_INCLUDES) \
259         $(EXTRA_wireshark_INCLUDES) \
260         $(dumpcap_INCLUDES)