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