Add tags to svn:ignore
[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 # "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-gsm_astat.c \
100         tap-h225counter.c       \
101         tap-h225rassrt.c        \
102         tap-httpstat.c  \
103         tap-iostat.c    \
104         tap-iousers.c   \
105         tap-mgcpstat.c  \
106         tap-protocolinfo.c      \
107         tap-protohierstat.c     \
108         tap-rpcstat.c   \
109         tap-rpcprogs.c  \
110         tap-sctpchunkstat.c     \
111         tap-sipstat.c \
112         tap-smbsids.c   \
113         tap-smbstat.c   \
114         tap-stats_tree.c        \
115         tap-wspstat.c
116
117 # helpers already available on some platforms (and on others not)
118 EXTRA_ethereal_SOURCES =        \
119         getopt.c        \
120         mkstemp.c       \
121         snprintf.c      \
122         strerror.c      \
123         strcasecmp.c    \
124         strncasecmp.c   \
125         strptime.c
126
127 # corresponding headers
128 EXTRA_ethereal_INCLUDES =       \
129         getopt.h        \
130         mkstemp.h       \
131         snprintf.h      \
132         snprintf-imp.h  \
133         strerror.h      \
134         strptime.h
135
136 # ethereal specifics
137 ethereal_SOURCES =      \
138         $(ETHEREAL_COMMON_SRC)  \
139         alert_box.c     \
140         capture.c       \
141         capture_info.c  \
142         capture_opts.c \
143         capture_sync.c  \
144         color_filters.c \
145         file.c  \
146         fileset.c       \
147         filters.c       \
148         g711.c \
149         merge.c \
150         proto_hier_stats.c      \
151         summary.c       \
152         tempfile.c
153
154 # corresponding headers
155 ethereal_INCLUDES =     \
156         alert_box.h     \
157         capture.h       \
158         capture_info.h  \
159         capture_loop.h  \
160         capture_opts.h  \
161         capture_sync.h  \
162         color_filters.h \
163         filters.h       \
164         g711.h  \
165         globals.h       \
166         log.h   \
167         main_window.h   \
168         menu.h  \
169         merge.h \
170         progress_dlg.h  \
171         proto_hier_stats.h      \
172         simple_dialog.h \
173         stat_menu.h     \
174         statusbar.h     \
175         summary.h       \
176         tap_dfilter_dlg.h       \
177         ui_util.h
178
179 # tethereal specifics
180 tethereal_SOURCES =     \
181         $(ETHEREAL_COMMON_SRC)  \
182         $(TETHEREAL_TAP_SRC)    \
183         capture_opts.c          \
184         capture_loop.c          \
185         tempfile.c              \
186         tethereal-tap-register.c        \
187         tethereal.c
188
189 # text2pcap specifics
190 text2pcap_SOURCES = \
191         text2pcap.c \
192         text2pcap-scanner.l
193
194 # mergecap specifics
195 mergecap_SOURCES = \
196         mergecap.c \
197         merge.c \
198         svnversion.h
199
200 # editcap specifics
201 editcap_SOURCES = \
202         editcap.c
203
204 # dftest specifics
205 dftest_SOURCES =        \
206         dftest.c        \
207         util.c
208
209 # randpkt specifics
210 randpkt_SOURCES = \
211         randpkt.c
212
213 # dumpcap specifics
214 dumpcap_SOURCES =       \
215         $(PLATFORM_SRC) \
216         capture_opts.c \
217         capture_loop.c  \
218         capture-pcap-util.c     \
219         capture_stop_conditions.c       \
220         clopts_common.c \
221         conditions.c    \
222         dumpcap.c       \
223         ringbuffer.c    \
224         tempfile.c      \
225         version_info.c
226
227
228 # this target needed for distribution only
229 noinst_HEADERS =        \
230         $(ETHEREAL_COMMON_INCLUDES) \
231         $(ethereal_INCLUDES) \
232         $(EXTRA_ethereal_INCLUDES)