dumpcap.c doesn't need to link with file.c!
[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_opts.c \
139         capture_sync.c  \
140         capture_loop.c  \
141         color_filters.c \
142         file.c  \
143         fileset.c       \
144         filters.c       \
145         g711.c \
146         merge.c \
147         proto_hier_stats.c      \
148         summary.c
149
150 # corresponding headers
151 ethereal_INCLUDES =     \
152         alert_box.h     \
153         capture.h       \
154         capture_sync.h  \
155         color_filters.h \
156         filters.h       \
157         g711.h  \
158         globals.h       \
159         log.h   \
160         main_window.h   \
161         menu.h  \
162         merge.h \
163         progress_dlg.h  \
164         proto_hier_stats.h      \
165         simple_dialog.h \
166         stat_menu.h     \
167         statusbar.h     \
168         summary.h       \
169         tap_dfilter_dlg.h       \
170         ui_util.h
171
172 # tethereal specifics
173 tethereal_SOURCES =     \
174         $(ETHEREAL_COMMON_SRC)  \
175         $(TETHEREAL_TAP_SRC)    \
176         capture_opts.c          \
177         tethereal-tap-register.c        \
178         tethereal.c
179
180 # text2pcap specifics
181 text2pcap_SOURCES = \
182         text2pcap.c \
183         text2pcap-scanner.l
184
185 # mergecap specifics
186 mergecap_SOURCES = \
187         mergecap.c \
188         merge.c \
189         svnversion.h
190
191 # editcap specifics
192 editcap_SOURCES = \
193         editcap.c
194
195 # dftest specifics
196 dftest_SOURCES =        \
197         dftest.c        \
198         util.c
199
200 # randpkt specifics
201 randpkt_SOURCES = \
202         randpkt.c
203
204 # dumpcap specifics
205 dumpcap_SOURCES =       \
206         $(PLATFORM_SRC) \
207         capture_stop_conditions.c       \
208         clopts_common.c \
209         conditions.c    \
210         pcap-util.c     \
211         ringbuffer.c    \
212         util.c  \
213         version_info.c \
214         capture_opts.c \
215         capture_loop.c  \
216         dumpcap.c       \
217
218
219 # this target needed for distribution only
220 noinst_HEADERS =        \
221         $(ETHEREAL_COMMON_INCLUDES) \
222         $(ethereal_INCLUDES) \
223         $(EXTRA_ethereal_INCLUDES)
224