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