Some trivial fixes from running cppcheck.
[metze/wireshark/wip.git] / extcap / Makefile.am
1 # Makefile.am
2 # Automake file for extcap tools
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.am.inc
23
24 AM_CPPFLAGS = $(INCLUDEDIRS) $(WS_CPPFLAGS) $(GLIB_CFLAGS) $(PCAP_CFLAGS)
25
26 MAINTAINERCLEANFILES = \
27         Makefile.in
28
29 EXTRA_DIST = \
30         .editorconfig
31
32 extcap_PROGRAMS = \
33         @androiddump_bin@       \
34         @randpktdump_bin@       \
35         @sshdump_bin@           \
36         @ciscodump_bin@         \
37         @udpdump_bin@
38
39 EXTRA_PROGRAMS = androiddump randpktdump sshdump ciscodump udpdump
40
41 androiddump_SOURCES = \
42         androiddump.c   \
43         extcap-base.c
44
45 if ENABLE_STATIC
46 androiddump_LDFLAGS = -Wl,-static -all-static
47 else
48 androiddump_LDFLAGS = -export-dynamic
49 endif
50
51 # Libraries and plugin flags with which to link androiddump.
52 androiddump_LDADD = \
53         ../ui/libui.a                   \
54         ../wiretap/libwiretap.la        \
55         ../wsutil/libwsutil.la          \
56         @GLIB_LIBS@
57
58 randpktdump_SOURCES = \
59         randpktdump.c   \
60         extcap-base.c
61
62 if ENABLE_STATIC
63         randpktdump_LDFLAGS = -Wl,-static -all-static
64 else
65         randpktdump_LDFLAGS = -export-dynamic
66 endif
67
68 # Libraries and plugin flags with which to link randpktdump.
69 randpktdump_LDADD = \
70         ../randpkt_core/librandpkt_core.a       \
71         ../ui/libui.a                   \
72         ../wiretap/libwiretap.la        \
73         ../wsutil/libwsutil.la          \
74         @GLIB_LIBS@
75
76 sshdump_SOURCES = \
77         sshdump.c       \
78         extcap-base.c   \
79         ssh-base.c
80
81 if ENABLE_STATIC
82         sshdump_LDFLAGS = -Wl,-static -all-static
83 else
84         sshdump_LDFLAGS = -export-dynamic
85 endif
86
87 # Libraries and plugin flags with which to link sshdump.
88 sshdump_LDADD = \
89         ../wiretap/libwiretap.la        \
90         ../wsutil/libwsutil.la          \
91         @GLIB_LIBS@                     \
92         @LIBSSH_LIBS@
93
94 ciscodump_SOURCES = \
95         ciscodump.c     \
96         extcap-base.c   \
97         ssh-base.c
98
99 if ENABLE_STATIC
100         ciscodump_LDFLAGS = -Wl,-static -all-static
101 else
102         ciscodump_LDFLAGS = -export-dynamic
103 endif
104
105 # Libraries and plugin flags with which to link ciscodump.
106 ciscodump_LDADD = \
107         ../writecap/libwritecap.a       \
108         ../wsutil/libwsutil.la          \
109         @GLIB_LIBS@                     \
110         @LIBSSH_LIBS@
111
112 udpdump_SOURCES = \
113         udpdump.c \
114         extcap-base.c
115
116 if ENABLE_STATIC
117         udpdump_LDFLAGS = -Wl,-static -all-static
118 else
119         udpdump_LDFLAGS = -export-dynamic
120 endif
121
122 # Libraries and plugin flags with which to link udpdump.
123 udpdump_LDADD = \
124         ../writecap/libwritecap.a       \
125         ../wsutil/libwsutil.la          \
126         @GLIB_LIBS@
127
128 noinst_HEADERS = \
129         extcap-base.h   \
130         ssh-base.h