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