Initial checkin of the stats-tree tap API
[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 # Header files for dissector helpers
27 # XXX - these should be moved to epan/dissectors
28 DISSECTOR_SUPPORT_INCLUDES =    \
29         aftypes.h       \
30         arcnet_pids.h   \
31         bridged_pids.h  \
32         chdlctypes.h    \
33         etypes.h        \
34         format-oid.h    \
35         greproto.h      \
36         iax2_codec_type.h       \
37         ip_opts.h       \
38         isprint.h       \
39         lapd_sapi.h     \
40         llcsaps.h       \
41         nlpid.h \
42         oui.h   \
43         ppptypes.h      \
44         rpc_defrag.h    \
45         rtp_pt.h        \
46         sctpppids.h     \
47         smb.h   \
48         x264_prt_id.h
49
50 # "BUILT_SOURCES" are built before any "make all" or "make check" targets.
51 BUILT_HEADER_FILES =    \
52         svnversion.h
53
54 BUILT_C_FILES =         \
55         ps.c
56
57 BUILT_SOURCES = $(BUILT_C_FILES) $(BUILT_HEADER_FILES)
58
59 # Header files generated from source files.
60 GENERATED_HEADER_FILES = \
61         $(BUILT_HEADER_FILES)
62
63 # C source files generated from source files.
64 GENERATED_C_FILES = \
65         $(BUILT_C_FILES)        \
66         tethereal-tap-register.c
67
68 # All the generated files.
69 GENERATED_FILES = $(GENERATED_C_FILES) $(GENERATED_HEADER_FILES)
70
71 # sources common for ethereal and tethereal
72 ETHEREAL_COMMON_SRC =   \
73         $(PLATFORM_SRC) \
74         capture_stop_conditions.c       \
75         capture_ui_utils.c      \
76         cfile.c \
77         clopts_common.c \
78         conditions.c    \
79         disabled_protos.c       \
80         packet-range.c  \
81         pcap-util.c     \
82         print.c \
83         ps.c    \
84         ringbuffer.c    \
85         timestats.c     \
86         util.c  \
87         version_info.c
88
89 # corresponding headers
90 ETHEREAL_COMMON_INCLUDES =      \
91         $(DISSECTOR_SUPPORT_INCLUDES)   \
92         svnversion.h            \
93         capture_stop_conditions.h       \
94         capture_ui_utils.h      \
95         cfile.h \
96         clopts_common.h \
97         color.h \
98         conditions.h    \
99         disabled_protos.h       \
100         file.h  \
101         packet-range.h  \
102         pcap-util.h     \
103         pcap-util-int.h \
104         print.h \
105         ps.h    \
106         register.h      \
107         ringbuffer.h    \
108         timestats.h     \
109         util.h  \
110         version_info.h
111
112 # sources for Tethereal taps
113 TETHEREAL_TAP_SRC =     \
114         tap-ansi_astat.c        \
115         tap-bootpstat.c \
116         tap-dcerpcstat.c        \
117         tap-gsm_astat.c \
118         tap-h225counter.c       \
119         tap-h225rassrt.c        \
120         tap-httpstat.c  \
121         tap-iostat.c    \
122         tap-iousers.c   \
123         tap-mgcpstat.c  \
124         tap-protocolinfo.c      \
125         tap-protohierstat.c     \
126         tap-rpcstat.c   \
127         tap-rpcprogs.c  \
128         tap-sipstat.c \
129         tap-smbsids.c   \
130         tap-smbstat.c   \
131         tap-wspstat.c
132
133 # helpers alraedy available on some platforms (and on others not)
134 EXTRA_ethereal_SOURCES =        \
135         snprintf.c      \
136         strerror.c      \
137         strcasecmp.c    \
138         strncasecmp.c   \
139         mkstemp.c       \
140         strptime.c
141
142 # corresponding headers
143 EXTRA_ethereal_INCLUDES =       \
144         snprintf.h      \
145         snprintf-imp.h  \
146         strerror.h      \
147         mkstemp.h       \
148         strptime.h
149
150 # ethereal specifics
151 ethereal_SOURCES =      \
152         $(ETHEREAL_COMMON_SRC)  \
153         alert_box.c     \
154         capture.c       \
155         capture_sync.c  \
156         capture_loop.c  \
157         color_filters.c \
158         file.c  \
159         filters.c       \
160         g711.c \
161         merge.c \
162         proto_hier_stats.c      \
163         summary.c
164
165 # corresponding headers
166 ethereal_INCLUDES =     \
167         alert_box.h     \
168         capture.h       \
169         capture_sync.h  \
170         color_filters.h \
171         filters.h       \
172         g711.h  \
173         globals.h       \
174         main_window.h   \
175         menu.h  \
176         merge.h \
177         progress_dlg.h  \
178         proto_hier_stats.h      \
179         simple_dialog.h \
180         statusbar.h     \
181         summary.h       \
182         tap_dfilter_dlg.h       \
183         ui_util.h
184
185 # tethereal specifics
186 tethereal_SOURCES =     \
187         $(ETHEREAL_COMMON_SRC)  \
188         $(TETHEREAL_TAP_SRC)    \
189         tethereal-tap-register.c        \
190         tethereal.c
191
192 # text2pcap specifics
193 text2pcap_SOURCES = \
194         text2pcap.c \
195         text2pcap-scanner.l
196
197 # mergecap specifics
198 mergecap_SOURCES = \
199         mergecap.c \
200         merge.c \
201         svnversion.h
202
203 # editcap specifics
204 editcap_SOURCES = \
205         editcap.c
206
207 # dftest specifics
208 dftest_SOURCES =        \
209         dftest.c        \
210         util.c
211
212 # randpkt specifics
213 randpkt_SOURCES = \
214         randpkt.c
215
216 # this target needed for distribution only
217 noinst_HEADERS =        \
218         $(DISSECTOR_SUPPORT_INCLUDES) \
219         $(ETHEREAL_COMMON_INCLUDES) \
220         $(ethereal_INCLUDES) \
221         $(EXTRA_ethereal_INCLUDES)
222