CMake: API reference fixes.
[metze/wireshark/wip.git] / caputils / Makefile.am
1 # Makefile.am
2 # Automake file for the "capture utilities" routines for Wireshark
3 #
4 # Wireshark - Network traffic analyzer
5 # By Gerald Combs <gerald@wireshark.org>
6 # Copyright 1998 Gerald Combs
7 #
8 # This program is free software; you can redistribute it and/or
9 # modify it under the terms of the GNU General Public License
10 # as published by the Free Software Foundation; either version 2
11 # of the License, or (at your option) any later version.
12 #
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 # GNU General Public License for more details.
17 #
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21
22 include $(top_srcdir)/Makefile.am.inc
23
24 AM_CPPFLAGS = $(INCLUDEDIRS) $(WS_CPPFLAGS) $(GLIB_CFLAGS) $(PCAP_CFLAGS) \
25                 $(LIBNL_CFLAGS)
26
27 noinst_LIBRARIES = libcaputils.a
28
29 # All sources that should be put in the source distribution tarball
30 libcaputils_a_SOURCES = \
31         capture_ifinfo.h                \
32         capture-pcap-util.h             \
33         capture-pcap-util.c             \
34         capture-pcap-util-unix.c        \
35         capture-pcap-util-int.h         \
36         capture-wpcap.h                 \
37         capture_wpcap_packet.h          \
38         iface_monitor.c                 \
39         iface_monitor.h                 \
40         ws80211_utils.c                 \
41         ws80211_utils.h
42
43 #
44 # This is used to build dumpcap, and dumpcap is, if possible, built as
45 # a position-independent executable (for address space layout randomization,
46 # as it might be running with extra privileges), so this library needs
47 # to be built that way as well.
48 #
49 libcaputils_a_CFLAGS = $(AM_CFLAGS) $(PIE_CFLAGS)
50
51 libcaputils_a_DEPENDENCIES =
52
53 CLEANFILES = \
54         doxygen-caputils.tag
55
56 EXTRA_DIST = \
57         .editorconfig           \
58         airpcap.h               \
59         airpcap_loader.c        \
60         airpcap_loader.h        \
61         capture_win_ifnames.c   \
62         capture_win_ifnames.h   \
63         capture-wpcap.c         \
64         capture-wpcap.h         \
65         capture_wpcap_packet.c  \
66         capture_wpcap_packet.h  \
67         CMakeLists.txt          \
68         doxygen.cfg.in
69
70 doxygen:
71 if HAVE_DOXYGEN
72         $(DOXYGEN) doxygen.cfg
73 endif           # HAVE_DOXYGEN
74
75 wsar_html: doxygen.cfg ../doxygen_global.cfg
76 if HAVE_DOXYGEN
77         (umask 022 ; $(DOXYGEN) doxygen.cfg)
78 endif
79
80 checkapi: checkapi-base checkapi-todo
81
82 checkapi-base:
83         $(PERL) $(top_srcdir)/tools/checkAPIs.pl -g deprecated-gtk -build \
84         -sourcedir=$(srcdir) \
85         $(libcaputils_a_SOURCES)
86
87 checkapi-todo:
88         $(PERL) $(top_srcdir)/tools/checkAPIs.pl -M -g deprecated-gtk-todo -build \
89         -sourcedir=$(srcdir) \
90         $(libcaputils_a_SOURCES)