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