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