From ENDOH Akira:
[obnox/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 # Ethereal - Network traffic analyzer
9 # By Gerald Combs <gerald@ethereal.com>
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         tethereal-tap-register.c
43
44 # All the generated files.
45 GENERATED_FILES = $(GENERATED_C_FILES) $(GENERATED_HEADER_FILES)
46
47 # sources common for ethereal and tethereal
48 ETHEREAL_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         ringbuffer.c    \
62         timestats.c     \
63         util.c  \
64         version_info.c
65
66 # corresponding headers
67 ETHEREAL_COMMON_INCLUDES =      \
68         svnversion.h            \
69         capture_errs.h  \
70         capture-pcap-util.h     \
71         capture-pcap-util-int.h \
72         capture_stop_conditions.h       \
73         capture_ui_utils.h      \
74         cfile.h \
75         clopts_common.h \
76         cmdarg_err.h    \
77         color.h \
78         conditions.h    \
79         disabled_protos.h       \
80         file.h  \
81         fileset.h       \
82         isprint.h       \
83         packet-range.h  \
84         print.h \
85         ps.h    \
86         register.h      \
87         ringbuffer.h    \
88         timestats.h     \
89         util.h  \
90         version_info.h
91
92 # sources for Tethereal taps
93 TETHEREAL_TAP_SRC =     \
94         tap-afpstat.c   \
95         tap-ansi_astat.c        \
96         tap-bootpstat.c \
97         tap-dcerpcstat.c        \
98         tap-gsm_astat.c \
99         tap-h225counter.c       \
100         tap-h225rassrt.c        \
101         tap-httpstat.c  \
102         tap-iostat.c    \
103         tap-iousers.c   \
104         tap-mgcpstat.c  \
105         tap-protocolinfo.c      \
106         tap-protohierstat.c     \
107         tap-rpcstat.c   \
108         tap-rpcprogs.c  \
109         tap-sctpchunkstat.c     \
110         tap-sipstat.c \
111         tap-smbsids.c   \
112         tap-smbstat.c   \
113         tap-stats_tree.c        \
114         tap-wspstat.c
115
116 # helpers already available on some platforms (and on others not)
117 EXTRA_ethereal_SOURCES =        \
118         snprintf.c      \
119         strerror.c      \
120         strcasecmp.c    \
121         strncasecmp.c   \
122         mkstemp.c       \
123         strptime.c
124
125 # corresponding headers
126 EXTRA_ethereal_INCLUDES =       \
127         snprintf.h      \
128         snprintf-imp.h  \
129         strerror.h      \
130         mkstemp.h       \
131         strptime.h
132
133 # ethereal specifics
134 ethereal_SOURCES =      \
135         $(ETHEREAL_COMMON_SRC)  \
136         alert_box.c     \
137         capture.c       \
138         capture_info.c  \
139         capture_loop.c  \
140         capture_opts.c \
141         capture_sync.c  \
142         color_filters.c \
143         file.c  \
144         fileset.c       \
145         filters.c       \
146         g711.c \
147         merge.c \
148         proto_hier_stats.c      \
149         summary.c
150
151 # corresponding headers
152 ethereal_INCLUDES =     \
153         alert_box.h     \
154         capture.h       \
155         capture_info.h  \
156         capture_loop.h  \
157         capture_opts.h  \
158         capture_sync.h  \
159         color_filters.h \
160         filters.h       \
161         g711.h  \
162         globals.h       \
163         log.h   \
164         main_window.h   \
165         menu.h  \
166         merge.h \
167         progress_dlg.h  \
168         proto_hier_stats.h      \
169         simple_dialog.h \
170         stat_menu.h     \
171         statusbar.h     \
172         summary.h       \
173         tap_dfilter_dlg.h       \
174         ui_util.h
175
176 # tethereal specifics
177 tethereal_SOURCES =     \
178         $(ETHEREAL_COMMON_SRC)  \
179         $(TETHEREAL_TAP_SRC)    \
180         capture_opts.c          \
181         capture_loop.c  \
182         tethereal-tap-register.c        \
183         tethereal.c
184
185 # text2pcap specifics
186 text2pcap_SOURCES = \
187         text2pcap.c \
188         text2pcap-scanner.l
189
190 # mergecap specifics
191 mergecap_SOURCES = \
192         mergecap.c \
193         merge.c \
194         svnversion.h
195
196 # editcap specifics
197 editcap_SOURCES = \
198         editcap.c
199
200 # dftest specifics
201 dftest_SOURCES =        \
202         dftest.c        \
203         util.c
204
205 # randpkt specifics
206 randpkt_SOURCES = \
207         randpkt.c
208
209 # dumpcap specifics
210 dumpcap_SOURCES =       \
211         $(PLATFORM_SRC) \
212         capture-pcap-util.c     \
213         capture_stop_conditions.c       \
214         getopt.c        \
215         clopts_common.c \
216         conditions.c    \
217         ringbuffer.c    \
218         util.c  \
219         version_info.c \
220         capture_opts.c \
221         capture_loop.c  \
222         dumpcap.c
223
224
225 # this target needed for distribution only
226 noinst_HEADERS =        \
227         $(ETHEREAL_COMMON_INCLUDES) \
228         $(ethereal_INCLUDES) \
229         $(EXTRA_ethereal_INCLUDES)
230