From Olivier Jacques: Add #defines to disable XML validation.
[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 # Header files for dissector helpers
27 # XXX - these should be moved to epan/dissectors
28 DISSECTOR_SUPPORT_INCLUDES =    \
29         aftypes.h       \
30         arcnet_pids.h   \
31         asn1.h  \
32         bridged_pids.h  \
33         chdlctypes.h    \
34         etypes.h        \
35         follow.h        \
36         format-oid.h    \
37         greproto.h      \
38         h225-persistentdata.h   \
39         iax2_codec_type.h       \
40         ip_opts.h       \
41         isprint.h       \
42         lapd_sapi.h     \
43         llcsaps.h       \
44         nlpid.h \
45         oui.h   \
46         ppptypes.h      \
47         ptvcursor.h     \
48         reassemble.h    \
49         rpc_defrag.h    \
50         rtp_pt.h        \
51         sctpppids.h     \
52         smb.h   \
53         x264_prt_id.h   \
54         xmlstub.h
55
56 # "BUILT_SOURCES" are built before any "make all" or "make check" targets.
57 BUILT_SOURCES =         \
58         svnversion.h \
59         ps.c
60
61 # sources common for ethereal and tethereal
62 ETHEREAL_COMMON_SRC =   \
63         $(PLATFORM_SRC) \
64         capture_stop_conditions.c       \
65         cfile.c \
66         clopts_common.c \
67         conditions.c    \
68         disabled_protos.c       \
69         packet-range.c  \
70         pcap-util.c     \
71         print.c \
72         ps.c    \
73         ringbuffer.c    \
74         timestats.c     \
75         util.c  \
76         version_info.c
77
78 # corresponding headers
79 ETHEREAL_COMMON_INCLUDES =      \
80         $(DISSECTOR_SUPPORT_INCLUDES)   \
81         svnversion.h            \
82         capture_stop_conditions.h       \
83         cfile.h \
84         clopts_common.h \
85         color.h \
86         conditions.h    \
87         disabled_protos.h       \
88         file.h  \
89         packet-range.h  \
90         pcap-util.h     \
91         pcap-util-int.h \
92         print.h \
93         ps.h    \
94         register.h      \
95         ringbuffer.h    \
96         timestats.h     \
97         util.h  \
98         version_info.h
99
100 # sources for Tethereal taps
101 TETHEREAL_TAP_SRC =     \
102         tap-ansi_astat.c        \
103         tap-bootpstat.c \
104         tap-dcerpcstat.c        \
105         tap-gsm_astat.c \
106         tap-h225counter.c       \
107         tap-h225rassrt.c        \
108         tap-httpstat.c  \
109         tap-iostat.c    \
110         tap-iousers.c   \
111         tap-mgcpstat.c  \
112         tap-protocolinfo.c      \
113         tap-protohierstat.c     \
114         tap-rpcstat.c   \
115         tap-rpcprogs.c  \
116         tap-sipstat.c \
117         tap-smbsids.c   \
118         tap-smbstat.c   \
119         tap-wspstat.c
120
121 # helpers alraedy available on some platforms (and on others not)
122 EXTRA_ethereal_SOURCES =        \
123         snprintf.c      \
124         strerror.c      \
125         strcasecmp.c    \
126         strncasecmp.c   \
127         mkstemp.c       \
128         strptime.c
129
130 # corresponding headers
131 EXTRA_ethereal_INCLUDES =       \
132         snprintf.h      \
133         snprintf-imp.h  \
134         strerror.h      \
135         mkstemp.h       \
136         strptime.h
137
138 # ethereal specifics
139 ethereal_SOURCES =      \
140         $(ETHEREAL_COMMON_SRC)  \
141         alert_box.c     \
142         capture.c       \
143         capture_combo_utils.c   \
144         color_filters.c \
145         file.c  \
146         filters.c       \
147         g711.c \
148         merge.c \
149         proto_hier_stats.c      \
150         summary.c
151
152 # corresponding headers
153 ethereal_INCLUDES =     \
154         alert_box.h     \
155         capture.h       \
156         capture_combo_utils.h   \
157         color_filters.h \
158         filters.h       \
159         g711.h  \
160         globals.h       \
161         menu.h  \
162         merge.h \
163         progress_dlg.h  \
164         proto_hier_stats.h      \
165         simple_dialog.h \
166         statusbar.h     \
167         summary.h       \
168         tap_dfilter_dlg.h       \
169         ui_util.h
170
171 # tethereal specifics
172 tethereal_SOURCES =     \
173         $(ETHEREAL_COMMON_SRC)  \
174         $(TETHEREAL_TAP_SRC)    \
175         tethereal-tap-register.c        \
176         tethereal.c
177
178 # text2pcap specifics
179 text2pcap_SOURCES = \
180         text2pcap.c \
181         text2pcap-scanner.l
182
183 # mergecap specifics
184 mergecap_SOURCES = \
185         mergecap.c \
186         merge.c \
187         svnversion.h
188
189 # editcap specifics
190 editcap_SOURCES = \
191         editcap.c
192
193 # dftest specifics
194 dftest_SOURCES =        \
195         dftest.c        \
196         util.c
197
198 # randpkt specifics
199 randpkt_SOURCES = \
200         randpkt.c
201
202 # this target needed for distribution only
203 noinst_HEADERS =        \
204         $(DISSECTOR_SUPPORT_INCLUDES) \
205         $(ETHEREAL_COMMON_INCLUDES) \
206         $(ethereal_INCLUDES) \
207         $(EXTRA_ethereal_INCLUDES)
208