Consistently use the "g_string_free returns a C string pointer" idiom.
[metze/wireshark/wip.git] / capchild / Makefile.am
1 # Makefile.am
2 # Automake file for the "talking to dumpcap" 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 Makefile.common
23 include ../Makefile.am.inc
24
25 if HAVE_WARNINGS_AS_ERRORS
26 AM_CLEAN_CFLAGS = -Werror
27 endif
28
29 noinst_LIBRARIES = libcapchild.a
30
31 CLEANFILES = \
32         doxygen-capchild.tag    \
33         libcapchild.a           \
34         *~
35
36 MAINTAINERCLEANFILES = \
37         $(GENERATED_FILES)      \
38         Makefile.in
39
40 # All sources that should be put in the source distribution tarball
41 libcapchild_a_SOURCES = \
42         $(CAPCHILD_SRC) \
43         $(noinst_HEADERS)
44
45 libcapchild_a_CFLAGS = $(AM_CLEAN_CFLAGS)
46
47 libcapchild_a_DEPENDENCIES =
48
49 # Common headers
50 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/wiretap $(LIBGCRYPT_CFLAGS) $(LIBGNUTLS_CFLAGS) $(PORTAUDIO_INCLUDES)
51
52
53 doxygen:
54 if HAVE_DOXYGEN
55         $(DOXYGEN) doxygen.cfg
56 endif           # HAVE_DOXYGEN
57
58 wsar_html: doxygen.cfg ../doxygen_global.cfg
59 if HAVE_DOXYGEN
60         (umask 022 ; $(DOXYGEN) doxygen.cfg)
61 endif
62
63 checkapi: checkapi-base checkapi-todo
64
65 checkapi-base:
66         $(PERL) $(top_srcdir)/tools/checkAPIs.pl -g deprecated-gtk -build \
67         -sourcedir=$(srcdir) \
68         $(CAPCHILD_SRC)
69
70 checkapi-todo:
71         $(PERL) $(top_srcdir)/tools/checkAPIs.pl -M -g deprecated-gtk-todo -build \
72         -sourcedir=$(srcdir) \
73         $(CAPCHILD_SRC)
74
75 EXTRA_DIST = \
76         $(GENERATOR_FILES)              \
77         CMakeLists.txt                  \
78         doxygen.cfg.in                  \
79         Makefile.common                 \
80         Makefile.nmake