d0c63f820b6419df87aa148b4ab22f08c08b0dda
[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
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         merge.c \
115         proto_hier_stats.c      \
116         recent.c        \
117         summary.c       \
118         tempfile.c      \
119         u3.c            \
120         ws80211_utils.c
121
122 # corresponding headers
123 wireshark_INCLUDES =    \
124         airpcap.h       \
125         airpcap_loader.h \
126         capture.h       \
127         capture_info.h  \
128         capture_opts.h  \
129         color_filters.h \
130         filters.h       \
131         g711.h  \
132         globals.h       \
133         log.h   \
134         merge.h \
135         proto_hier_stats.h      \
136         stat_menu.h     \
137         summary.h       \
138         sync_pipe.h     \
139         u3.h            \
140         ws80211_utils.h
141
142 # tshark specifics
143 tshark_SOURCES =        \
144         $(WIRESHARK_COMMON_SRC) \
145         $(SHARK_COMMON_CAPTURE_SRC) \
146         capture_opts.c          \
147         tempfile.c              \
148         tshark.c
149
150 # rawshark specifics
151 rawshark_SOURCES =      \
152         $(WIRESHARK_COMMON_SRC) \
153         rawshark.c
154
155 # text2pcap specifics
156 text2pcap_SOURCES = \
157         text2pcap.c \
158         text2pcap-scanner.l
159
160 # mergecap specifics
161 mergecap_SOURCES = \
162         mergecap.c \
163         merge.c \
164         svnversion.h
165
166 # editcap specifics
167 editcap_SOURCES = \
168         editcap.c       \
169         epan/crypt/md5.c \
170         epan/nstime.c \
171         $(WTAP_PLUGIN_SOURCES)
172
173 capinfos_SOURCES = \
174         capinfos.c \
175         $(WTAP_PLUGIN_SOURCES)
176
177 # dftest specifics
178 dftest_SOURCES =        \
179         dftest.c
180
181 # randpkt specifics
182 randpkt_SOURCES = \
183         randpkt.c
184
185 # dumpcap specifics
186 dumpcap_SOURCES =       \
187         $(PLATFORM_SRC) \
188         capture_opts.c \
189         capture-pcap-util.c     \
190         capture_stop_conditions.c       \
191         clopts_common.c \
192         conditions.c    \
193         dumpcap.c       \
194         pcapio.c        \
195         ringbuffer.c    \
196         sync_pipe_write.c       \
197         tempfile.c      \
198         version_info.c  \
199         ws80211_utils.c
200
201 # corresponding headers
202 dumpcap_INCLUDES = \
203         capture_stop_conditions.h       \
204         conditions.h    \
205         pcapio.h        \
206         ringbuffer.h
207
208 # this target needed for distribution only
209 noinst_HEADERS =        \
210         $(WIRESHARK_COMMON_INCLUDES) \
211         $(SHARK_COMMON_CAPTURE_INCLUDES) \
212         $(wireshark_INCLUDES) \
213         $(dumpcap_INCLUDES)