Rename PLATFORM_SRC to PLATFORM_CAPTURE_SRC, to match the CMake name.
[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
32 BUILT_SOURCES = $(BUILT_C_FILES) $(BUILT_HEADER_FILES)
33
34 # Header files generated from source files.
35 GENERATED_HEADER_FILES = \
36         $(BUILT_HEADER_FILES)
37
38 # C source files generated from source files.
39 GENERATED_C_FILES =
40
41 # All the generated files.
42 GENERATED_FILES = $(GENERATED_C_FILES) $(GENERATED_HEADER_FILES)
43
44 # sources common for wireshark, tshark, and rawshark
45 SHARK_COMMON_SRC =      \
46         $(PLATFORM_CAPTURE_SRC) \
47         capture-pcap-util.c     \
48         cfutils.c               \
49         clopts_common.c         \
50         frame_tvbuff.c          \
51         sync_pipe_write.c       \
52         version_info.c
53
54 # corresponding headers
55 SHARK_COMMON_INCLUDES = \
56         svnversion.h            \
57         capture-pcap-util.h     \
58         capture-pcap-util-int.h \
59         cfile.h                 \
60         cfutils.h               \
61         clopts_common.h         \
62         cmdarg_err.h            \
63         color.h                 \
64         file.h                  \
65         fileset.h               \
66         frame_tvbuff.h          \
67         register.h              \
68         version_info.h          \
69         ws_symbol_export.h
70
71 # sources common for wireshark and tshark, but not rawshark;
72 # these are for programs that capture traffic by running dumpcap
73 SHARK_COMMON_CAPTURE_SRC =      \
74         capture_ifinfo.c        \
75         capture_sync.c          \
76         capture_ui_utils.c
77
78 # corresponding headers
79 SHARK_COMMON_CAPTURE_INCLUDES = \
80         capture_ifinfo.h        \
81         capture_session.h       \
82         capture_sync.h          \
83         capture_ui_utils.h
84
85 # wireshark specifics
86 WIRESHARK_COMMON_SRC =  \
87         $(SHARK_COMMON_SRC)     \
88         $(SHARK_COMMON_CAPTURE_SRC) \
89         airpcap_loader.c \
90         capture.c       \
91         capture_info.c  \
92         capture_opts.c  \
93         cfile.c                 \
94         color_filters.c \
95         file.c          \
96         fileset.c       \
97         filters.c       \
98         iface_monitor.c \
99         proto_hier_stats.c      \
100         summary.c       \
101         ws80211_utils.c
102
103 # corresponding headers
104 WIRESHARK_COMMON_INCLUDES =     \
105         airpcap.h       \
106         airpcap_loader.h \
107         capture.h       \
108         capture_info.h  \
109         capture_opts.h  \
110         color_filters.h \
111         filters.h       \
112         globals.h       \
113         iface_monitor.h \
114         log.h           \
115         proto_hier_stats.h      \
116         stat_menu.h     \
117         summary.h       \
118         sync_pipe.h     \
119         ws80211_utils.h
120
121 # tshark specifics
122 tshark_SOURCES =        \
123         $(SHARK_COMMON_SRC)     \
124         $(SHARK_COMMON_CAPTURE_SRC) \
125         cfile.c                 \
126         capture_opts.c          \
127         tshark.c
128
129 # tfshark specifics
130 tfshark_SOURCES =       \
131         $(SHARK_COMMON_SRC)     \
132         cfile.c                 \
133         tfshark.c
134
135 # rawshark specifics
136 rawshark_SOURCES =      \
137         $(SHARK_COMMON_SRC)     \
138         cfile.c                 \
139         rawshark.c
140
141 # text2pcap specifics
142 text2pcap_SOURCES = \
143         pcapio.c \
144         text2pcap.c \
145         text2pcap-scanner.l
146
147 text2pcap_INCLUDES = \
148         pcapio.h \
149         text2pcap.h
150
151 # mergecap specifics
152 mergecap_SOURCES = \
153         mergecap.c
154
155 # editcap specifics
156 editcap_SOURCES = \
157         editcap.c
158
159 # reordercap specifics
160 reordercap_SOURCES = \
161         reordercap.c \
162         svnversion.h
163
164 # capinfos specifics
165 capinfos_SOURCES = \
166         capinfos.c
167
168 # captype specifics
169 captype_SOURCES = \
170         captype.c
171
172 # dftest specifics
173 dftest_SOURCES =        \
174         dftest.c
175
176 # randpkt specifics
177 randpkt_SOURCES = \
178         randpkt.c
179
180 # dumpcap specifics
181 dumpcap_SOURCES =       \
182         $(PLATFORM_CAPTURE_SRC) \
183         capture_opts.c  \
184         capture-pcap-util.c     \
185         capture_stop_conditions.c       \
186         cfutils.c       \
187         clopts_common.c \
188         conditions.c    \
189         dumpcap.c       \
190         pcapio.c        \
191         ringbuffer.c    \
192         sync_pipe_write.c       \
193         version_info.c  \
194         ws80211_utils.c
195
196 # corresponding headers
197 dumpcap_INCLUDES = \
198         capture_stop_conditions.h       \
199         conditions.h    \
200         pcapio.h        \
201         ringbuffer.h
202
203 # this target needed for distribution only
204 noinst_HEADERS =        \
205         $(SHARK_COMMON_INCLUDES) \
206         $(SHARK_COMMON_CAPTURE_INCLUDES) \
207         $(WIRESHARK_COMMON_INCLUDES) \
208         $(dumpcap_INCLUDES)