Update value strings.
[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., 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-megaco-common.c     \
63         tap-rtp-common.c        \
64         version_info.c
65
66 # corresponding headers
67 WIRESHARK_COMMON_INCLUDES =     \
68         svnversion.h            \
69         capture_errs.h  \
70         capture-pcap-util.h     \
71         capture-pcap-util-int.h \
72         capture_ui_utils.h      \
73         cfile.h \
74         clopts_common.h \
75         cmdarg_err.h    \
76         color.h \
77         disabled_protos.h       \
78         file.h  \
79         fileset.h       \
80         isprint.h       \
81         packet-range.h  \
82         print.h \
83         ps.h    \
84         register.h      \
85         tempfile.h      \
86         timestats.h     \
87         util.h  \
88         tap-megaco-common.h     \
89         tap-rtp-common.h        \
90         version_info.h
91
92 # sources for TShark taps
93 TSHARK_TAP_SRC =        \
94         tap-afpstat.c   \
95         tap-ansi_astat.c        \
96         tap-bootpstat.c \
97         tap-camelcounter.c      \
98         tap-camelsrt.c  \
99         tap-dcerpcstat.c        \
100         tap-funnel.c \
101         tap-gsm_astat.c \
102         tap-h225counter.c       \
103         tap-h225rassrt.c        \
104         tap-httpstat.c  \
105         tap-iostat.c    \
106         tap-iousers.c   \
107         tap-mgcpstat.c  \
108         tap-megacostat.c        \
109         tap-protocolinfo.c      \
110         tap-protohierstat.c     \
111         tap-radiusstat.c        \
112         tap-rpcstat.c   \
113         tap-rpcprogs.c  \
114         tap-rtp.c       \
115         tap-sctpchunkstat.c     \
116         tap-sipstat.c \
117         tap-smbsids.c   \
118         tap-smbstat.c   \
119         tap-stats_tree.c        \
120         tap-wspstat.c
121
122 # helpers already available on some platforms (and on others not)
123 EXTRA_wireshark_SOURCES =       \
124         getopt.c        \
125         inet_ntop.c     \
126         inet_pton.c     \
127         mkstemp.c       \
128         strerror.c      \
129         strcasecmp.c    \
130         strncasecmp.c   \
131         strptime.c
132
133 # corresponding headers
134 EXTRA_wireshark_INCLUDES =      \
135         getopt.h        \
136         inet_v6defs.h   \
137         mkstemp.h       \
138         strerror.h      \
139         strptime.h
140
141 # wireshark specifics
142 wireshark_SOURCES =     \
143         $(WIRESHARK_COMMON_SRC) \
144         airpcap_loader.c \
145         alert_box.c     \
146         capture.c       \
147         capture_info.c  \
148         capture_opts.c \
149         capture_sync.c  \
150         color_filters.c \
151         file.c  \
152         fileset.c       \
153         filters.c       \
154         g711.c \
155         merge.c \
156         proto_hier_stats.c      \
157         summary.c       \
158         tempfile.c
159
160 # corresponding headers
161 wireshark_INCLUDES =    \
162         airpcap.h       \
163         airpcap_loader.h \
164         alert_box.h     \
165         capture.h       \
166         capture_info.h  \
167         capture_opts.h  \
168         capture_sync.h  \
169         color_filters.h \
170         filters.h       \
171         g711.h  \
172         globals.h       \
173         log.h   \
174         merge.h \
175         progress_dlg.h  \
176         proto_hier_stats.h      \
177         simple_dialog.h \
178         stat_menu.h     \
179         summary.h       \
180         sync_pipe.h     \
181         ui_util.h
182
183 # tshark specifics
184 tshark_SOURCES =        \
185         $(WIRESHARK_COMMON_SRC) \
186         $(TSHARK_TAP_SRC)       \
187         capture_opts.c          \
188         capture_sync.c          \
189         tempfile.c              \
190         tshark-tap-register.c   \
191         tshark.c
192
193 # rawshark specifics
194 rawshark_SOURCES =      \
195         $(WIRESHARK_COMMON_SRC) \
196         rawshark.c
197
198 # text2pcap specifics
199 text2pcap_SOURCES = \
200         text2pcap.c \
201         text2pcap-scanner.l
202
203 # mergecap specifics
204 mergecap_SOURCES = \
205         mergecap.c \
206         merge.c \
207         svnversion.h
208
209 # editcap specifics
210 editcap_SOURCES = \
211         editcap.c       \
212         epan/crypt/crypt-md5.c \
213         epan/nstime.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
244 # corresponding headers
245 dumpcap_INCLUDES = \
246         capture_stop_conditions.h       \
247         conditions.h    \
248         pcapio.h        \
249         ringbuffer.h
250
251 # this target needed for distribution only
252 noinst_HEADERS =        \
253         $(WIRESHARK_COMMON_INCLUDES) \
254         $(wireshark_INCLUDES) \
255         $(EXTRA_wireshark_INCLUDES) \
256         $(dumpcap_INCLUDES)