Recommend wmem over emem in the READMEs where possible.
[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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 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
43 # All the generated files.
44 GENERATED_FILES = $(GENERATED_C_FILES) $(GENERATED_HEADER_FILES)
45
46 # sources common for wireshark, tshark, and rawshark
47 WIRESHARK_COMMON_SRC =  \
48         $(PLATFORM_SRC)         \
49         capture-pcap-util.c     \
50         cfile.c                 \
51         cfutils.c               \
52         clopts_common.c         \
53         disabled_protos.c       \
54         frame_data_sequence.c   \
55         packet-range.c          \
56         print.c                 \
57         ps.c                    \
58         sync_pipe_write.c       \
59         timestats.c             \
60         tap-megaco-common.c     \
61         tap-rtp-common.c        \
62         version_info.c
63
64 # corresponding headers
65 WIRESHARK_COMMON_INCLUDES =     \
66         svnversion.h            \
67         capture-pcap-util.h     \
68         capture-pcap-util-int.h \
69         capture_unix_ifnames.h  \
70         cfile.h                 \
71         cfutils.h               \
72         clopts_common.h         \
73         cmdarg_err.h            \
74         console_io.h            \
75         color.h                 \
76         disabled_protos.h       \
77         file.h                  \
78         fileset.h               \
79         frame_data_sequence.h   \
80         isprint.h               \
81         packet-range.h          \
82         print.h                 \
83         ps.h                    \
84         register.h              \
85         tempfile.h              \
86         timestats.h             \
87         tap-megaco-common.h     \
88         tap-rtp-common.h        \
89         version_info.h
90
91 # sources common for wireshark and tshark, but not rawshark;
92 # these are for programs that capture traffic by running dumpcap
93 SHARK_COMMON_CAPTURE_SRC =      \
94         capture_ifinfo.c        \
95         capture_sync.c          \
96         capture_ui_utils.c
97
98 # corresponding headers
99 SHARK_COMMON_CAPTURE_INCLUDES = \
100         capture_ifinfo.h        \
101         capture_sync.h          \
102         capture_ui_utils.h
103
104 # wireshark specifics
105 wireshark_SOURCES =     \
106         $(WIRESHARK_COMMON_SRC) \
107         $(SHARK_COMMON_CAPTURE_SRC) \
108         airpcap_loader.c \
109         capture.c       \
110         capture_info.c  \
111         capture_opts.c \
112         color_filters.c \
113         file.c  \
114         fileset.c       \
115         filters.c       \
116         g711.c \
117         iface_monitor.c \
118         merge.c \
119         proto_hier_stats.c      \
120         recent.c        \
121         summary.c       \
122         tempfile.c      \
123         u3.c            \
124         ws80211_utils.c
125
126 # corresponding headers
127 wireshark_INCLUDES =    \
128         airpcap.h       \
129         airpcap_loader.h \
130         capture.h       \
131         capture_info.h  \
132         capture_opts.h  \
133         color_filters.h \
134         filters.h       \
135         g711.h  \
136         globals.h       \
137         iface_monitor.h \
138         log.h   \
139         merge.h \
140         proto_hier_stats.h      \
141         stat_menu.h     \
142         summary.h       \
143         sync_pipe.h     \
144         u3.h            \
145         ws80211_utils.h
146
147 # tshark specifics
148 tshark_SOURCES =        \
149         $(WIRESHARK_COMMON_SRC) \
150         $(SHARK_COMMON_CAPTURE_SRC) \
151         capture_opts.c          \
152         tempfile.c              \
153         tshark.c
154
155 # rawshark specifics
156 rawshark_SOURCES =      \
157         $(WIRESHARK_COMMON_SRC) \
158         rawshark.c
159
160 # text2pcap specifics
161 text2pcap_SOURCES = \
162         text2pcap.c \
163         text2pcap-scanner.l
164
165 # mergecap specifics
166 mergecap_SOURCES = \
167         mergecap.c \
168         merge.c \
169         svnversion.h
170
171 # editcap specifics
172 editcap_SOURCES = \
173         editcap.c       \
174         epan/crypt/md5.c \
175         epan/nstime.c \
176         $(WTAP_PLUGIN_SOURCES)
177
178 # reordercap specifics
179 reordercap_SOURCES = \
180         reordercap.c \
181         svnversion.h
182
183 # capinfos specifics
184 capinfos_SOURCES = \
185         capinfos.c \
186         $(WTAP_PLUGIN_SOURCES)
187
188 # dftest specifics
189 dftest_SOURCES =        \
190         dftest.c
191
192 # randpkt specifics
193 randpkt_SOURCES = \
194         randpkt.c
195
196 # dumpcap specifics
197 dumpcap_SOURCES =       \
198         $(PLATFORM_SRC) \
199         capture_opts.c \
200         capture-pcap-util.c     \
201         capture_stop_conditions.c       \
202         cfutils.c       \
203         clopts_common.c \
204         conditions.c    \
205         dumpcap.c       \
206         pcapio.c        \
207         ringbuffer.c    \
208         sync_pipe_write.c       \
209         tempfile.c      \
210         version_info.c  \
211         ws80211_utils.c
212
213 # corresponding headers
214 dumpcap_INCLUDES = \
215         capture_stop_conditions.h       \
216         conditions.h    \
217         pcapio.h        \
218         ringbuffer.h
219
220 # this target needed for distribution only
221 noinst_HEADERS =        \
222         $(WIRESHARK_COMMON_INCLUDES) \
223         $(SHARK_COMMON_CAPTURE_INCLUDES) \
224         $(wireshark_INCLUDES) \
225         $(dumpcap_INCLUDES)