List all plugin files for static build
[metze/wireshark/wip.git] / epan / Makefile.am
1 # Makefile.am
2 # Automake file for the libwireshark library
3 # (EPAN is a historical name; it stands for Ethereal Protocol ANalyzer
4 # Library)
5 #
6 # Wireshark - Network traffic analyzer
7 # By Gerald Combs <gerald@wireshark.org>
8 # Copyright 1998 Gerald Combs
9 #
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.
14 #
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.
19 #
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.
23
24 include $(top_srcdir)/Makefile.am.inc
25
26 if HAVE_LIBLUA
27 wslua_lib = wslua/libwslua.la
28 wslua_dir = wslua
29 wslua_dist_dir =
30 else            # HAVE_LIBLUA
31 wslua_lib =
32 wslua_dir =
33 wslua_dist_dir = wslua
34 endif           # HAVE_LIBLUA
35
36 SUBDIRS = compress crypt ftypes dfilter dissectors wmem $(wslua_dir)
37
38 DIST_SUBDIRS = $(SUBDIRS) $(wslua_dist_dir)
39
40 AM_CPPFLAGS = $(INCLUDEDIRS) -I$(builddir)/wslua $(WS_CPPFLAGS) \
41         $(GLIB_CFLAGS) $(LUA_CFLAGS) $(LIBGNUTLS_CFLAGS) \
42         $(LIBGCRYPT_CFLAGS) $(LIBSMI_CFLAGS) $(LIBGEOIP_CFLAGS) \
43         $(LZ4_CFLAGS) $(KRB5_CFLAGS) $(SNAPPY_CFLAGS) $(LIBXML2_CFLAGS)
44
45 noinst_LTLIBRARIES = libwireshark_generated.la libwireshark_asmopt.la
46 lib_LTLIBRARIES = libwireshark.la
47
48 LIBWIRESHARK_SRC = \
49         addr_and_mask.c         \
50         addr_resolv.c           \
51         address_types.c         \
52         afn.c                   \
53         aftypes.c               \
54         app_mem_usage.c         \
55         asn1.c                  \
56         capture_dissectors.c    \
57         charsets.c              \
58         circuit.c               \
59         color_filters.c         \
60         column.c                \
61         column-utils.c          \
62         conversation.c          \
63         conversation_table.c    \
64         crc10-tvb.c             \
65         crc16-tvb.c             \
66         crc32-tvb.c             \
67         crc6-tvb.c              \
68         crc8-tvb.c              \
69         decode_as.c             \
70         disabled_protos.c       \
71         dissector_filters.c     \
72         dvb_chartbl.c           \
73         dwarf.c                 \
74         epan.c                  \
75         ex-opt.c                \
76         except.c                \
77         expert.c                \
78         export_object.c         \
79         exported_pdu.c          \
80         plugin_if.c             \
81         filter_expressions.c    \
82         follow.c                \
83         frame_data.c            \
84         frame_data_sequence.c   \
85         funnel.c                \
86         geoip_db.c              \
87         golay.c                 \
88         guid-utils.c            \
89         iana_charsets.c         \
90         in_cksum.c              \
91         ipproto.c               \
92         ipv4.c                  \
93         media_params.c          \
94         next_tvb.c              \
95         oids.c                  \
96         osi-utils.c             \
97         oui.c                   \
98         packet.c                \
99         prefs.c                 \
100         print.c                 \
101         print_stream.c          \
102         proto.c                 \
103         proto_data.c            \
104         range.c                 \
105         reassemble.c            \
106         reedsolomon.c           \
107         req_resp_hdrs.c         \
108         rtd_table.c             \
109         show_exception.c        \
110         sminmpec.c              \
111         srt_table.c             \
112         stat_tap_ui.c           \
113         stats_tree.c            \
114         strutil.c               \
115         stream.c                \
116         t35.c                   \
117         tap.c                   \
118         timestamp.c             \
119         timestats.c             \
120         tfs.c                   \
121         to_str.c                \
122         tvbparse.c              \
123         tvbuff_base64.c         \
124         tvbuff_composite.c      \
125         tvbuff_real.c           \
126         tvbuff_subset.c         \
127         tvbuff_zlib.c           \
128         tvbuff.c                \
129         uat.c                   \
130         unit_strings.c          \
131         value_string.c          \
132         xdlc.c
133
134 #
135 # We distribute Lemon and rdps.py with Wireshark, so we don't distribute the
136 # files they produce.
137 #
138 NODIST_LIBWIRESHARK_GENERATED_C_FILES = \
139         dtd_grammar.c                   \
140         ps.c
141
142 NODIST_LIBWIRESHARK_GENERATED_HEADER_FILES = \
143         dtd_grammar.h
144
145 #
146 # These don't get removed on "make distclean", as the tools we use to
147 # generate them aren't part of the Wireshark distribution, and aren't
148 # tools assumed to be present for any system capable of compiling
149 # from a tarball (e.g., make and a C compiler are assumed to be present,
150 # but Flex isn't).
151 #
152 LIBWIRESHARK_GENERATED_C_FILES = \
153         diam_dict.c             \
154         dtd_parse.c             \
155         dtd_preparse.c          \
156         radius_dict.c           \
157         uat_load.c
158
159 LIBWIRESHARK_GENERATED_HEADER_FILES = \
160         diam_dict_lex.h         \
161         dtd_parse_lex.h         \
162         dtd_preparse_lex.h      \
163         radius_dict_lex.h       \
164         uat_load_lex.h
165
166 LIBWIRESHARK_GENERATED_SRC = \
167         $(LIBWIRESHARK_GENERATED_C_FILES) \
168         $(NODIST_LIBWIRESHARK_GENERATED_C_FILES)
169
170 LIBWIRESHARK_ALL_SRC = \
171         $(LIBWIRESHARK_SRC)     \
172         $(LIBWIRESHARK_GENERATED_SRC)
173
174 LIBWIRESHARK_INCLUDES = \
175         addr_and_mask.h         \
176         addr_resolv.h           \
177         address.h               \
178         address_types.h         \
179         afn.h                   \
180         aftypes.h               \
181         app_mem_usage.h         \
182         arcnet_pids.h           \
183         arptypes.h              \
184         asn1.h                  \
185         ax25_pids.h             \
186         bridged_pids.h          \
187         capture_dissectors.h    \
188         charsets.h              \
189         chdlctypes.h            \
190         circuit.h               \
191         color_filters.h         \
192         column.h                \
193         column-info.h           \
194         column-utils.h          \
195         conversation.h          \
196         conversation_debug.h    \
197         conversation_table.h    \
198         conv_id.h               \
199         crc10-tvb.h             \
200         crc16-tvb.h             \
201         crc32-tvb.h             \
202         crc6-tvb.h              \
203         crc8-tvb.h              \
204         decode_as.h             \
205         diam_dict.h             \
206         disabled_protos.h       \
207         dissector_filters.h     \
208         dtd.h                   \
209         dtd_parse.h             \
210         dvb_chartbl.h           \
211         dwarf.h                 \
212         eap.h                   \
213         eapol_keydes_types.h    \
214         epan-int.h              \
215         epan.h                  \
216         epan_dissect.h          \
217         etypes.h                \
218         ex-opt.h                \
219         except.h                \
220         exceptions.h            \
221         expert.h                \
222         export_object.h         \
223         exported_pdu.h          \
224         plugin_if.h             \
225         filter_expressions.h    \
226         follow.h                \
227         frame_data.h            \
228         frame_data_sequence.h   \
229         funnel.h                \
230         garrayfix.h             \
231         geoip_db.h              \
232         golay.h                 \
233         guid-utils.h            \
234         iana_charsets.h         \
235         iax2_codec_type.h       \
236         in_cksum.h              \
237         ip_opts.h               \
238         ipproto.h               \
239         ipv4.h                  \
240         ipv6.h                  \
241         lapd_sapi.h             \
242         llcsaps.h               \
243         media_params.h          \
244         next_tvb.h              \
245         nlpid.h                 \
246         oids.h                  \
247         osi-utils.h             \
248         oui.h                   \
249         packet.h                \
250         packet_info.h           \
251         params.h                \
252         ppptypes.h              \
253         print.h                 \
254         print_stream.h          \
255         prefs.h                 \
256         prefs-int.h             \
257         proto.h                 \
258         proto_data.h            \
259         ps.h                    \
260         ptvcursor.h             \
261         range.h                 \
262         reassemble.h            \
263         reedsolomon.h           \
264         req_resp_hdrs.h         \
265         rtd_table.h             \
266         rtp_pt.h                \
267         sctpppids.h             \
268         show_exception.h        \
269         slow_protocol_subtypes.h \
270         sminmpec.h              \
271         srt_table.h             \
272         stat_tap_ui.h           \
273         stat_groups.h           \
274         stats_tree.h            \
275         stats_tree_priv.h       \
276         stream.h                \
277         strutil.h               \
278         t35.h                   \
279         tap.h                   \
280         tap-voip.h              \
281         timestamp.h             \
282         timestats.h             \
283         tfs.h                   \
284         time_fmt.h              \
285         to_str.h                \
286         to_str-int.h            \
287         tvbparse.h              \
288         tvbuff.h                \
289         tvbuff-int.h            \
290         uat.h                   \
291         uat-int.h               \
292         unit_strings.h          \
293         value_string.h          \
294         x264_prt_id.h           \
295         xdlc.h
296
297 #Since code generated by lex may trigger gcc warnings, we are now generating two
298 #libraries. A single library is generated with the lex code without the barrier
299 #"stop on warning". An other library is generated from the remaining source
300 #files with the "stop on warning" barrier.
301 libwireshark_la_SOURCES = \
302         $(LIBWIRESHARK_SRC)             \
303         $(LIBWIRESHARK_INCLUDES)        \
304         ws_version_info.c
305
306 libwireshark_la_CPPFLAGS = $(AM_CPPFLAGS) -DWS_BUILD_DLL
307
308 # http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
309 libwireshark_la_LDFLAGS = -version-info 0:0:0 @LDFLAGS_BIGSHAREDLIB@ @LDFLAGS_SHAREDLIB@
310
311 #
312 # Add the object files for missing routines, if any.
313 #
314 libwireshark_la_LIBADD = \
315         libwireshark_generated.la               \
316         libwireshark_asmopt.la                  \
317         crypt/libairpdcap.la                    \
318         ftypes/libftypes.la                     \
319         dfilter/libdfilter.la                   \
320         dissectors/libdissectors.la             \
321         dissectors/libdirtydissectors.la        \
322         dissectors/libfiledissectors.la         \
323         wmem/libwmem.la                         \
324         $(wslua_lib)                            \
325         ${top_builddir}/wiretap/libwiretap.la   \
326         ${top_builddir}/wsutil/libwsutil.la     \
327         @C_ARES_LIBS@           \
328         @GEOIP_LIBS@            \
329         @KRB5_LIBS@             \
330         @LIBGCRYPT_LIBS@        \
331         @LIBGNUTLS_LIBS@        \
332         @LIBSMI_LDFLAGS@        \
333         @LZ4_LIBS@              \
334         @NGHTTP2_LIBS@          \
335         @SSL_LIBS@              \
336         @SNAPPY_LIBS@           \
337         @LIBXML2_LIBS@          \
338         @GLIB_LIBS@
339
340 libwireshark_la_DEPENDENCIES = \
341         libwireshark_generated.la               \
342         compress/liblzxpress.la                 \
343         libwireshark_asmopt.la                  \
344         crypt/libairpdcap.la                    \
345         ftypes/libftypes.la                     \
346         dfilter/libdfilter.la                   \
347         dissectors/libdissectors.la             \
348         dissectors/libdirtydissectors.la        \
349         wmem/libwmem.la                         \
350         $(wslua_lib)                            \
351         ${top_builddir}/wsutil/libwsutil.la     \
352         ${top_builddir}/wiretap/libwiretap.la
353
354 libwireshark_generated_la_SOURCES = \
355         $(LIBWIRESHARK_GENERATED_C_FILES) \
356         $(LIBWIRESHARK_GENERATED_HEADER_FILES)
357
358 nodist_libwireshark_generated_la_SOURCES = \
359         $(NODIST_LIBWIRESHARK_GENERATED_C_FILES) \
360         $(NODIST_LIBWIRESHARK_GENERATED_HEADER_FILES)
361
362 libwireshark_generated_la_CFLAGS = $(GENERATED_CFLAGS)
363
364 # code optionally implemented in assembler
365 # only C source available for platforms other than Win32
366 libwireshark_asmopt_la_SOURCES = \
367         asm_utils.c             \
368         asm_utils.h             \
369         asm_utils_win32_x86.asm
370
371 EXTRA_DIST = \
372         .editorconfig           \
373         diam_dict.l             \
374         dtd_grammar.lemon       \
375         dtd_parse.l             \
376         dtd_parse.h             \
377         dtd_preparse.l          \
378         enterprise-numbers      \
379         radius_dict.l           \
380         uat_load.l              \
381         doxygen.cfg.in          \
382         CMakeLists.txt          \
383         print.ps
384
385 CLEANFILES = \
386         doxygen-epan.tag                \
387         libwireshark.a                  \
388         libwireshark.la                 \
389         libwireshark_generated.a        \
390         libwireshark_generated.la       \
391         libwireshark_asmopt.a           \
392         libwireshark_asmopt.la          \
393         *~
394
395 DISTCLEANFILES = \
396         $(NODIST_LIBWIRESHARK_GENERATED_C_FILES) \
397         $(NODIST_LIBWIRESHARK_GENERATED_HEADER_FILES) \
398         dtd_grammar.out \
399         ws_version_info.c
400
401 MAINTAINERCLEANFILES = \
402         $(LIBWIRESHARK_GENERATED_C_FILES) \
403         $(LIBWIRESHARK_GENERATED_HEADER_FILES) \
404         Makefile.in
405
406 BUILT_SOURCES = \
407         $(LIBWIRESHARK_GENERATED_HEADER_FILES) \
408         $(NODIST_LIBWIRESHARK_GENERATED_HEADER_FILES) \
409         ws_version_info.c
410
411 EXTRA_PROGRAMS = reassemble_test tvbtest oids_test exntest
412
413 reassemble_test_LDADD = \
414         libwireshark.la \
415         $(GLIB_LIBS) \
416         -lz
417
418 tvbtest_LDADD = \
419         libwireshark.la \
420         $(GLIB_LIBS) \
421         -lz
422
423 oids_test_LDADD = \
424         libwireshark.la \
425         $(GLIB_LIBS) \
426         -lz
427
428 exntest_SOURCES = exntest.c except.c
429
430 exntest_LDADD = $(GLIB_LIBS)
431
432 test-programs: $(EXTRA_PROGRAMS)
433         $(MAKE) -C wmem $@
434
435 diam_dict_lex.h: diam_dict.c
436
437 dtd_parse_lex.h: dtd_parse.c
438
439 dtd_preparse_lex.h: dtd_preparse.c
440
441 radius_dict_lex.h: radius_dict.c
442
443 uat_load_lex.h: uat_load.c
444
445 dtd_grammar.h: dtd_grammar.c
446 dtd_grammar.c : $(LEMON) $(lemon_srcdir)/lempar.c $(srcdir)/dtd_grammar.lemon
447         $(AM_V_LEMON)$(LEMON) T=$(lemon_srcdir)/lempar.c $(srcdir)/dtd_grammar.lemon
448
449 ws_version_info.c: $(top_srcdir)/ws_version_info.c
450         $(AM_V_LN_S)$(LN_S) $<
451
452 tvbtest.o exntest.o oids_test.o: exceptions.h
453
454 update-sminmpec:
455         $(PERL) $(srcdir)/../tools/make-sminmpec.pl
456
457 ps.c: print.ps $(top_srcdir)/tools/rdps.py
458         $(AM_V_python)$(PYTHON) $(top_srcdir)/tools/rdps.py $(srcdir)/print.ps ps.c
459
460 if HAVE_PLUGINS
461
462 if ENABLE_STATIC
463 -include ../plugins/Custom.make
464 plugin_src = \
465         ../plugins/docsis/packet-docsis.c \
466         ../plugins/docsis/packet-macmgmt.c \
467         ../plugins/docsis/packet-tlv.c \
468         ../plugins/docsis/packet-vendor.c \
469         ../plugins/docsis/plugin.c \
470         ../plugins/easy_codec/codec-g722.c \
471         ../plugins/easy_codec/codec-g7231.c \
472         ../plugins/easy_codec/codec-g729a.c \
473         ../plugins/easy_codec/easy_codec_plugin.c \
474         ../plugins/ethercat/packet-ams.c \
475         ../plugins/ethercat/packet-ecatmb.c \
476         ../plugins/ethercat/packet-esl.c \
477         ../plugins/ethercat/packet-ethercat-datagram.c \
478         ../plugins/ethercat/packet-ethercat-frame.c \
479         ../plugins/ethercat/packet-ioraw.c \
480         ../plugins/ethercat/packet-nv.c \
481         ../plugins/ethercat/plugin.c \
482         ../plugins/gryphon/packet-gryphon.c \
483         ../plugins/gryphon/plugin.c \
484         ../plugins/irda/packet-ircomm.c \
485         ../plugins/irda/packet-irda.c \
486         ../plugins/irda/packet-sir.c \
487         ../plugins/irda/plugin.c \
488         ../plugins/m2m/packet-m2m.c \
489         ../plugins/m2m/plugin.c \
490         ../plugins/m2m/wimax_tlv.c \
491         ../plugins/Makefile.am.inc \
492         ../plugins/mate/mate_grammar.c \
493         ../plugins/mate/mate_parser.c \
494         ../plugins/mate/mate_runtime.c \
495         ../plugins/mate/mate_setup.c \
496         ../plugins/mate/mate_util.c \
497         ../plugins/mate/packet-mate.c \
498         ../plugins/mate/plugin.c \
499         ../plugins/opcua/opcua_application_layer.c \
500         ../plugins/opcua/opcua.c \
501         ../plugins/opcua/opcua_complextypeparser.c \
502         ../plugins/opcua/opcua_enumparser.c \
503         ../plugins/opcua/opcua_extensionobjecttable.c \
504         ../plugins/opcua/opcua_hfindeces.c \
505         ../plugins/opcua/opcua_security_layer.c \
506         ../plugins/opcua/opcua_serviceparser.c \
507         ../plugins/opcua/opcua_servicetable.c \
508         ../plugins/opcua/opcua_simpletypes.c \
509         ../plugins/opcua/opcua_statuscode.c \
510         ../plugins/opcua/opcua_transport_layer.c \
511         ../plugins/opcua/plugin.c \
512         ../plugins/pluginifdemo/pluginifdemo.c \
513         ../plugins/profinet/packet-dcerpc-pn-io.c \
514         ../plugins/profinet/packet-dcom-cba-acco.c \
515         ../plugins/profinet/packet-dcom-cba.c \
516         ../plugins/profinet/packet-pn.c \
517         ../plugins/profinet/packet-pn-dcp.c \
518         ../plugins/profinet/packet-pn-mrp.c \
519         ../plugins/profinet/packet-pn-mrrt.c \
520         ../plugins/profinet/packet-pn-ptcp.c \
521         ../plugins/profinet/packet-pn-rt.c \
522         ../plugins/profinet/packet-pn-rtc-one.c \
523         ../plugins/profinet/plugin.c \
524         ../plugins/stats_tree/pinfo_stats_tree.c \
525         ../plugins/stats_tree/stats_tree_plugin.c \
526         ../plugins/tpg/packet-http.c \
527         ../plugins/transum/decoders.c \
528         ../plugins/transum/extractors.c \
529         ../plugins/transum/packet-transum.c \
530         ../plugins/transum/plugin.c \
531         ../plugins/unistim/packet-unistim.c \
532         ../plugins/unistim/plugin.c \
533         ../plugins/wimaxasncp/packet-wimaxasncp.c \
534         ../plugins/wimaxasncp/plugin.c \
535         ../plugins/wimaxasncp/wimaxasncp_dict.c \
536         ../plugins/wimax/crc.c \
537         ../plugins/wimax/crc_data.c \
538         ../plugins/wimax/mac_hd_generic_decoder.c \
539         ../plugins/wimax/mac_hd_type1_decoder.c \
540         ../plugins/wimax/mac_hd_type2_decoder.c \
541         ../plugins/wimax/mac_mgmt_msg_decoder.c \
542         ../plugins/wimaxmacphy/packet-wimaxmacphy.c \
543         ../plugins/wimaxmacphy/plugin.c \
544         ../plugins/wimax/msg_aas_beam.c \
545         ../plugins/wimax/msg_aas_fbck.c \
546         ../plugins/wimax/msg_arq.c \
547         ../plugins/wimax/msg_clk_cmp.c \
548         ../plugins/wimax/msg_dcd.c \
549         ../plugins/wimax/msg_dlmap.c \
550         ../plugins/wimax/msg_dreg.c \
551         ../plugins/wimax/msg_dsa.c \
552         ../plugins/wimax/msg_dsc.c \
553         ../plugins/wimax/msg_dsd.c \
554         ../plugins/wimax/msg_dsx_rvd.c \
555         ../plugins/wimax/msg_fpc.c \
556         ../plugins/wimax/msg_pkm.c \
557         ../plugins/wimax/msg_pmc.c \
558         ../plugins/wimax/msg_prc_lt_ctrl.c \
559         ../plugins/wimax/msg_reg_req.c \
560         ../plugins/wimax/msg_reg_rsp.c \
561         ../plugins/wimax/msg_rep.c \
562         ../plugins/wimax/msg_res_cmd.c \
563         ../plugins/wimax/msg_rng_req.c \
564         ../plugins/wimax/msg_rng_rsp.c \
565         ../plugins/wimax/msg_sbc.c \
566         ../plugins/wimax/msg_ucd.c \
567         ../plugins/wimax/msg_ulmap.c \
568         ../plugins/wimax/packet-wmx.c \
569         ../plugins/wimax/plugin.c \
570         ../plugins/wimax/wimax_cdma_code_decoder.c \
571         ../plugins/wimax/wimax_compact_dlmap_ie_decoder.c \
572         ../plugins/wimax/wimax_compact_ulmap_ie_decoder.c \
573         ../plugins/wimax/wimax_fch_decoder.c \
574         ../plugins/wimax/wimax_ffb_decoder.c \
575         ../plugins/wimax/wimax_hack_decoder.c \
576         ../plugins/wimax/wimax_harq_map_decoder.c \
577         ../plugins/wimax/wimax_pdu_decoder.c \
578         ../plugins/wimax/wimax_phy_attributes_decoder.c \
579         ../plugins/wimax/wimax_tlv.c \
580         ../plugins/wimax/wimax_utils.c
581
582 else            # ENABLE_STATIC
583
584 plugin_src =
585
586 endif           # ENABLE_STATIC
587
588 else            # HAVE_PLUGINS
589 plugin_src =
590
591 endif           # HAVE_PLUGINS
592
593 doxygen:
594 if HAVE_DOXYGEN
595         $(AM_V_GEN)$(DOXYGEN) doxygen.cfg
596 endif           # HAVE_DOXYGEN
597
598 wsar_html: doxygen.cfg ../doxygen_global.cfg
599 if HAVE_DOXYGEN
600         (umask 022 ; $(DOXYGEN) doxygen.cfg)
601 endif
602
603 # ABI compliance checker can be obtained from
604 # http://ispras.linux-foundation.org/index.php/ABI_compliance_checker
605 # Checked using version 1.21.12
606 # TODO: fix wrong headers and select ones providing external API
607 dumpabi-libwireshark: all abi-descriptor.xml
608         rm -rf abi-check-headers abi_dumps .libs/*.abi.tar.gz
609         mkdir abi-check-headers
610         cp ../config.h ../register.h abi-check-headers/
611         mkdir abi-check-headers/epan
612         cp *.h abi-check-headers/epan
613         mkdir abi-check-headers/crypt
614         cp crypt/*.h abi-check-headers/crypt
615         mkdir abi-check-headers/compress
616         cp compress/*.h abi-check-headers/compress
617         mkdir abi-check-headers/dfilter
618         cp dfilter/*.h ../tools/lemon/cppmagic.h abi-check-headers/dfilter
619         mkdir abi-check-headers/dissectors
620         cp dissectors/*.h abi-check-headers/dissectors
621         rm \
622                 abi-check-headers/*/*_lex.h \
623                 abi-check-headers/dissectors/x11-extension-implementation.h \
624                 abi-check-headers/dissectors/x11-glx-render-enum.h \
625                 abi-check-headers/dissectors/x11-register-info.h \
626                 abi-check-headers/dissectors/packet-lb* \
627                 abi-check-headers/dissectors/packet-idmp.h
628         mkdir abi-check-headers/ftypes
629         cp ftypes/*.h abi-check-headers/ftypes
630         mkdir abi-check-headers/wmem
631         cp wmem/*.h abi-check-headers/wmem
632         abi-compliance-checker -log-path abi_logs/log.txt -l libwireshark -v1 `readlink .libs/libwireshark.so | sed 's/.*\.so\.//'` \
633                 -relpath $(abs_srcdir) -dump-abi abi-descriptor.xml || \
634                 cat abi_logs/log.txt
635         cp -f abi_dumps/libwireshark/libwireshark_* .libs/
636         cd .libs && ln -sf libwireshark_*.abi.tar.gz libwireshark.abi.tar.gz
637
638 maintainer-clean-local: clean-dumpabi-libwireshark
639
640 .PHONY: clean-dumpabi-libwireshark
641
642 clean-dumpabi-libwireshark:
643         rm -rf abi-check-headers abi_dumps .libs/*.abi.tar.gz abi_logs abi-descriptor.xml
644
645 checkapi:
646         $(AM_V_GEN)$(PERL) $(top_srcdir)/tools/checkAPIs.pl -g termoutput -build \
647         -sourcedir=$(srcdir) \
648         $(LIBWIRESHARK_SRC)