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