Add support for AirPcap, an upcoming wireless product from CACE. Support
[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 # 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         airpcap_loader.c \
140         alert_box.c     \
141         capture.c       \
142         capture_info.c  \
143         capture_opts.c \
144         capture_sync.c  \
145         color_filters.c \
146         file.c  \
147         fileset.c       \
148         filters.c       \
149         g711.c \
150         merge.c \
151         proto_hier_stats.c      \
152         sync_pipe_write.c       \
153         summary.c       \
154         tempfile.c
155
156 # corresponding headers
157 wireshark_INCLUDES =    \
158         airpcap_loader.h \
159         alert_box.h     \
160         capture.h       \
161         capture_info.h  \
162         capture_loop.h  \
163         capture_opts.h  \
164         capture_sync.h  \
165         color_filters.h \
166         filters.h       \
167         g711.h  \
168         globals.h       \
169         log.h   \
170         main_window.h   \
171         menu.h  \
172         merge.h \
173         progress_dlg.h  \
174         proto_hier_stats.h      \
175         simple_dialog.h \
176         stat_menu.h     \
177         statusbar.h     \
178         summary.h       \
179         sync_pipe.h     \
180         tap_dfilter_dlg.h       \
181         ui_util.h
182
183 # tshark specifics
184 tshark_SOURCES =        \
185         $(WIRESHARK_COMMON_SRC) \
186         $(TSHARK_TAP_SRC)       \
187         capture_opts.c          \
188         capture_loop.c          \
189         tempfile.c              \
190         tshark-tap-register.c   \
191         tshark.c
192
193 # text2pcap specifics
194 text2pcap_SOURCES = \
195         text2pcap.c \
196         text2pcap-scanner.l
197
198 # mergecap specifics
199 mergecap_SOURCES = \
200         mergecap.c \
201         merge.c \
202         svnversion.h
203
204 # editcap specifics
205 editcap_SOURCES = \
206         editcap.c       \
207         epan/crypt-md5.c
208
209 # dftest specifics
210 dftest_SOURCES =        \
211         dftest.c        \
212         util.c
213
214 # randpkt specifics
215 randpkt_SOURCES = \
216         randpkt.c
217
218 # dumpcap specifics
219 dumpcap_SOURCES =       \
220         $(PLATFORM_SRC) \
221         capture_opts.c \
222         capture_loop.c  \
223         capture-pcap-util.c     \
224         capture_stop_conditions.c       \
225         clopts_common.c \
226         conditions.c    \
227         dumpcap.c       \
228         pcapio.c        \
229         ringbuffer.c    \
230         sync_pipe_write.c       \
231         tempfile.c      \
232         version_info.c
233
234
235 # this target needed for distribution only
236 noinst_HEADERS =        \
237         $(WIRESHARK_COMMON_INCLUDES) \
238         $(wireshark_INCLUDES) \
239         $(EXTRA_wireshark_INCLUDES)