2 # Automake file for the EPAN library
3 # (Ethereal Protocol ANalyzer Library)
7 # Wireshark - Network traffic analyzer
8 # By Gerald Combs <gerald@wireshark.org>
9 # Copyright 1998 Gerald Combs
11 # This program is free software; you can redistribute it and/or
12 # modify it under the terms of the GNU General Public License
13 # as published by the Free Software Foundation; either version 2
14 # of the License, or (at your option) any later version.
16 # This program is distributed in the hope that it will be useful,
17 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 # GNU General Public License for more details.
21 # You should have received a copy of the GNU General Public License
22 # along with this program; if not, write to the Free Software
23 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25 include ../Makefile.am.inc
28 wslua_lib = wslua/libwslua.la
34 wslua_dist_dir = wslua
38 SUBDIRS = crypt ftypes dfilter dissectors $(wslua_dir)
40 DIST_SUBDIRS = $(SUBDIRS) $(wslua_dist_dir)
42 ACLOCAL_AMFLAGS = `../aclocal-flags`
44 noinst_LTLIBRARIES = libwireshark_generated.la libwireshark_asmopt.la
45 lib_LTLIBRARIES = libwireshark.la
46 libwireshark_la_LDFLAGS = -version-info 0:1:0 @LDFLAGS_SHAREDLIB@
48 include Makefile.common
50 INCLUDES = -I$(srcdir)/.. -I$(srcdir)/$(LEMON) @LUA_INCLUDES@ \
51 $(LIBGNUTLS_CFLAGS) $(LIBGCRYPT_CFLAGS) $(LIBSMI_CFLAGS)
54 if HAVE_WARNINGS_AS_ERRORS
55 AM_NON_GENERATED_CFLAGS = -Werror
58 #Since code generated by lex may trigger gcc warnings, we are now generating two
59 #libraries. A single library is generated with the lex code without the barrier
60 #"stop on warning". An other library is generated from the remaining source
61 #files with the "stop on warning" barrier.
62 libwireshark_la_SOURCES = \
64 $(LIBWIRESHARK_INCLUDES)
65 libwireshark_la_CFLAGS = $(AM_NON_GENERATED_CFLAGS)
67 libwireshark_generated_la_SOURCES = \
68 $(LIBWIRESHARK_GENERATED_SRC) \
69 $(LIBWIRESHARK_GENERATED_INCLUDES)
71 # code optionally implemented in assembler
72 # only C source available for platforms other than Win32
73 libwireshark_asmopt_la_SOURCES = \
76 asm_utils_win32_x86.asm
78 EXTRA_libwireshark_la_SOURCES = \
103 libwireshark_generated.a \
104 libwireshark_generated.la \
105 libwireshark_asmopt.a \
106 libwireshark_asmopt.la \
110 $(LIBWIRESHARK_DISTCLEAN_GENERATED_SRC) \
111 $(LIBWIRESHARK_DISTCLEAN_GENERATED_INCLUDES) \
114 MAINTAINERCLEANFILES = \
115 $(LIBWIRESHARK_NODISTCLEAN_GENERATED_SRC) \
116 $(LIBWIRESHARK_NODISTCLEAN_GENERATED_INCLUDES) \
121 # Add the object files for missing routines, if any.
123 libwireshark_la_LIBADD = \
124 @INET_ATON_LO@ @INET_PTON_LO@ @INET_NTOP_LO@ libwireshark_generated.la \
125 libwireshark_asmopt.la crypt/libairpdcap.la ftypes/libftypes.la \
126 dfilter/libdfilter.la dissectors/libcleandissectors.la \
127 dissectors/libdissectors.la dissectors/libasndissectors.la \
128 dissectors/libpidldissectors.la $(wslua_lib) @SOCKET_LIBS@ @NSL_LIBS@ \
129 @ADNS_LIBS@ @LIBGCRYPT_LIBS@ @LIBGNUTLS_LIBS@ @LIBICONV@ @KRB5_LIBS@ \
130 @SSL_LIBS@ @LIBSMI_LDFLAGS@ -lm
131 libwireshark_la_DEPENDENCIES = \
132 @INET_ATON_LO@ @INET_PTON_LO@ @INET_NTOP_LO@ libwireshark_generated.la \
133 libwireshark_asmopt.la crypt/libairpdcap.la ftypes/libftypes.la \
134 dfilter/libdfilter.la dissectors/libcleandissectors.la \
135 dissectors/libdissectors.la dissectors/libasndissectors.la \
136 dissectors/libpidldissectors.la $(wslua_lib)
138 #EXTRA_PROGRAMS = reassemble_test
139 #reassemble_test_LDADD = $(GLIB_LIBS)
141 reassemble_test: reassemble_test.o tvbuff.o except.o strutil.o emem.o \
143 $(LINK) $^ $(GLIB_LIBS) -lz
145 tvbtest: tvbtest.o tvbuff.o except.o strutil.o emem.o
146 $(LINK) $^ $(GLIB_LIBS) -lz
148 exntest: exntest.o except.o
149 $(LINK) $^ $(GLIB_LIBS)
151 RUNLEX=$(top_srcdir)/tools/runlex.sh
153 diam_dict_lex.h: diam_dict.c
155 dtd_parse_lex.h: dtd_parse.c
157 dtd_preparse_lex.h: dtd_preparse.c
159 radius_dict_lex.h: radius_dict.c
161 uat_load_lex.h: uat_load.c
165 dtd_grammar.h: dtd_grammar.c
167 dtd_grammar.c: $(LEMON)/lemon$(EXEEXT) $(srcdir)/$(LEMON)/lempar.c $(srcdir)/dtd_grammar.lemon
168 $(LEMON)/lemon$(EXEEXT) t=$(srcdir)/$(LEMON)/lempar.c $(srcdir)/dtd_grammar.lemon
170 tvbtest.o exntest.o: exceptions.h
172 sminmpec.c: enterprise-numbers make-sminmpec.pl
173 $(PERL) $(srcdir)/make-sminmpec.pl $(srcdir)/enterprise-numbers sminmpec.c
180 ../plugins/artnet/packet-artnet.c \
181 ../plugins/asn1/packet-asn1.c \
182 ../plugins/docsis/packet-bpkmattr.c \
183 ../plugins/docsis/packet-bpkmreq.c \
184 ../plugins/docsis/packet-bpkmrsp.c \
185 ../plugins/docsis/packet-docsis.c \
186 ../plugins/docsis/packet-dsaack.c \
187 ../plugins/docsis/packet-dsareq.c \
188 ../plugins/docsis/packet-dsarsp.c \
189 ../plugins/docsis/packet-dscack.c \
190 ../plugins/docsis/packet-dscreq.c \
191 ../plugins/docsis/packet-dscrsp.c \
192 ../plugins/docsis/packet-dsdreq.c \
193 ../plugins/docsis/packet-dsdrsp.c \
194 ../plugins/docsis/packet-intrngreq.c \
195 ../plugins/docsis/packet-macmgmt.c \
196 ../plugins/docsis/packet-map.c \
197 ../plugins/docsis/packet-regack.c \
198 ../plugins/docsis/packet-regreq.c \
199 ../plugins/docsis/packet-regrsp.c \
200 ../plugins/docsis/packet-rngreq.c \
201 ../plugins/docsis/packet-rngrsp.c \
202 ../plugins/docsis/packet-tlv.c \
203 ../plugins/docsis/packet-type29ucd.c \
204 ../plugins/docsis/packet-uccreq.c \
205 ../plugins/docsis/packet-uccrsp.c \
206 ../plugins/docsis/packet-ucd.c \
207 ../plugins/enttec/packet-enttec.c \
208 ../plugins/giop/packet-cosnaming.c \
209 ../plugins/giop/packet-coseventcomm.c \
210 ../plugins/gryphon/packet-gryphon.c \
211 ../plugins/infiniband/packet-infiniband.c \
212 ../plugins/irda/packet-irda.c \
213 ../plugins/lwres/packet-lwres.c \
214 ../plugins/m2m/packet-m2m.c \
215 ../plugins/m2m/wimax_tlv.c \
216 ../plugins/mgcp/packet-mgcp.c \
217 ../plugins/pcli/packet-pcli.c \
218 ../plugins/rdm/packet-rdm.c \
219 ../plugins/rtnet/packet-rtnet.c \
220 ../plugins/sercosiii/packet-sercosiii_1v1_at.c \
221 ../plugins/sercosiii/packet-sercosiii_1v1_at_devstat.c \
222 ../plugins/sercosiii/packet-sercosiii_1v1.c \
223 ../plugins/sercosiii/packet-sercosiii_1v1_hp.c \
224 ../plugins/sercosiii/packet-sercosiii_1v1_mdt.c \
225 ../plugins/sercosiii/packet-sercosiii_1v1_mdt_devctrl.c \
226 ../plugins/sercosiii/packet-sercosiii_1v1_mst.c \
227 ../plugins/sercosiii/packet-sercosiii_1v1_svc.c \
228 ../plugins/v5ua/packet-v5ua.c \
229 ../plugins/wimax/crc.c \
230 ../plugins/wimax/crc_data.c \
231 ../plugins/wimax/mac_hd_generic_decoder.c \
232 ../plugins/wimax/mac_hd_type1_decoder.c \
233 ../plugins/wimax/mac_hd_type2_decoder.c \
234 ../plugins/wimax/mac_mgmt_msg_decoder.c \
235 ../plugins/wimax/msg_aas_beam.c \
236 ../plugins/wimax/msg_aas_fbck.c \
237 ../plugins/wimax/msg_arq.c \
238 ../plugins/wimax/msg_clk_cmp.c \
239 ../plugins/wimax/msg_dcd.c \
240 ../plugins/wimax/msg_dlmap.c \
241 ../plugins/wimax/msg_dreg.c \
242 ../plugins/wimax/msg_dsa.c \
243 ../plugins/wimax/msg_dsc.c \
244 ../plugins/wimax/msg_dsd.c \
245 ../plugins/wimax/msg_dsx_rvd.c \
246 ../plugins/wimax/msg_fpc.c \
247 ../plugins/wimax/msg_pkm.c \
248 ../plugins/wimax/msg_pmc.c \
249 ../plugins/wimax/msg_prc_lt_ctrl.c \
250 ../plugins/wimax/msg_reg_req.c \
251 ../plugins/wimax/msg_reg_rsp.c \
252 ../plugins/wimax/msg_rep.c \
253 ../plugins/wimax/msg_res_cmd.c \
254 ../plugins/wimax/msg_rng_req.c \
255 ../plugins/wimax/msg_rng_rsp.c \
256 ../plugins/wimax/msg_sbc.c \
257 ../plugins/wimax/msg_ucd.c \
258 ../plugins/wimax/msg_ulmap.c \
259 ../plugins/wimax/packet-wmx.c \
260 ../plugins/wimax/wimax_cdma_code_decoder.c \
261 ../plugins/wimax/wimax_compact_dlmap_ie_decoder.c \
262 ../plugins/wimax/wimax_compact_ulmap_ie_decoder.c \
263 ../plugins/wimax/wimax_fch_decoder.c \
264 ../plugins/wimax/wimax_ffb_decoder.c \
265 ../plugins/wimax/wimax_hack_decoder.c \
266 ../plugins/wimax/wimax_harq_map_decoder.c \
267 ../plugins/wimax/wimax_pdu_decoder.c \
268 ../plugins/wimax/wimax_phy_attributes_decoder.c \
269 ../plugins/wimax/wimax_tlv.c \
270 ../plugins/wimax/wimax_utils.c
277 endif # ENABLE_STATIC
286 $(DOXYGEN) doxygen.cfg