aab85a225a44e04727527527d2f1688c93e3643d
[openvswitch] / utilities / automake.mk
1 bin_PROGRAMS += \
2         utilities/ovs-appctl \
3         utilities/ovs-controller \
4         utilities/ovs-dpctl \
5         utilities/ovs-ofctl \
6         utilities/ovs-vsctl
7 bin_SCRIPTS += utilities/ovs-pki utilities/ovs-vsctl utilities/ovs-parse-leaks
8 if HAVE_PYTHON
9 bin_SCRIPTS += \
10         utilities/ovs-pcap \
11         utilities/ovs-tcpundump \
12         utilities/ovs-vlan-test
13 endif
14 noinst_SCRIPTS += utilities/ovs-pki-cgi
15 scripts_SCRIPTS += utilities/ovs-ctl utilities/ovs-lib.sh utilities/ovs-save
16
17 EXTRA_DIST += \
18         utilities/ovs-appctl.8.in \
19         utilities/ovs-controller.8.in \
20         utilities/ovs-ctl.in \
21         utilities/ovs-dpctl.8.in \
22         utilities/ovs-lib.sh.in \
23         utilities/ovs-ofctl.8.in \
24         utilities/ovs-parse-leaks.8 \
25         utilities/ovs-parse-leaks.in \
26         utilities/ovs-pcap.1.in \
27         utilities/ovs-pcap.in \
28         utilities/ovs-pki-cgi.in \
29         utilities/ovs-pki.8.in \
30         utilities/ovs-pki.in \
31         utilities/ovs-save \
32         utilities/ovs-tcpundump.1.in \
33         utilities/ovs-tcpundump.in \
34         utilities/ovs-vlan-bugs.man \
35         utilities/ovs-vlan-test.in \
36         utilities/ovs-vlan-bug-workaround.8.in \
37         utilities/ovs-vlan-test.8.in \
38         utilities/ovs-vsctl.8.in
39 DISTCLEANFILES += \
40         utilities/ovs-appctl.8 \
41         utilities/ovs-ctl \
42         utilities/ovs-controller.8 \
43         utilities/ovs-dpctl.8 \
44         utilities/ovs-lib.sh \
45         utilities/ovs-ofctl.8 \
46         utilities/ovs-parse-leaks \
47         utilities/ovs-pcap \
48         utilities/ovs-pcap.1 \
49         utilities/ovs-pki \
50         utilities/ovs-pki-cgi \
51         utilities/ovs-pki.8 \
52         utilities/ovs-tcpundump \
53         utilities/ovs-tcpundump.1 \
54         utilities/ovs-vlan-test \
55         utilities/ovs-vlan-test.8 \
56         utilities/ovs-vlan-bug-workaround.8 \
57         utilities/ovs-vsctl.8
58
59 man_MANS += \
60         utilities/ovs-appctl.8 \
61         utilities/ovs-controller.8 \
62         utilities/ovs-dpctl.8 \
63         utilities/ovs-ofctl.8 \
64         utilities/ovs-parse-leaks.8 \
65         utilities/ovs-pcap.1 \
66         utilities/ovs-pki.8 \
67         utilities/ovs-tcpundump.1 \
68         utilities/ovs-vlan-bug-workaround.8 \
69         utilities/ovs-vlan-test.8 \
70         utilities/ovs-vsctl.8
71 dist_man_MANS += utilities/ovs-ctl.8
72
73 utilities_ovs_appctl_SOURCES = utilities/ovs-appctl.c
74 utilities_ovs_appctl_LDADD = lib/libopenvswitch.a
75
76 utilities_ovs_controller_SOURCES = utilities/ovs-controller.c
77 utilities_ovs_controller_LDADD = lib/libopenvswitch.a $(SSL_LIBS)
78
79 utilities_ovs_dpctl_SOURCES = utilities/ovs-dpctl.c
80 utilities_ovs_dpctl_LDADD = lib/libopenvswitch.a
81
82 utilities_ovs_ofctl_SOURCES = utilities/ovs-ofctl.c
83 utilities_ovs_ofctl_LDADD = \
84         ofproto/libofproto.a \
85         lib/libopenvswitch.a \
86         $(SSL_LIBS)
87
88 utilities_ovs_vsctl_SOURCES = utilities/ovs-vsctl.c vswitchd/vswitch-idl.c
89 utilities_ovs_vsctl_LDADD = lib/libopenvswitch.a $(SSL_LIBS)
90
91 if HAVE_NETLINK
92 sbin_PROGRAMS += utilities/ovs-vlan-bug-workaround
93 utilities_ovs_vlan_bug_workaround_SOURCES = utilities/ovs-vlan-bug-workaround.c
94 utilities_ovs_vlan_bug_workaround_LDADD = lib/libopenvswitch.a
95
96 noinst_PROGRAMS += utilities/nlmon
97 utilities_nlmon_SOURCES = utilities/nlmon.c
98 utilities_nlmon_LDADD = lib/libopenvswitch.a
99 endif
100
101 include utilities/bugtool/automake.mk