2 # Automake file for the libwireshark library
3 # (EPAN is a historical name; it stands for Ethereal Protocol ANalyzer
6 # Wireshark - Network traffic analyzer
7 # By Gerald Combs <gerald@wireshark.org>
8 # Copyright 1998 Gerald Combs
10 # This program is free software; you can redistribute it and/or
11 # modify it under the terms of the GNU General Public License
12 # as published by the Free Software Foundation; either version 2
13 # of the License, or (at your option) any later version.
15 # This program is distributed in the hope that it will be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 # GNU General Public License for more details.
20 # You should have received a copy of the GNU General Public License
21 # along with this program; if not, write to the Free Software
22 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
24 include $(top_srcdir)/Makefile.am.inc
27 wslua_lib = wslua/libwslua.la
33 wslua_dist_dir = wslua
36 SUBDIRS = compress crypt ftypes dfilter dissectors nghttp2 wmem $(wslua_dir)
38 DIST_SUBDIRS = $(SUBDIRS) $(wslua_dist_dir)
40 AM_CPPFLAGS = $(INCLUDEDIRS) -I$(builddir)/wslua $(WS_CPPFLAGS) \
41 $(GLIB_CFLAGS) $(LUA_CFLAGS) $(LIBGNUTLS_CFLAGS) \
42 $(LIBGCRYPT_CFLAGS) $(LIBSMI_CFLAGS) $(LIBGEOIP_CFLAGS) \
45 noinst_LTLIBRARIES = libwireshark_generated.la libwireshark_asmopt.la
46 lib_LTLIBRARIES = libwireshark.la
56 capture_dissectors.c \
63 conversation_table.c \
80 filter_expressions.c \
83 frame_data_sequence.c \
85 g_int64_hash_routines.c \
134 # We distribute Lemon and rdps.py with Wireshark, so we don't distribute the
135 # files they produce.
137 NODIST_LIBWIRESHARK_GENERATED_C_FILES = \
141 NODIST_LIBWIRESHARK_GENERATED_HEADER_FILES = \
145 # These don't get removed on "make distclean", as the tools we use to
146 # generate them aren't part of the Wireshark distribution, and aren't
147 # tools assumed to be present for any system capable of compiling
148 # from a tarball (e.g., make and a C compiler are assumed to be present,
151 LIBWIRESHARK_GENERATED_C_FILES = \
158 LIBWIRESHARK_GENERATED_HEADER_FILES = \
165 LIBWIRESHARK_GENERATED_SRC = \
166 $(LIBWIRESHARK_GENERATED_C_FILES) \
167 $(NODIST_LIBWIRESHARK_GENERATED_C_FILES)
169 LIBWIRESHARK_ALL_SRC = \
170 $(LIBWIRESHARK_SRC) \
171 $(LIBWIRESHARK_GENERATED_SRC)
173 LIBWIRESHARK_INCLUDES = \
186 capture_dissectors.h \
195 conversation_debug.h \
196 conversation_table.h \
206 dissector_filters.h \
212 eapol_keydes_types.h \
223 filter_expressions.h \
226 frame_data_sequence.h \
228 g_int64_hash_routines.h \
268 slow_protocol_subtypes.h \
295 #Since code generated by lex may trigger gcc warnings, we are now generating two
296 #libraries. A single library is generated with the lex code without the barrier
297 #"stop on warning". An other library is generated from the remaining source
298 #files with the "stop on warning" barrier.
299 libwireshark_la_SOURCES = \
300 $(LIBWIRESHARK_SRC) \
301 $(LIBWIRESHARK_INCLUDES) \
304 libwireshark_la_CPPFLAGS = $(AM_CPPFLAGS) -DWS_BUILD_DLL
306 # http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
307 libwireshark_la_LDFLAGS = -version-info 0:0:0 @LDFLAGS_SHAREDLIB@
310 # Add the object files for missing routines, if any.
312 libwireshark_la_LIBADD = \
313 libwireshark_generated.la \
314 libwireshark_asmopt.la \
315 crypt/libairpdcap.la \
316 ftypes/libftypes.la \
317 dfilter/libdfilter.la \
318 dissectors/libdissectors.la \
319 dissectors/libdirtydissectors.la \
320 dissectors/libfiledissectors.la \
321 nghttp2/libnghttp2.la \
324 ${top_builddir}/wiretap/libwiretap.la \
325 ${top_builddir}/wsutil/libwsutil.la \
335 libwireshark_la_DEPENDENCIES = \
336 libwireshark_generated.la \
337 compress/liblzxpress.la \
338 libwireshark_asmopt.la \
339 crypt/libairpdcap.la \
340 ftypes/libftypes.la \
341 dfilter/libdfilter.la \
342 dissectors/libdissectors.la \
343 dissectors/libdirtydissectors.la \
344 nghttp2/libnghttp2.la \
347 ${top_builddir}/wsutil/libwsutil.la \
348 ${top_builddir}/wiretap/libwiretap.la
350 libwireshark_generated_la_SOURCES = \
351 $(LIBWIRESHARK_GENERATED_C_FILES) \
352 $(LIBWIRESHARK_GENERATED_HEADER_FILES)
354 nodist_libwireshark_generated_la_SOURCES = \
355 $(NODIST_LIBWIRESHARK_GENERATED_C_FILES) \
356 $(NODIST_LIBWIRESHARK_GENERATED_HEADER_FILES)
358 libwireshark_generated_la_CFLAGS = $(GENERATED_CFLAGS)
360 # code optionally implemented in assembler
361 # only C source available for platforms other than Win32
362 libwireshark_asmopt_la_SOURCES = \
365 asm_utils_win32_x86.asm
385 libwireshark_generated.a \
386 libwireshark_generated.la \
387 libwireshark_asmopt.a \
388 libwireshark_asmopt.la \
392 $(NODIST_LIBWIRESHARK_GENERATED_C_FILES) \
393 $(NODIST_LIBWIRESHARK_GENERATED_HEADER_FILES) \
397 MAINTAINERCLEANFILES = \
398 $(LIBWIRESHARK_GENERATED_C_FILES) \
399 $(LIBWIRESHARK_GENERATED_HEADER_FILES) \
403 $(LIBWIRESHARK_GENERATED_HEADER_FILES) \
404 $(NODIST_LIBWIRESHARK_GENERATED_HEADER_FILES) \
407 EXTRA_PROGRAMS = reassemble_test tvbtest oids_test exntest
409 reassemble_test_LDADD = \
424 exntest_SOURCES = exntest.c except.c
426 exntest_LDADD = $(GLIB_LIBS)
428 test-programs: $(EXTRA_PROGRAMS)
431 diam_dict_lex.h: diam_dict.c
433 dtd_parse_lex.h: dtd_parse.c
435 dtd_preparse_lex.h: dtd_preparse.c
437 radius_dict_lex.h: radius_dict.c
439 uat_load_lex.h: uat_load.c
441 dtd_grammar.h: dtd_grammar.c
442 dtd_grammar.c : $(LEMON) $(lemon_srcdir)/lempar.c $(srcdir)/dtd_grammar.lemon
443 $(AM_V_LEMON)$(LEMON) T=$(lemon_srcdir)/lempar.c $(srcdir)/dtd_grammar.lemon
445 ws_version_info.c: $(top_srcdir)/ws_version_info.c
446 $(AM_V_LN_S)$(LN_S) $<
448 tvbtest.o exntest.o oids_test.o: exceptions.h
451 $(PERL) $(srcdir)/../tools/make-sminmpec.pl
453 ps.c: print.ps $(top_srcdir)/tools/rdps.py
454 $(AM_V_python)$(PYTHON) $(top_srcdir)/tools/rdps.py $(srcdir)/print.ps ps.c
459 -include ../plugins/Custom.make
461 ../plugins/asn1/packet-asn1.c \
462 ../plugins/docsis/packet-bintrngreq.c \
463 ../plugins/docsis/packet-bpkmattr.c \
464 ../plugins/docsis/packet-bpkmreq.c \
465 ../plugins/docsis/packet-bpkmrsp.c \
466 ../plugins/docsis/packet-docsis.c \
467 ../plugins/docsis/packet-dsaack.c \
468 ../plugins/docsis/packet-dsareq.c \
469 ../plugins/docsis/packet-dsarsp.c \
470 ../plugins/docsis/packet-dscack.c \
471 ../plugins/docsis/packet-dscreq.c \
472 ../plugins/docsis/packet-dscrsp.c \
473 ../plugins/docsis/packet-dsdreq.c \
474 ../plugins/docsis/packet-dsdrsp.c \
475 ../plugins/docsis/packet-intrngreq.c \
476 ../plugins/docsis/packet-macmgmt.c \
477 ../plugins/docsis/packet-map.c \
478 ../plugins/docsis/packet-regack.c \
479 ../plugins/docsis/packet-regreq.c \
480 ../plugins/docsis/packet-regrsp.c \
481 ../plugins/docsis/packet-rngreq.c \
482 ../plugins/docsis/packet-rngrsp.c \
483 ../plugins/docsis/packet-tlv.c \
484 ../plugins/docsis/packet-type29ucd.c \
485 ../plugins/docsis/packet-uccreq.c \
486 ../plugins/docsis/packet-uccrsp.c \
487 ../plugins/docsis/packet-ucd.c \
488 ../plugins/gryphon/packet-gryphon.c \
489 ../plugins/irda/packet-irda.c \
490 ../plugins/m2m/packet-m2m.c \
491 ../plugins/m2m/wimax_tlv.c \
492 ../plugins/wimax/crc.c \
493 ../plugins/wimax/crc_data.c \
494 ../plugins/wimax/mac_hd_generic_decoder.c \
495 ../plugins/wimax/mac_hd_type1_decoder.c \
496 ../plugins/wimax/mac_hd_type2_decoder.c \
497 ../plugins/wimax/mac_mgmt_msg_decoder.c \
498 ../plugins/wimax/msg_aas_beam.c \
499 ../plugins/wimax/msg_aas_fbck.c \
500 ../plugins/wimax/msg_arq.c \
501 ../plugins/wimax/msg_clk_cmp.c \
502 ../plugins/wimax/msg_dcd.c \
503 ../plugins/wimax/msg_dlmap.c \
504 ../plugins/wimax/msg_dreg.c \
505 ../plugins/wimax/msg_dsa.c \
506 ../plugins/wimax/msg_dsc.c \
507 ../plugins/wimax/msg_dsd.c \
508 ../plugins/wimax/msg_dsx_rvd.c \
509 ../plugins/wimax/msg_fpc.c \
510 ../plugins/wimax/msg_pkm.c \
511 ../plugins/wimax/msg_pmc.c \
512 ../plugins/wimax/msg_prc_lt_ctrl.c \
513 ../plugins/wimax/msg_reg_req.c \
514 ../plugins/wimax/msg_reg_rsp.c \
515 ../plugins/wimax/msg_rep.c \
516 ../plugins/wimax/msg_res_cmd.c \
517 ../plugins/wimax/msg_rng_req.c \
518 ../plugins/wimax/msg_rng_rsp.c \
519 ../plugins/wimax/msg_sbc.c \
520 ../plugins/wimax/msg_ucd.c \
521 ../plugins/wimax/msg_ulmap.c \
522 ../plugins/wimax/packet-wmx.c \
523 ../plugins/wimax/wimax_cdma_code_decoder.c \
524 ../plugins/wimax/wimax_compact_dlmap_ie_decoder.c \
525 ../plugins/wimax/wimax_compact_ulmap_ie_decoder.c \
526 ../plugins/wimax/wimax_fch_decoder.c \
527 ../plugins/wimax/wimax_ffb_decoder.c \
528 ../plugins/wimax/wimax_hack_decoder.c \
529 ../plugins/wimax/wimax_harq_map_decoder.c \
530 ../plugins/wimax/wimax_pdu_decoder.c \
531 ../plugins/wimax/wimax_phy_attributes_decoder.c \
532 ../plugins/wimax/wimax_tlv.c \
533 ../plugins/wimax/wimax_utils.c
540 endif # ENABLE_STATIC
549 $(AM_V_GEN)$(DOXYGEN) doxygen.cfg
552 wsar_html: doxygen.cfg ../doxygen_global.cfg
554 (umask 022 ; $(DOXYGEN) doxygen.cfg)
557 # ABI compliance checker can be obtained from
558 # http://ispras.linux-foundation.org/index.php/ABI_compliance_checker
559 # Checked using version 1.21.12
560 dumpabi-libwireshark: all abi-descriptor.xml
561 rm -rf abi-check-headers abi_dumps .libs/*.abi.tar.gz
562 mkdir abi-check-headers
563 cp ../config.h ../register.h abi-check-headers/
564 mkdir abi-check-headers/epan
565 cp *.h abi-check-headers/epan
566 mkdir abi-check-headers/crypt
567 cp crypt/*.h abi-check-headers/crypt
568 mkdir abi-check-headers/compress
569 cp compress/*.h abi-check-headers/compress
570 mkdir abi-check-headers/dfilter
571 cp dfilter/*.h ../tools/lemon/cppmagic.h abi-check-headers/dfilter
572 mkdir abi-check-headers/dissectors
573 cp dissectors/*.h abi-check-headers/dissectors
575 abi-check-headers/dissectors/x11-extension-implementation.h \
576 abi-check-headers/dissectors/x11-glx-render-enum.h \
577 abi-check-headers/dissectors/x11-register-info.h \
578 abi-check-headers/dissectors/packet-idmp.h
579 mkdir abi-check-headers/ftypes
580 cp ftypes/*.h abi-check-headers/ftypes
581 mkdir abi-check-headers/wmem
582 cp wmem/*.h abi-check-headers/wmem
583 abi-compliance-checker -log-path abi_logs/log.txt -l libwireshark -v1 `readlink .libs/libwireshark.so | sed 's/.*\.so\.//'` \
584 -relpath $(abs_srcdir) -dump-abi abi-descriptor.xml || \
585 cat abi_logs/log.txt logs/libwireshark/[0-9]*/log.txt
586 cp -f abi_dumps/libwireshark/libwireshark_* .libs/
587 cd .libs && ln -sf libwireshark_*.abi.tar.gz libwireshark.abi.tar.gz
589 maintainer-clean-local: clean-dumpabi-libwireshark
591 .PHONY: clean-dumpabi-libwireshark
593 clean-dumpabi-libwireshark:
594 rm -rf abi-check-headers abi_dumps .libs/*.abi.tar.gz abi_logs abi-descriptor.xml
597 $(AM_V_GEN)$(PERL) $(top_srcdir)/tools/checkAPIs.pl -g termoutput -build \
598 -sourcedir=$(srcdir) \