Note that for THE3GPP_IPV6_DNS_SERVERS we probably *do* need to handle
[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: Makefile.common,v 1.28 2004/03/05 10:29:35 guy Exp $
7 #
8 # Ethereal - Network traffic analyzer
9 # By Gerald Combs <gerald@ethereal.com>
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
27 # corresponding headers
28 DISSECTOR_INCLUDES =    \
29         packet-acse.h   \
30         packet-afp.h    \
31         packet-afs-defs.h       \
32         packet-afs-macros.h     \
33         packet-afs-register-info.h      \
34         packet-afs.h    \
35         packet-ansi_a.h \
36         packet-ansi_map.h       \
37         packet-arcnet.h \
38         packet-arp.h    \
39         packet-atalk.h  \
40         packet-atm.h    \
41         packet-ber.h    \
42         packet-bgp.h    \
43         packet-bootparams.h     \
44         packet-bssap.h  \
45         packet-chdlc.h  \
46         packet-clearcase.h      \
47         packet-clip.h   \
48         packet-data.h   \
49         packet-dccp.h   \
50         packet-dcerpc-atsvc.h   \
51         packet-dcerpc-browser.h \
52         packet-dcerpc-dce122.h  \
53         packet-dcerpc-dcom.h    \
54         packet-dcerpc-dfs.h     \
55         packet-dcerpc-dnsserver.h       \
56         packet-dcerpc-drsuapi.h \
57         packet-dcerpc-initshutdown.h    \
58         packet-dcerpc-lsa.h     \
59         packet-dcerpc-mapi.h    \
60         packet-dcerpc-netlogon.h        \
61         packet-dcerpc-nt.h      \
62         packet-dcerpc-reg.h     \
63         packet-dcerpc-samr.h    \
64         packet-dcerpc-spoolss.h \
65         packet-dcerpc-srvsvc.h  \
66         packet-dcerpc-svcctl.h  \
67         packet-dcerpc-tapi.h    \
68         packet-dcerpc-wkssvc.h  \
69         packet-dcerpc.h \
70         packet-ddtp.h   \
71         packet-diameter-defs.h  \
72         packet-diffserv-mpls-common.h   \
73         packet-dns.h    \
74         packet-dvmrp.h  \
75         packet-e164.h   \
76         packet-edonkey.h        \
77         packet-esis.h   \
78         packet-eth.h    \
79         packet-fc.h     \
80         packet-fcbls.h  \
81         packet-fcct.h   \
82         packet-fcdns.h  \
83         packet-fcels.h  \
84         packet-fcfcs.h  \
85         packet-fcfzs.h  \
86         packet-fclctl.h \
87         packet-fcp.h    \
88         packet-fcsb3.h  \
89         packet-fcsp.h   \
90         packet-fcswils.h        \
91         packet-fddi.h   \
92         packet-frame.h  \
93         packet-giop.h   \
94         packet-gnutella.h       \
95         packet-gsm_a.h  \
96         packet-gsm_map.h        \
97         packet-gssapi.h \
98         packet-gtp.h    \
99         packet-h225.h   \
100         packet-h245.h   \
101         packet-hclnfsd.h        \
102         packet-hpext.h  \
103         packet-http.h   \
104         packet-iax2.h   \
105         packet-ieee80211.h      \
106         packet-ieee8023.h       \
107         packet-igap.h   \
108         packet-igmp.h   \
109         packet-ip.h     \
110         packet-ipfc.h   \
111         packet-ipsec.h  \
112         packet-ipv6.h   \
113         packet-ipx.h    \
114         packet-isis-clv.h       \
115         packet-isis-hello.h     \
116         packet-isis-lsp.h       \
117         packet-isis-snp.h       \
118         packet-isis.h   \
119         packet-isl.h    \
120         packet-isup.h   \
121         packet-kerberos.h       \
122         packet-klm.h    \
123         packet-ldap.h   \
124         packet-llc.h    \
125         packet-mip6.h   \
126         packet-mount.h  \
127         packet-mrdisc.h \
128         packet-msnip.h  \
129         packet-mtp3.h   \
130         packet-ncp-int.h        \
131         packet-ncp-nmas.h       \
132         packet-ndps.h   \
133         packet-netbios.h        \
134         packet-nfs.h    \
135         packet-nisplus.h        \
136         packet-nlm.h    \
137         packet-ntp.h    \
138         packet-null.h   \
139         packet-osi-options.h    \
140         packet-osi.h    \
141         packet-pcnfsd.h \
142         packet-per.h    \
143         packet-pflog.h  \
144         packet-pim.h    \
145         packet-portmap.h        \
146         packet-ppp.h    \
147         packet-pres.h   \
148         packet-prism.h  \
149         packet-q931.h   \
150         packet-radiotap.h       \
151         packet-raw.h    \
152         packet-ripng.h  \
153         packet-rmi.h    \
154         packet-rpc.h    \
155         packet-rquota.h \
156         packet-rsvp.h   \
157         packet-rtcp.h   \
158         packet-rtp.h    \
159         packet-rtp-events.h     \
160         packet-rwall.h  \
161         packet-rx.h     \
162         packet-scsi.h   \
163         packet-ses.h    \
164         packet-sll.h    \
165         packet-smb-browse.h     \
166         packet-smb-common.h     \
167         packet-smb-mailslot.h   \
168         packet-smb-pipe.h       \
169         packet-smb-sidsnooping.h        \
170         packet-sna.h    \
171         packet-snmp.h   \
172         packet-spray.h  \
173         packet-stat-notify.h    \
174         packet-stat.h   \
175         packet-tacacs.h \
176         packet-tcap.h   \
177         packet-tcp.h    \
178         packet-tns.h    \
179         packet-tpkt.h   \
180         packet-tr.h     \
181         packet-udp.h    \
182         packet-vines.h  \
183         packet-vlan.h   \
184         packet-wap.h    \
185         packet-wccp.h   \
186         packet-wlancap.h        \
187         packet-wsp.h    \
188         packet-wtls.h   \
189         packet-wtp.h    \
190         packet-x11-keysym.h     \
191         packet-x11-keysymdef.h  \
192         packet-ypbind.h \
193         packet-yppasswd.h       \
194         packet-ypserv.h \
195         packet-ypxfr.h
196
197 # corresponding headers
198 DISSECTOR_SUPPORT_INCLUDES =    \
199         adler32.h       \
200         afn.h   \
201         aftypes.h       \
202         arcnet_pids.h   \
203         asn1.h  \
204         bridged_pids.h  \
205         chdlctypes.h    \
206         column.h        \
207         crc32.h \
208         crypt-des.h     \
209         crypt-md4.h     \
210         crypt-md5.h     \
211         crypt-rc4.h     \
212         etypes.h        \
213         follow.h        \
214         format-oid.h    \
215         g711.h  \
216         greproto.h      \
217         h225-persistentdata.h   \
218         in_cksum.h      \
219         ip_opts.h       \
220         ipproto.h       \
221         lapd_sapi.h     \
222         llcsaps.h       \
223         nlpid.h \
224         oui.h   \
225         ppptypes.h      \
226         prefs-int.h     \
227         prefs.h \
228         ptvcursor.h     \
229         reassemble.h    \
230         req_resp_hdrs.h \
231         rpc_defrag.h    \
232         rtp_pt.h        \
233         sctpppids.h     \
234         smb.h   \
235         t35.h   \
236         tap.h   \
237         util.h  \
238         x264_prt_id.h   \
239         xdlc.h  \
240         xmlstub.h
241
242 # "BUILT_SOURCES" are built before any "make all" or "make check" targets.
243 BUILT_SOURCES =         \
244         cvsversion.h
245
246 # sources common for ethereal and tethereal
247 ETHEREAL_COMMON_SRC =   \
248         $(PLATFORM_SRC) \
249         capture_stop_conditions.c       \
250         cfile.c \
251         conditions.c    \
252         disabled_protos.c       \
253         pcap-util.c     \
254         print.c \
255         ps.c    \
256         range.c \
257         ringbuffer.c    \
258         timestats.c     \
259         version_info.c
260
261 # corresponding headers
262 ETHEREAL_COMMON_INCLUDES =      \
263         $(DISSECTOR_SUPPORT_INCLUDES)   \
264         $(BUILT_SOURCES)                \
265         capture_stop_conditions.h       \
266         cfile.h \
267         color.h \
268         conditions.h    \
269         disabled_protos.h       \
270         file.h  \
271         pcap-util.h     \
272         pcap-util-int.h \
273         print.h \
274         ps.h    \
275         range.h \
276         register.h      \
277         ringbuffer.h    \
278         timestats.h     \
279         version_info.h
280
281 # sources for Tethereal taps
282 TETHEREAL_TAP_SRC =     \
283         tap-ansi_astat.c        \
284         tap-bootpstat.c \
285         tap-dcerpcstat.c        \
286         tap-gsm_astat.c \
287         tap-h225counter.c       \
288         tap-h225rassrt.c        \
289         tap-httpstat.c  \
290         tap-iostat.c    \
291         tap-iousers.c   \
292         tap-mgcpstat.c  \
293         tap-protocolinfo.c      \
294         tap-protohierstat.c     \
295         tap-rpcstat.c   \
296         tap-rpcprogs.c  \
297         tap-smbsids.c   \
298         tap-smbstat.c   \
299         tap-wspstat.c
300
301 # helpers alraedy available on some platforms (and on others not)
302 EXTRA_ethereal_SOURCES =        \
303         snprintf.c      \
304         strerror.c      \
305         strcasecmp.c    \
306         strncasecmp.c   \
307         mkstemp.c       \
308         strptime.c
309
310 # corresponding headers
311 EXTRA_ethereal_INCLUDES =       \
312         snprintf.h      \
313         snprintf-imp.h  \
314         strerror.h      \
315         mkstemp.h       \
316         strptime.h
317
318 # ethereal specifics
319 ethereal_SOURCES =      \
320         $(ETHEREAL_COMMON_SRC)  \
321         alert_box.c     \
322         capture.c       \
323         file.c  \
324         filters.c       \
325         proto_hier_stats.c      \
326         summary.c
327
328 # corresponding headers
329 ethereal_INCLUDES =     \
330         alert_box.h     \
331         capture.h       \
332         filters.h       \
333         globals.h       \
334         menu.h  \
335         progress_dlg.h  \
336         proto_hier_stats.h      \
337         report_err.h    \
338         simple_dialog.h \
339         statusbar.h     \
340         summary.h       \
341         tap_dfilter_dlg.h       \
342         ui_util.h
343
344 # tethereal specifics
345 tethereal_SOURCES =     \
346         $(ETHEREAL_COMMON_SRC)  \
347         $(TETHEREAL_TAP_SRC)    \
348         tethereal-tap-register.c        \
349         tethereal.c
350
351 # text2pcap specifics
352 text2pcap_SOURCES = \
353         text2pcap.c \
354         text2pcap-scanner.l
355
356 # mergecap specifics
357 mergecap_SOURCES = \
358         mergecap.c \
359         cvsversion.h
360
361 # editcap specifics
362 editcap_SOURCES = \
363         editcap.c
364
365 # dftest specifics
366 dftest_SOURCES =        \
367         dftest.c
368
369 # randpkt specifics
370 randpkt_SOURCES = \
371         randpkt.c
372
373 # this target needed for distribution only
374 noinst_HEADERS =        \
375         $(DISSECTOR_INCLUDES) \
376         $(DISSECTOR_SUPPORT_INCLUDES) \
377         $(ETHEREAL_COMMON_INCLUDES) \
378         $(ethereal_INCLUDES) \
379         $(EXTRA_ethereal_INCLUDES)
380