420d5fc31b151a7bb3b7b54e01a4e1a7d37fd194
[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-ctl.in \
19         utilities/ovs-lib.sh.in \
20         utilities/ovs-parse-leaks.in \
21         utilities/ovs-pcap.in \
22         utilities/ovs-pki-cgi.in \
23         utilities/ovs-pki.in \
24         utilities/ovs-save \
25         utilities/ovs-tcpundump.in \
26         utilities/ovs-vlan-test.in
27 MAN_ROOTS += \
28         utilities/ovs-appctl.8.in \
29         utilities/ovs-benchmark.1.in \
30         utilities/ovs-controller.8.in \
31         utilities/ovs-ctl.8 \
32         utilities/ovs-dpctl.8.in \
33         utilities/ovs-ofctl.8.in \
34         utilities/ovs-parse-leaks.8 \
35         utilities/ovs-pcap.1.in \
36         utilities/ovs-pki.8.in \
37         utilities/ovs-tcpundump.1.in \
38         utilities/ovs-vlan-bug-workaround.8.in \
39         utilities/ovs-vlan-test.8.in \
40         utilities/ovs-vsctl.8.in
41 MAN_FRAGMENTS += utilities/ovs-vlan-bugs.man
42 DISTCLEANFILES += \
43         utilities/ovs-appctl.8 \
44         utilities/ovs-ctl \
45         utilities/ovs-benchmark.1 \
46         utilities/ovs-controller.8 \
47         utilities/ovs-dpctl.8 \
48         utilities/ovs-lib.sh \
49         utilities/ovs-ofctl.8 \
50         utilities/ovs-parse-leaks \
51         utilities/ovs-pcap \
52         utilities/ovs-pcap.1 \
53         utilities/ovs-pki \
54         utilities/ovs-pki-cgi \
55         utilities/ovs-pki.8 \
56         utilities/ovs-tcpundump \
57         utilities/ovs-tcpundump.1 \
58         utilities/ovs-vlan-test \
59         utilities/ovs-vlan-test.8 \
60         utilities/ovs-vlan-bug-workaround.8 \
61         utilities/ovs-vsctl.8
62
63 man_MANS += \
64         utilities/ovs-appctl.8 \
65         utilities/ovs-benchmark.1 \
66         utilities/ovs-controller.8 \
67         utilities/ovs-dpctl.8 \
68         utilities/ovs-ofctl.8 \
69         utilities/ovs-parse-leaks.8 \
70         utilities/ovs-pcap.1 \
71         utilities/ovs-pki.8 \
72         utilities/ovs-tcpundump.1 \
73         utilities/ovs-vlan-bug-workaround.8 \
74         utilities/ovs-vlan-test.8 \
75         utilities/ovs-vsctl.8
76 dist_man_MANS += utilities/ovs-ctl.8
77
78 utilities_ovs_appctl_SOURCES = utilities/ovs-appctl.c
79 utilities_ovs_appctl_LDADD = lib/libopenvswitch.a
80
81 utilities_ovs_controller_SOURCES = utilities/ovs-controller.c
82 utilities_ovs_controller_LDADD = lib/libopenvswitch.a $(SSL_LIBS)
83
84 utilities_ovs_dpctl_SOURCES = utilities/ovs-dpctl.c
85 utilities_ovs_dpctl_LDADD = lib/libopenvswitch.a
86
87 utilities_ovs_ofctl_SOURCES = utilities/ovs-ofctl.c
88 utilities_ovs_ofctl_LDADD = \
89         ofproto/libofproto.a \
90         lib/libopenvswitch.a \
91         $(SSL_LIBS)
92
93 utilities_ovs_vsctl_SOURCES = utilities/ovs-vsctl.c vswitchd/vswitch-idl.c
94 utilities_ovs_vsctl_LDADD = lib/libopenvswitch.a $(SSL_LIBS)
95
96 if HAVE_NETLINK
97 sbin_PROGRAMS += utilities/ovs-vlan-bug-workaround
98 utilities_ovs_vlan_bug_workaround_SOURCES = utilities/ovs-vlan-bug-workaround.c
99 utilities_ovs_vlan_bug_workaround_LDADD = lib/libopenvswitch.a
100
101 noinst_PROGRAMS += utilities/nlmon
102 utilities_nlmon_SOURCES = utilities/nlmon.c
103 utilities_nlmon_LDADD = lib/libopenvswitch.a
104 endif
105
106 bin_PROGRAMS += utilities/ovs-benchmark
107 utilities_ovs_benchmark_SOURCES = utilities/ovs-benchmark.c
108 utilities_ovs_benchmark_LDADD = lib/libopenvswitch.a
109
110 include utilities/bugtool/automake.mk