0ad3b8e757e37e2d8850e6d172d6a18291727ba3
[gd/wireshark/.git] / ui / cli / Makefile.am
1 # Makefile.am
2 # Automake file for the TShark taps
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 $(top_srcdir)/Makefile.am.inc
24
25 AM_CPPFLAGS += -I$(top_srcdir)/wiretap $(LIBGCRYPT_CFLAGS) \
26         $(LIBGNUTLS_CFLAGS) $(PORTAUDIO_INCLUDES)
27
28 noinst_LIBRARIES = libcliui.a
29
30 CLEANFILES = \
31         libcliui.a                      \
32         tshark-tap-register.c-tmp       \
33         tshark-tap-register-cache.pkl   \
34         *~
35
36 MAINTAINERCLEANFILES = \
37         $(GENERATED_FILES)      \
38         Makefile.in
39
40 #
41 # Build "tshark-tap-register.c", which contains a function
42 # "register_all_tap_listeners()"
43 # that calls the register routines for all tshark tap listeners.
44 #
45 # We do this by grepping through sources.
46 #
47 # Formatting conventions:  The name of the tap_listener_register_*
48 # routines must start in column zero, or must be preceded only by
49 # "void " starting in column zero, and must not be inside #if.
50 #
51 # The first argument is the directory in which the source files live.
52 # All subsequent arguments are the files to scan.
53 #
54 tshark-tap-register.c: $(TSHARK_TAP_SRC) Makefile.common $(top_srcdir)/tools/make-tap-reg.py
55         @echo Making tshark-tap-register.c
56         @$(PYTHON) $(top_srcdir)/tools/make-tap-reg.py $(srcdir) tshark-taps $(TSHARK_TAP_SRC)
57
58 # All sources that should be put in the source distribution tarball
59 libcliui_a_SOURCES = \
60         $(TSHARK_TAP_SRC) \
61         $(noinst_HEADERS) \
62         $(GENERATED_HEADER_FILES) \
63         $(GENERATED_C_FILES)
64
65 libcliui_a_DEPENDENCIES =
66
67 doxygen:
68 if HAVE_DOXYGEN
69         $(DOXYGEN) doxygen.cfg
70 endif           # HAVE_DOXYGEN
71
72 checkapi: checkapi-base checkapi-todo
73
74 checkapi-base:
75         $(PERL) $(top_srcdir)/tools/checkAPIs.pl -g deprecated-gtk -build \
76         -sourcedir=$(srcdir) \
77         $(TSHARK_TAP_SRC)
78
79 checkapi-todo:
80         $(PERL) $(top_srcdir)/tools/checkAPIs.pl -M -g deprecated-gtk-todo -build \
81         -sourcedir=$(srcdir) \
82         $(TSHARK_TAP_SRC)
83
84 EXTRA_DIST = \
85         $(GENERATOR_FILES)      \
86         Makefile.common                 \
87         Makefile.nmake