55bf4496740628e85398b388d8f667518861b57d
[cascardo/ovs.git] / utilities / automake.mk
1 bin_PROGRAMS += \
2         utilities/ovs-appctl \
3         utilities/ovs-testcontroller \
4         utilities/ovs-dpctl \
5         utilities/ovs-ofctl \
6         utilities/ovs-vsctl
7 bin_SCRIPTS += utilities/ovs-docker \
8         utilities/ovs-pki
9 if HAVE_PYTHON
10 bin_SCRIPTS += \
11         utilities/ovs-dpctl-top \
12         utilities/ovs-l3ping \
13         utilities/ovs-parse-backtrace \
14         utilities/ovs-pcap \
15         utilities/ovs-tcpundump \
16         utilities/ovs-test \
17         utilities/ovs-vlan-test
18 endif
19 scripts_SCRIPTS += \
20         utilities/ovs-check-dead-ifs \
21         utilities/ovs-ctl \
22         utilities/ovs-save
23 scripts_DATA += utilities/ovs-lib
24
25 check_SCRIPTS += \
26         utilities/ovs-appctl-bashcomp.bash \
27         utilities/ovs-vsctl-bashcomp.bash
28
29 utilities/ovs-lib: $(top_builddir)/config.status
30
31 docs += utilities/ovs-command-bashcomp.INSTALL.md
32 EXTRA_DIST += \
33         utilities/ovs-check-dead-ifs.in \
34         utilities/ovs-appctl-bashcomp.bash \
35         utilities/ovs-vsctl-bashcomp.bash \
36         utilities/ovs-command-bashcomp.INSTALL.md \
37         utilities/ovs-ctl.in \
38         utilities/ovs-dev.py \
39         utilities/ovs-docker \
40         utilities/ovs-dpctl-top.in \
41         utilities/ovs-l3ping.in \
42         utilities/ovs-lib.in \
43         utilities/ovs-parse-backtrace.in \
44         utilities/ovs-pcap.in \
45         utilities/ovs-pki.in \
46         utilities/ovs-save \
47         utilities/ovs-tcpundump.in \
48         utilities/ovs-test.in \
49         utilities/ovs-vlan-test.in
50 MAN_ROOTS += \
51         utilities/ovs-appctl.8.in \
52         utilities/ovs-benchmark.1.in \
53         utilities/ovs-testcontroller.8.in \
54         utilities/ovs-ctl.8 \
55         utilities/ovs-dpctl.8.in \
56         utilities/ovs-dpctl-top.8.in \
57         utilities/ovs-l3ping.8.in \
58         utilities/ovs-ofctl.8.in \
59         utilities/ovs-parse-backtrace.8 \
60         utilities/ovs-pcap.1.in \
61         utilities/ovs-pki.8.in \
62         utilities/ovs-tcpundump.1.in \
63         utilities/ovs-vlan-bug-workaround.8.in \
64         utilities/ovs-test.8.in \
65         utilities/ovs-vlan-test.8.in \
66         utilities/ovs-vsctl.8.in
67 MAN_FRAGMENTS += utilities/ovs-vlan-bugs.man
68 DISTCLEANFILES += \
69         utilities/ovs-appctl.8 \
70         utilities/ovs-ctl \
71         utilities/ovs-benchmark.1 \
72         utilities/ovs-check-dead-ifs \
73         utilities/ovs-testcontroller.8 \
74         utilities/ovs-dpctl.8 \
75         utilities/ovs-dpctl-top \
76         utilities/ovs-dpctl-top.8 \
77         utilities/ovs-l3ping \
78         utilities/ovs-l3ping.8 \
79         utilities/ovs-lib \
80         utilities/ovs-ofctl.8 \
81         utilities/ovs-parse-backtrace \
82         utilities/ovs-pcap \
83         utilities/ovs-pcap.1 \
84         utilities/ovs-pki \
85         utilities/ovs-pki.8 \
86         utilities/ovs-tcpundump \
87         utilities/ovs-tcpundump.1 \
88         utilities/ovs-test \
89         utilities/ovs-test.8 \
90         utilities/ovs-vlan-test \
91         utilities/ovs-vlan-test.8 \
92         utilities/ovs-vlan-bug-workaround.8 \
93         utilities/ovs-vsctl.8
94
95 man_MANS += \
96         utilities/ovs-appctl.8 \
97         utilities/ovs-benchmark.1 \
98         utilities/ovs-ctl.8 \
99         utilities/ovs-testcontroller.8 \
100         utilities/ovs-dpctl.8 \
101         utilities/ovs-dpctl-top.8 \
102         utilities/ovs-l3ping.8 \
103         utilities/ovs-ofctl.8 \
104         utilities/ovs-parse-backtrace.8 \
105         utilities/ovs-pcap.1 \
106         utilities/ovs-pki.8 \
107         utilities/ovs-tcpundump.1 \
108         utilities/ovs-vlan-bug-workaround.8 \
109         utilities/ovs-test.8 \
110         utilities/ovs-vlan-test.8 \
111         utilities/ovs-vsctl.8
112
113 utilities_ovs_appctl_SOURCES = utilities/ovs-appctl.c
114 utilities_ovs_appctl_LDADD = lib/libopenvswitch.la
115
116 utilities_ovs_testcontroller_SOURCES = utilities/ovs-testcontroller.c
117 utilities_ovs_testcontroller_LDADD = lib/libopenvswitch.la $(SSL_LIBS)
118
119 utilities_ovs_dpctl_SOURCES = utilities/ovs-dpctl.c
120 utilities_ovs_dpctl_LDADD = lib/libopenvswitch.la
121
122 utilities_ovs_ofctl_SOURCES = utilities/ovs-ofctl.c
123 utilities_ovs_ofctl_LDADD = \
124         ofproto/libofproto.la \
125         lib/libopenvswitch.la
126
127 utilities_ovs_vsctl_SOURCES = utilities/ovs-vsctl.c
128 utilities_ovs_vsctl_LDADD = lib/libopenvswitch.la
129
130 if LINUX
131 sbin_PROGRAMS += utilities/ovs-vlan-bug-workaround
132 utilities_ovs_vlan_bug_workaround_SOURCES = utilities/ovs-vlan-bug-workaround.c
133 utilities_ovs_vlan_bug_workaround_LDADD = lib/libopenvswitch.la
134
135 noinst_PROGRAMS += utilities/nlmon
136 utilities_nlmon_SOURCES = utilities/nlmon.c
137 utilities_nlmon_LDADD = lib/libopenvswitch.la
138 endif
139
140 bin_PROGRAMS += utilities/ovs-benchmark
141 utilities_ovs_benchmark_SOURCES = utilities/ovs-benchmark.c
142 utilities_ovs_benchmark_LDADD = lib/libopenvswitch.la
143
144 include utilities/bugtool/automake.mk