Remove Makefile.common files
[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)
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
38 EXTRA_PROGRAMS = androiddump randpktdump sshdump ciscodump
39
40 androiddump_SOURCES = \
41         androiddump.c   \
42         extcap-base.c
43
44 if ENABLE_STATIC
45 androiddump_LDFLAGS = -Wl,-static -all-static
46 else
47 androiddump_LDFLAGS = -export-dynamic
48 endif
49
50 # Libraries and plugin flags with which to link androiddump.
51 androiddump_LDADD = \
52         ../wiretap/libwiretap.la        \
53         ../wsutil/libwsutil.la          \
54         @GLIB_LIBS@
55
56 randpktdump_SOURCES = \
57         randpktdump.c   \
58         extcap-base.c
59
60 if ENABLE_STATIC
61         randpktdump_LDFLAGS = -Wl,-static -all-static
62 else
63         randpktdump_LDFLAGS = -export-dynamic
64 endif
65
66 # Libraries and plugin flags with which to link randpktdump.
67 randpktdump_LDADD = \
68         ../randpkt_core/librandpkt_core.a       \
69         ../wiretap/libwiretap.la        \
70         ../wsutil/libwsutil.la          \
71         @GLIB_LIBS@
72
73 sshdump_SOURCES = \
74         sshdump.c       \
75         extcap-base.c   \
76         ssh-base.c
77
78 if ENABLE_STATIC
79         sshdump_LDFLAGS = -Wl,-static -all-static
80 else
81         sshdump_LDFLAGS = -export-dynamic
82 endif
83
84 # Libraries and plugin flags with which to link sshdump.
85 sshdump_LDADD = \
86         ../wiretap/libwiretap.la        \
87         ../wsutil/libwsutil.la          \
88         @GLIB_LIBS@                     \
89         @LIBSSH_LIBS@
90
91 ciscodump_SOURCES = \
92         ciscodump.c     \
93         extcap-base.c   \
94         ssh-base.c
95
96 if ENABLE_STATIC
97         ciscodump_LDFLAGS = -Wl,-static -all-static
98 else
99         ciscodump_LDFLAGS = -export-dynamic
100 endif
101
102 # Libraries and plugin flags with which to link ciscodump.
103 ciscodump_LDADD = \
104         ../writecap/libwritecap.a       \
105         ../wsutil/libwsutil.la          \
106         @GLIB_LIBS@                     \
107         @LIBSSH_LIBS@
108
109 noinst_HEADERS = \
110         extcap-base.h   \
111         ssh-base.h