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