move the complete functionality of the capture info dialog from capture_loop.c to...
[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_stop_conditions.c       \
52         capture_ui_utils.c      \
53         cfile.c \
54         clopts_common.c \
55         conditions.c    \
56         disabled_protos.c       \
57         packet-range.c  \
58         pcap-util.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_stop_conditions.h       \
71         capture_ui_utils.h      \
72         cfile.h \
73         clopts_common.h \
74         cmdarg_err.h    \
75         color.h \
76         conditions.h    \
77         disabled_protos.h       \
78         file.h  \
79         fileset.h       \
80         isprint.h       \
81         packet-range.h  \
82         pcap-util.h     \
83         pcap-util-int.h \
84         print.h \
85         ps.h    \
86         register.h      \
87         ringbuffer.h    \
88         timestats.h     \
89         util.h  \
90         version_info.h
91
92 # sources for Tethereal taps
93 TETHEREAL_TAP_SRC =     \
94         tap-afpstat.c   \
95         tap-ansi_astat.c        \
96         tap-bootpstat.c \
97         tap-dcerpcstat.c        \
98         tap-gsm_astat.c \
99         tap-h225counter.c       \
100         tap-h225rassrt.c        \
101         tap-httpstat.c  \
102         tap-iostat.c    \
103         tap-iousers.c   \
104         tap-mgcpstat.c  \
105         tap-protocolinfo.c      \
106         tap-protohierstat.c     \
107         tap-rpcstat.c   \
108         tap-rpcprogs.c  \
109         tap-sctpchunkstat.c     \
110         tap-sipstat.c \
111         tap-smbsids.c   \
112         tap-smbstat.c   \
113         tap-stats_tree.c        \
114         tap-wspstat.c
115
116 # helpers already available on some platforms (and on others not)
117 EXTRA_ethereal_SOURCES =        \
118         snprintf.c      \
119         strerror.c      \
120         strcasecmp.c    \
121         strncasecmp.c   \
122         mkstemp.c       \
123         strptime.c
124
125 # corresponding headers
126 EXTRA_ethereal_INCLUDES =       \
127         snprintf.h      \
128         snprintf-imp.h  \
129         strerror.h      \
130         mkstemp.h       \
131         strptime.h
132
133 # ethereal specifics
134 ethereal_SOURCES =      \
135         $(ETHEREAL_COMMON_SRC)  \
136         alert_box.c     \
137         capture.c       \
138         capture_info.c  \
139         capture_loop.c  \
140         capture_opts.c \
141         capture_sync.c  \
142         color_filters.c \
143         file.c  \
144         fileset.c       \
145         filters.c       \
146         g711.c \
147         merge.c \
148         proto_hier_stats.c      \
149         summary.c
150
151 # corresponding headers
152 ethereal_INCLUDES =     \
153         alert_box.h     \
154         capture.h       \
155         capture_info.h  \
156         capture_loop.h  \
157         capture_opts.h  \
158         capture_sync.h  \
159         color_filters.h \
160         filters.h       \
161         g711.h  \
162         globals.h       \
163         log.h   \
164         main_window.h   \
165         menu.h  \
166         merge.h \
167         progress_dlg.h  \
168         proto_hier_stats.h      \
169         simple_dialog.h \
170         stat_menu.h     \
171         statusbar.h     \
172         summary.h       \
173         tap_dfilter_dlg.h       \
174         ui_util.h
175
176 # tethereal specifics
177 tethereal_SOURCES =     \
178         $(ETHEREAL_COMMON_SRC)  \
179         $(TETHEREAL_TAP_SRC)    \
180         capture_opts.c          \
181         tethereal-tap-register.c        \
182         tethereal.c
183
184 # text2pcap specifics
185 text2pcap_SOURCES = \
186         text2pcap.c \
187         text2pcap-scanner.l
188
189 # mergecap specifics
190 mergecap_SOURCES = \
191         mergecap.c \
192         merge.c \
193         svnversion.h
194
195 # editcap specifics
196 editcap_SOURCES = \
197         editcap.c
198
199 # dftest specifics
200 dftest_SOURCES =        \
201         dftest.c        \
202         util.c
203
204 # randpkt specifics
205 randpkt_SOURCES = \
206         randpkt.c
207
208 # dumpcap specifics
209 dumpcap_SOURCES =       \
210         $(PLATFORM_SRC) \
211         capture_stop_conditions.c       \
212         clopts_common.c \
213         conditions.c    \
214         pcap-util.c     \
215         ringbuffer.c    \
216         util.c  \
217         version_info.c \
218         capture_opts.c \
219         capture_loop.c  \
220         dumpcap.c
221
222
223 # this target needed for distribution only
224 noinst_HEADERS =        \
225         $(ETHEREAL_COMMON_INCLUDES) \
226         $(ethereal_INCLUDES) \
227         $(EXTRA_ethereal_INCLUDES)
228