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