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