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