aboutsummaryrefslogtreecommitdiffstats
path: root/ui/cli/Makefile.am
blob: d357a76c4df74a34fb3d3b64a056c3d21ad60864 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
# Makefile.am
# Automake file for the TShark taps
#
# Wireshark - Network traffic analyzer
# By Gerald Combs <gerald@wireshark.org>
# Copyright 1998 Gerald Combs
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

include $(top_srcdir)/Makefile.am.inc

AM_CPPFLAGS = $(INCLUDEDIRS) $(WS_CPPFLAGS) $(GLIB_CFLAGS) \
	$(LIBGCRYPT_CFLAGS) $(LIBGNUTLS_CFLAGS) $(PORTAUDIO_INCLUDES)

noinst_LIBRARIES = libcliui.a

# Generated header files that we want in the distribution.
GENERATED_HEADER_FILES =

# Generated C source files that we want in the distribution.
GENERATED_C_FILES = \
	tshark-tap-register.c

# All the generated files.
GENERATED_FILES = \
	$(GENERATED_HEADER_FILES) \
	$(GENERATED_C_FILES)

# Files that generate compileable files
GENERATOR_FILES =

# sources for TShark taps
TSHARK_TAP_SRC = \
	tap-camelsrt.c		\
	tap-comparestat.c	\
	tap-diameter-avp.c	\
	tap-endpoints.c		\
	tap-endpoints.c		\
	tap-expert.c		\
	tap-exportobject.c	\
	tap-flow.c			\
	tap-follow.c		\
	tap-funnel.c		\
	tap-gsm_astat.c		\
	tap-hosts.c		\
	tap-httpstat.c		\
	tap-icmpstat.c		\
	tap-icmpv6stat.c	\
	tap-iostat.c		\
	tap-iousers.c		\
	tap-macltestat.c	\
	tap-protocolinfo.c	\
	tap-protohierstat.c	\
	tap-rlcltestat.c	\
	tap-rpcprogs.c		\
	tap-rtd.c		\
	tap-rtp.c		\
	tap-rtspstat.c		\
	tap-sctpchunkstat.c	\
	tap-simple_stattable.c	\
	tap-sipstat.c		\
	tap-smbsids.c		\
	tap-srt.c		\
	tap-stats_tree.c	\
	tap-sv.c		\
	tap-wspstat.c

noinst_HEADERS = \
	tap-exportobject.h 	\
	tshark-tap.h

# All sources that should be put in the source distribution tarball
libcliui_a_SOURCES = \
	$(TSHARK_TAP_SRC) \
	$(noinst_HEADERS) \
	$(GENERATED_HEADER_FILES) \
	$(GENERATED_C_FILES)

libcliui_a_DEPENDENCIES =

EXTRA_DIST = \
	.editorconfig		\
	$(GENERATOR_FILES)

CLEANFILES = \
	libcliui.a			\
	tshark-tap-register.c-tmp	\
	tshark-tap-register-cache.pkl	\
	*~

MAINTAINERCLEANFILES = \
	$(GENERATED_FILES)	\
	Makefile.in

#
# Build "tshark-tap-register.c", which contains a function
# "register_all_tap_listeners()"
# that calls the register routines for all tshark tap listeners.
#
# We do this by grepping through sources.
#
# Formatting conventions:  The name of the tap_listener_register_*
# routines must start in column zero, or must be preceded only by
# "void " starting in column zero, and must not be inside #if.
#
# The first argument is the directory in which the source files live.
# All subsequent arguments are the files to scan.
#
tshark-tap-register.c: $(TSHARK_TAP_SRC) $(top_srcdir)/tools/make-tap-reg.py
	@echo Making tshark-tap-register.c
	@$(PYTHON) $(top_srcdir)/tools/make-tap-reg.py $(srcdir) tshark-taps $(TSHARK_TAP_SRC)

doxygen:
if HAVE_DOXYGEN
	$(DOXYGEN) doxygen.cfg
endif		# HAVE_DOXYGEN

checkapi:
	$(PERL) $(top_srcdir)/tools/checkAPIs.pl -build \
	-sourcedir=$(srcdir) $(TSHARK_TAP_SRC)