Add the (still unfinished) tethereal side of the funnel.
[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$
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 # "BUILT_SOURCES" are built before any "make all" or "make check" targets.
27 BUILT_HEADER_FILES =    \
28         svnversion.h
29
30 BUILT_C_FILES =         \
31         ps.c
32
33 BUILT_SOURCES = $(BUILT_C_FILES) $(BUILT_HEADER_FILES)
34
35 # Header files generated from source files.
36 GENERATED_HEADER_FILES = \
37         $(BUILT_HEADER_FILES)
38
39 # C source files generated from source files.
40 GENERATED_C_FILES = \
41         $(BUILT_C_FILES)        \
42         tethereal-tap-register.c
43
44 # All the generated files.
45 GENERATED_FILES = $(GENERATED_C_FILES) $(GENERATED_HEADER_FILES)
46
47 # sources common for ethereal and tethereal
48 ETHEREAL_COMMON_SRC =   \
49         $(PLATFORM_SRC) \
50         capture_errs.c  \
51         capture-pcap-util.c     \
52         capture_stop_conditions.c       \
53         capture_ui_utils.c      \
54         cfile.c \
55         clopts_common.c \
56         conditions.c    \
57         disabled_protos.c       \
58         packet-range.c  \
59         print.c \
60         ps.c    \
61         ringbuffer.c    \
62         timestats.c     \
63         util.c  \
64         version_info.c
65
66 # corresponding headers
67 ETHEREAL_COMMON_INCLUDES =      \
68         svnversion.h            \
69         capture_errs.h  \
70         capture-pcap-util.h     \
71         capture-pcap-util-int.h \
72         capture_stop_conditions.h       \
73         capture_ui_utils.h      \
74         cfile.h \
75         clopts_common.h \
76         cmdarg_err.h    \
77         color.h \
78         conditions.h    \
79         disabled_protos.h       \
80         file.h  \
81         fileset.h       \
82         isprint.h       \
83         packet-range.h  \
84         print.h \
85         ps.h    \
86         register.h      \
87         ringbuffer.h    \
88         tempfile.h      \
89         timestats.h     \
90         util.h  \
91         version_info.h
92
93 # sources for Tethereal taps
94 TETHEREAL_TAP_SRC =     \
95         tap-afpstat.c   \
96         tap-ansi_astat.c        \
97         tap-bootpstat.c \
98         tap-dcerpcstat.c        \
99         tap-funnel.c \
100         tap-gsm_astat.c \
101         tap-h225counter.c       \
102         tap-h225rassrt.c        \
103         tap-httpstat.c  \
104         tap-iostat.c    \
105         tap-iousers.c   \
106         tap-mgcpstat.c  \
107         tap-protocolinfo.c      \
108         tap-protohierstat.c     \
109         tap-rpcstat.c   \
110         tap-rpcprogs.c  \
111         tap-sctpchunkstat.c     \
112         tap-sipstat.c \
113         tap-smbsids.c   \
114         tap-smbstat.c   \
115         tap-stats_tree.c        \
116         tap-wspstat.c
117
118 # helpers already available on some platforms (and on others not)
119 EXTRA_ethereal_SOURCES =        \
120         getopt.c        \
121         mkstemp.c       \
122         snprintf.c      \
123         strerror.c      \
124         strcasecmp.c    \
125         strncasecmp.c   \
126         strptime.c
127
128 # corresponding headers
129 EXTRA_ethereal_INCLUDES =       \
130         getopt.h        \
131         mkstemp.h       \
132         snprintf.h      \
133         snprintf-imp.h  \
134         strerror.h      \
135         strptime.h
136
137 # ethereal specifics
138 ethereal_SOURCES =      \
139         $(ETHEREAL_COMMON_SRC)  \
140         alert_box.c     \
141         capture.c       \
142         capture_info.c  \
143         capture_opts.c \
144         capture_sync.c  \
145         color_filters.c \
146         file.c  \
147         fileset.c       \
148         filters.c       \
149         g711.c \
150         merge.c \
151         proto_hier_stats.c      \
152         summary.c       \
153         tempfile.c
154
155 # corresponding headers
156 ethereal_INCLUDES =     \
157         alert_box.h     \
158         capture.h       \
159         capture_info.h  \
160         capture_loop.h  \
161         capture_opts.h  \
162         capture_sync.h  \
163         color_filters.h \
164         filters.h       \
165         g711.h  \
166         globals.h       \
167         log.h   \
168         main_window.h   \
169         menu.h  \
170         merge.h \
171         progress_dlg.h  \
172         proto_hier_stats.h      \
173         simple_dialog.h \
174         stat_menu.h     \
175         statusbar.h     \
176         summary.h       \
177         tap_dfilter_dlg.h       \
178         ui_util.h
179
180 # tethereal specifics
181 tethereal_SOURCES =     \
182         $(ETHEREAL_COMMON_SRC)  \
183         $(TETHEREAL_TAP_SRC)    \
184         capture_opts.c          \
185         capture_loop.c          \
186         tempfile.c              \
187         tethereal-tap-register.c        \
188         tethereal.c
189
190 # text2pcap specifics
191 text2pcap_SOURCES = \
192         text2pcap.c \
193         text2pcap-scanner.l
194
195 # mergecap specifics
196 mergecap_SOURCES = \
197         mergecap.c \
198         merge.c \
199         svnversion.h
200
201 # editcap specifics
202 editcap_SOURCES = \
203         editcap.c
204
205 # dftest specifics
206 dftest_SOURCES =        \
207         dftest.c        \
208         util.c
209
210 # randpkt specifics
211 randpkt_SOURCES = \
212         randpkt.c
213
214 # dumpcap specifics
215 dumpcap_SOURCES =       \
216         $(PLATFORM_SRC) \
217         capture_opts.c \
218         capture_loop.c  \
219         capture-pcap-util.c     \
220         capture_stop_conditions.c       \
221         clopts_common.c \
222         conditions.c    \
223         dumpcap.c       \
224         ringbuffer.c    \
225         tempfile.c      \
226         version_info.c
227
228
229 # this target needed for distribution only
230 noinst_HEADERS =        \
231         $(ETHEREAL_COMMON_INCLUDES) \
232         $(ethereal_INCLUDES) \
233         $(EXTRA_ethereal_INCLUDES)