we dont need our own snprintf any more since we always use g_snprintf() instead.
[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 # Wireshark - Network traffic analyzer
9 # By Gerald Combs <gerald@wireshark.org>
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         tshark-tap-register.c
43
44 # All the generated files.
45 GENERATED_FILES = $(GENERATED_C_FILES) $(GENERATED_HEADER_FILES)
46
47 # sources common for wireshark and tshark
48 WIRESHARK_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         pcapio.c        \
62         ringbuffer.c    \
63         timestats.c     \
64         util.c  \
65         version_info.c
66
67 # corresponding headers
68 WIRESHARK_COMMON_INCLUDES =     \
69         svnversion.h            \
70         capture_errs.h  \
71         capture-pcap-util.h     \
72         capture-pcap-util-int.h \
73         capture_stop_conditions.h       \
74         capture_ui_utils.h      \
75         cfile.h \
76         clopts_common.h \
77         cmdarg_err.h    \
78         color.h \
79         conditions.h    \
80         disabled_protos.h       \
81         file.h  \
82         fileset.h       \
83         isprint.h       \
84         packet-range.h  \
85         pcapio.h        \
86         print.h \
87         ps.h    \
88         register.h      \
89         ringbuffer.h    \
90         tempfile.h      \
91         timestats.h     \
92         util.h  \
93         version_info.h
94
95 # sources for TShark taps
96 TSHARK_TAP_SRC =        \
97         tap-afpstat.c   \
98         tap-ansi_astat.c        \
99         tap-bootpstat.c \
100         tap-dcerpcstat.c        \
101         tap-funnel.c \
102         tap-gsm_astat.c \
103         tap-h225counter.c       \
104         tap-h225rassrt.c        \
105         tap-httpstat.c  \
106         tap-iostat.c    \
107         tap-iousers.c   \
108         tap-mgcpstat.c  \
109         tap-protocolinfo.c      \
110         tap-protohierstat.c     \
111         tap-rpcstat.c   \
112         tap-rpcprogs.c  \
113         tap-sctpchunkstat.c     \
114         tap-sipstat.c \
115         tap-smbsids.c   \
116         tap-smbstat.c   \
117         tap-stats_tree.c        \
118         tap-wspstat.c
119
120 # helpers already available on some platforms (and on others not)
121 EXTRA_wireshark_SOURCES =       \
122         getopt.c        \
123         mkstemp.c       \
124         strerror.c      \
125         strcasecmp.c    \
126         strncasecmp.c   \
127         strptime.c
128
129 # corresponding headers
130 EXTRA_wireshark_INCLUDES =      \
131         getopt.h        \
132         mkstemp.h       \
133         strerror.h      \
134         strptime.h
135
136 # wireshark specifics
137 wireshark_SOURCES =     \
138         $(WIRESHARK_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         sync_pipe_write.c       \
152         summary.c       \
153         tempfile.c
154
155 # corresponding headers
156 wireshark_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         sync_pipe.h     \
178         tap_dfilter_dlg.h       \
179         ui_util.h
180
181 # tshark specifics
182 tshark_SOURCES =        \
183         $(WIRESHARK_COMMON_SRC) \
184         $(TSHARK_TAP_SRC)       \
185         capture_opts.c          \
186         capture_loop.c          \
187         tempfile.c              \
188         tshark-tap-register.c   \
189         tshark.c
190
191 # text2pcap specifics
192 text2pcap_SOURCES = \
193         text2pcap.c \
194         text2pcap-scanner.l
195
196 # mergecap specifics
197 mergecap_SOURCES = \
198         mergecap.c \
199         merge.c \
200         svnversion.h
201
202 # editcap specifics
203 editcap_SOURCES = \
204         editcap.c
205
206 # dftest specifics
207 dftest_SOURCES =        \
208         dftest.c        \
209         util.c
210
211 # randpkt specifics
212 randpkt_SOURCES = \
213         randpkt.c
214
215 # dumpcap specifics
216 dumpcap_SOURCES =       \
217         $(PLATFORM_SRC) \
218         capture_opts.c \
219         capture_loop.c  \
220         capture-pcap-util.c     \
221         capture_stop_conditions.c       \
222         clopts_common.c \
223         conditions.c    \
224         dumpcap.c       \
225         pcapio.c        \
226         ringbuffer.c    \
227         sync_pipe_write.c       \
228         tempfile.c      \
229         version_info.c
230
231
232 # this target needed for distribution only
233 noinst_HEADERS =        \
234         $(WIRESHARK_COMMON_INCLUDES) \
235         $(wireshark_INCLUDES) \
236         $(EXTRA_wireshark_INCLUDES)