Hoist the code for handling "-G" into a common module.
[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$
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 # Header files for dissector helpers
27 # XXX - these should be moved to epan/dissectors
28 DISSECTOR_SUPPORT_INCLUDES =    \
29         adler32.h       \
30         afn.h   \
31         aftypes.h       \
32         arcnet_pids.h   \
33         asn1.h  \
34         bridged_pids.h  \
35         chdlctypes.h    \
36         column.h        \
37         crc16.h \
38         crc32.h \
39         crypt-des.h     \
40         crypt-md4.h     \
41         crypt-md5.h     \
42         crypt-rc4.h     \
43         etypes.h        \
44         follow.h        \
45         format-oid.h    \
46         greproto.h      \
47         h225-persistentdata.h   \
48         iax2_codec_type.h       \
49         in_cksum.h      \
50         ip_opts.h       \
51         ipproto.h       \
52         isprint.h       \
53         lapd_sapi.h     \
54         llcsaps.h       \
55         nlpid.h \
56         oui.h   \
57         ppptypes.h      \
58         prefs-int.h     \
59         prefs.h \
60         ptvcursor.h     \
61         reassemble.h    \
62         req_resp_hdrs.h \
63         rpc_defrag.h    \
64         rtp_pt.h        \
65         sctpppids.h     \
66         sha1.h  \
67         smb.h   \
68         t35.h   \
69         tap.h   \
70         util.h  \
71         x264_prt_id.h   \
72         xdlc.h  \
73         xmlstub.h
74
75 # "BUILT_SOURCES" are built before any "make all" or "make check" targets.
76 BUILT_SOURCES =         \
77         svnversion.h \
78         ps.c
79
80 # sources common for ethereal and tethereal
81 ETHEREAL_COMMON_SRC =   \
82         $(PLATFORM_SRC) \
83         capture_stop_conditions.c       \
84         cfile.c \
85         clopts_common.c \
86         conditions.c    \
87         disabled_protos.c       \
88         packet-range.c  \
89         pcap-util.c     \
90         print.c \
91         ps.c    \
92         ringbuffer.c    \
93         timestats.c     \
94         version_info.c
95
96 # corresponding headers
97 ETHEREAL_COMMON_INCLUDES =      \
98         $(DISSECTOR_SUPPORT_INCLUDES)   \
99         svnversion.h            \
100         capture_stop_conditions.h       \
101         cfile.h \
102         clopts_common.h \
103         color.h \
104         conditions.h    \
105         disabled_protos.h       \
106         file.h  \
107         packet-range.h  \
108         pcap-util.h     \
109         pcap-util-int.h \
110         print.h \
111         ps.h    \
112         register.h      \
113         ringbuffer.h    \
114         timestats.h     \
115         version_info.h
116
117 # sources for Tethereal taps
118 TETHEREAL_TAP_SRC =     \
119         tap-ansi_astat.c        \
120         tap-bootpstat.c \
121         tap-dcerpcstat.c        \
122         tap-gsm_astat.c \
123         tap-h225counter.c       \
124         tap-h225rassrt.c        \
125         tap-httpstat.c  \
126         tap-iostat.c    \
127         tap-iousers.c   \
128         tap-mgcpstat.c  \
129         tap-protocolinfo.c      \
130         tap-protohierstat.c     \
131         tap-rpcstat.c   \
132         tap-rpcprogs.c  \
133         tap-sipstat.c \
134         tap-smbsids.c   \
135         tap-smbstat.c   \
136         tap-wspstat.c
137
138 # helpers alraedy available on some platforms (and on others not)
139 EXTRA_ethereal_SOURCES =        \
140         snprintf.c      \
141         strerror.c      \
142         strcasecmp.c    \
143         strncasecmp.c   \
144         mkstemp.c       \
145         strptime.c
146
147 # corresponding headers
148 EXTRA_ethereal_INCLUDES =       \
149         snprintf.h      \
150         snprintf-imp.h  \
151         strerror.h      \
152         mkstemp.h       \
153         strptime.h
154
155 # ethereal specifics
156 ethereal_SOURCES =      \
157         $(ETHEREAL_COMMON_SRC)  \
158         alert_box.c     \
159         capture.c       \
160         capture_combo_utils.c   \
161         color_filters.c \
162         file.c  \
163         filters.c       \
164         g711.c \
165         merge.c \
166         proto_hier_stats.c      \
167         summary.c
168
169 # corresponding headers
170 ethereal_INCLUDES =     \
171         alert_box.h     \
172         capture.h       \
173         capture_combo_utils.h   \
174         color_filters.h \
175         filters.h       \
176         g711.h  \
177         globals.h       \
178         menu.h  \
179         merge.h \
180         progress_dlg.h  \
181         proto_hier_stats.h      \
182         simple_dialog.h \
183         statusbar.h     \
184         summary.h       \
185         tap_dfilter_dlg.h       \
186         ui_util.h
187
188 # tethereal specifics
189 tethereal_SOURCES =     \
190         $(ETHEREAL_COMMON_SRC)  \
191         $(TETHEREAL_TAP_SRC)    \
192         tethereal-tap-register.c        \
193         tethereal.c
194
195 # text2pcap specifics
196 text2pcap_SOURCES = \
197         text2pcap.c \
198         text2pcap-scanner.l
199
200 # mergecap specifics
201 mergecap_SOURCES = \
202         mergecap.c \
203         merge.c \
204         svnversion.h
205
206 # editcap specifics
207 editcap_SOURCES = \
208         editcap.c
209
210 # dftest specifics
211 dftest_SOURCES =        \
212         dftest.c
213
214 # randpkt specifics
215 randpkt_SOURCES = \
216         randpkt.c
217
218 # this target needed for distribution only
219 noinst_HEADERS =        \
220         $(DISSECTOR_SUPPORT_INCLUDES) \
221         $(ETHEREAL_COMMON_INCLUDES) \
222         $(ethereal_INCLUDES) \
223         $(EXTRA_ethereal_INCLUDES)
224