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