]>
Commit | Line | Data |
---|---|---|
ab70cd30 | 1 | # Copyright (C) 2009, 2010, 2011, 2012, 2013, 2014, 2015 Nicira, Inc. |
a14bc59f BP |
2 | # |
3 | # Copying and distribution of this file, with or without modification, | |
4 | # are permitted in any medium without royalty provided the copyright | |
5 | # notice and this notice are preserved. This file is offered as-is, | |
6 | # without warranty of any kind. | |
7 | ||
38b7a52b | 8 | lib_LTLIBRARIES += lib/libopenvswitch.la |
064af421 | 9 | |
38b7a52b | 10 | lib_libopenvswitch_la_LIBADD = $(SSL_LIBS) |
94887cf4 GS |
11 | |
12 | if WIN32 | |
13 | lib_libopenvswitch_la_LIBADD += ${PTHREAD_LIBS} | |
14 | endif | |
15 | ||
7f2f24e3 SM |
16 | lib_libopenvswitch_la_LDFLAGS = \ |
17 | -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \ | |
a4353e20 TG |
18 | -Wl,--version-script=$(top_builddir)/lib/libopenvswitch.sym \ |
19 | $(AM_LDFLAGS) | |
38b7a52b HS |
20 | |
21 | lib_libopenvswitch_la_SOURCES = \ | |
d918d9d1 BP |
22 | lib/aes128.c \ |
23 | lib/aes128.h \ | |
97eba8fc | 24 | lib/async-append.h \ |
064af421 BP |
25 | lib/backtrace.c \ |
26 | lib/backtrace.h \ | |
ccc09689 EJ |
27 | lib/bfd.c \ |
28 | lib/bfd.h \ | |
064af421 | 29 | lib/bitmap.h \ |
daff3353 EJ |
30 | lib/bundle.c \ |
31 | lib/bundle.h \ | |
10a24935 | 32 | lib/byte-order.h \ |
1c617a49 BP |
33 | lib/byteq.c \ |
34 | lib/byteq.h \ | |
b31bcf60 EJ |
35 | lib/cfm.c \ |
36 | lib/cfm.h \ | |
064af421 BP |
37 | lib/classifier.c \ |
38 | lib/classifier.h \ | |
38c449e0 | 39 | lib/classifier-private.h \ |
0e666160 BP |
40 | lib/cmap.c \ |
41 | lib/cmap.h \ | |
064af421 BP |
42 | lib/command-line.c \ |
43 | lib/command-line.h \ | |
44 | lib/compiler.h \ | |
da4a6191 JS |
45 | lib/connectivity.c \ |
46 | lib/connectivity.h \ | |
064af421 BP |
47 | lib/coverage.c \ |
48 | lib/coverage.h \ | |
97025b23 JS |
49 | lib/crc32c.c \ |
50 | lib/crc32c.h \ | |
064af421 BP |
51 | lib/csum.c \ |
52 | lib/csum.h \ | |
d6bc33f3 | 53 | lib/daemon.c \ |
064af421 | 54 | lib/daemon.h \ |
3834bcf2 | 55 | lib/daemon-private.h \ |
07ff77cc AW |
56 | lib/db-ctl-base.c \ |
57 | lib/db-ctl-base.h \ | |
195c8086 | 58 | lib/dhcp.h \ |
614c4892 BP |
59 | lib/dummy.c \ |
60 | lib/dummy.h \ | |
064af421 | 61 | lib/dhparams.h \ |
064af421 | 62 | lib/dirs.h \ |
fceef209 DDP |
63 | lib/dpctl.c \ |
64 | lib/dpctl.h \ | |
e14deea0 PS |
65 | lib/dp-packet.h \ |
66 | lib/dp-packet.c \ | |
72865317 | 67 | lib/dpif-netdev.c \ |
df1e5a3b | 68 | lib/dpif-netdev.h \ |
96fba48f BP |
69 | lib/dpif-provider.h \ |
70 | lib/dpif.c \ | |
71 | lib/dpif.h \ | |
95974447 BP |
72 | lib/heap.c \ |
73 | lib/heap.h \ | |
064af421 BP |
74 | lib/dynamic-string.c \ |
75 | lib/dynamic-string.h \ | |
e251c8d0 BP |
76 | lib/entropy.c \ |
77 | lib/entropy.h \ | |
b8e67377 BP |
78 | lib/fat-rwlock.c \ |
79 | lib/fat-rwlock.h \ | |
064af421 BP |
80 | lib/fatal-signal.c \ |
81 | lib/fatal-signal.h \ | |
064af421 BP |
82 | lib/flow.c \ |
83 | lib/flow.h \ | |
05067881 BP |
84 | lib/guarded-list.c \ |
85 | lib/guarded-list.h \ | |
064af421 BP |
86 | lib/hash.c \ |
87 | lib/hash.h \ | |
822b7f52 BP |
88 | lib/hindex.c \ |
89 | lib/hindex.h \ | |
064af421 BP |
90 | lib/hmap.c \ |
91 | lib/hmap.h \ | |
f4ac3fc1 BP |
92 | lib/hmapx.c \ |
93 | lib/hmapx.h \ | |
c3bd4bfc SH |
94 | lib/id-pool.c \ |
95 | lib/id-pool.h \ | |
c49d1dd1 BP |
96 | lib/jhash.c \ |
97 | lib/jhash.h \ | |
f38b84ea BP |
98 | lib/json.c \ |
99 | lib/json.h \ | |
f2129093 BP |
100 | lib/jsonrpc.c \ |
101 | lib/jsonrpc.h \ | |
6aa74308 EJ |
102 | lib/lacp.c \ |
103 | lib/lacp.h \ | |
aad84c8e | 104 | lib/latch.h \ |
75a75043 BP |
105 | lib/learn.c \ |
106 | lib/learn.h \ | |
064af421 BP |
107 | lib/learning-switch.c \ |
108 | lib/learning-switch.h \ | |
064af421 | 109 | lib/list.h \ |
ac718c9d BP |
110 | lib/lockfile.c \ |
111 | lib/lockfile.h \ | |
064af421 BP |
112 | lib/mac-learning.c \ |
113 | lib/mac-learning.h \ | |
81a76618 BP |
114 | lib/match.c \ |
115 | lib/match.h \ | |
4a95091d FL |
116 | lib/mcast-snooping.c \ |
117 | lib/mcast-snooping.h \ | |
0d085684 BP |
118 | lib/memory.c \ |
119 | lib/memory.h \ | |
6a885fd0 BP |
120 | lib/meta-flow.c \ |
121 | lib/meta-flow.h \ | |
53ddd40a BP |
122 | lib/multipath.c \ |
123 | lib/multipath.h \ | |
614c4892 | 124 | lib/netdev-dummy.c \ |
5146acb1 | 125 | lib/netdev-provider.h \ |
c060c4cf EJ |
126 | lib/netdev-vport.c \ |
127 | lib/netdev-vport.h \ | |
064af421 BP |
128 | lib/netdev.c \ |
129 | lib/netdev.h \ | |
9c8e276e | 130 | lib/netflow.h \ |
2fe27d5a BP |
131 | lib/netlink.c \ |
132 | lib/netlink.h \ | |
09246b99 BP |
133 | lib/nx-match.c \ |
134 | lib/nx-match.h \ | |
f094af7b SH |
135 | lib/odp-execute.c \ |
136 | lib/odp-execute.h \ | |
064af421 BP |
137 | lib/odp-util.c \ |
138 | lib/odp-util.h \ | |
f25d0cf3 BP |
139 | lib/ofp-actions.c \ |
140 | lib/ofp-actions.h \ | |
dc4762ed BP |
141 | lib/ofp-errors.c \ |
142 | lib/ofp-errors.h \ | |
982697a4 BP |
143 | lib/ofp-msgs.c \ |
144 | lib/ofp-msgs.h \ | |
f22716dc JP |
145 | lib/ofp-parse.c \ |
146 | lib/ofp-parse.h \ | |
064af421 BP |
147 | lib/ofp-print.c \ |
148 | lib/ofp-print.h \ | |
fa37b408 BP |
149 | lib/ofp-util.c \ |
150 | lib/ofp-util.h \ | |
020c9387 SH |
151 | lib/ofp-version-opt.h \ |
152 | lib/ofp-version-opt.c \ | |
064af421 BP |
153 | lib/ofpbuf.c \ |
154 | lib/ofpbuf.h \ | |
31a3fc6e | 155 | lib/ovs-atomic-c11.h \ |
29ab0cf7 BP |
156 | lib/ovs-atomic-clang.h \ |
157 | lib/ovs-atomic-flag-gcc4.7+.h \ | |
31a3fc6e BP |
158 | lib/ovs-atomic-gcc4+.h \ |
159 | lib/ovs-atomic-gcc4.7+.h \ | |
105a9298 | 160 | lib/ovs-atomic-i586.h \ |
1bd2c9ed BP |
161 | lib/ovs-atomic-locked.c \ |
162 | lib/ovs-atomic-locked.h \ | |
ec2d2b5f | 163 | lib/ovs-atomic-msvc.h \ |
31a3fc6e | 164 | lib/ovs-atomic-pthreads.h \ |
f31841d5 | 165 | lib/ovs-atomic-x86_64.h \ |
31a3fc6e | 166 | lib/ovs-atomic.h \ |
be53a5c4 DF |
167 | lib/ovs-lldp.c \ |
168 | lib/ovs-lldp.h \ | |
0f2ea848 BP |
169 | lib/ovs-rcu.c \ |
170 | lib/ovs-rcu.h \ | |
2d2b28d5 | 171 | lib/ovs-router.h \ |
88ffdc93 | 172 | lib/ovs-router.c \ |
ec68790f BP |
173 | lib/ovs-thread.c \ |
174 | lib/ovs-thread.h \ | |
f85f8ebb BP |
175 | lib/ovsdb-data.c \ |
176 | lib/ovsdb-data.h \ | |
177 | lib/ovsdb-error.c \ | |
178 | lib/ovsdb-error.h \ | |
c3bb4bd7 BP |
179 | lib/ovsdb-idl-provider.h \ |
180 | lib/ovsdb-idl.c \ | |
181 | lib/ovsdb-idl.h \ | |
f85f8ebb BP |
182 | lib/ovsdb-parser.c \ |
183 | lib/ovsdb-parser.h \ | |
184 | lib/ovsdb-types.c \ | |
185 | lib/ovsdb-types.h \ | |
b9e8b45a | 186 | lib/packets.c \ |
064af421 | 187 | lib/packets.h \ |
2c78a3e6 SS |
188 | lib/pcap-file.c \ |
189 | lib/pcap-file.h \ | |
619c3a42 AZ |
190 | lib/perf-counter.h \ |
191 | lib/perf-counter.c \ | |
064af421 BP |
192 | lib/poll-loop.c \ |
193 | lib/poll-loop.h \ | |
064af421 BP |
194 | lib/process.c \ |
195 | lib/process.h \ | |
fe7cfa5c JR |
196 | lib/pvector.c \ |
197 | lib/pvector.h \ | |
064af421 BP |
198 | lib/random.c \ |
199 | lib/random.h \ | |
200 | lib/rconn.c \ | |
201 | lib/rconn.h \ | |
9f22b0cf | 202 | lib/rculist.h \ |
3ed497fc BP |
203 | lib/reconnect.c \ |
204 | lib/reconnect.h \ | |
9efd308e DV |
205 | lib/rstp.c \ |
206 | lib/rstp.h \ | |
207 | lib/rstp-common.h \ | |
208 | lib/rstp-state-machines.c \ | |
209 | lib/rstp-state-machines.h \ | |
064af421 | 210 | lib/sat-math.h \ |
55b40355 BP |
211 | lib/seq.c \ |
212 | lib/seq.h \ | |
064af421 BP |
213 | lib/sha1.c \ |
214 | lib/sha1.h \ | |
215 | lib/shash.c \ | |
216 | lib/shash.h \ | |
44bac24b BP |
217 | lib/simap.c \ |
218 | lib/simap.h \ | |
79f1cbe9 EJ |
219 | lib/smap.c \ |
220 | lib/smap.h \ | |
064af421 BP |
221 | lib/socket-util.c \ |
222 | lib/socket-util.h \ | |
f85f8ebb BP |
223 | lib/sort.c \ |
224 | lib/sort.h \ | |
f391294f BP |
225 | lib/sset.c \ |
226 | lib/sset.h \ | |
829a7d02 JP |
227 | lib/stp.c \ |
228 | lib/stp.h \ | |
c48f691f | 229 | lib/stream-fd.c \ |
c34b65c7 BP |
230 | lib/stream-fd.h \ |
231 | lib/stream-provider.h \ | |
9467fe62 | 232 | lib/stream-ssl.h \ |
c34b65c7 | 233 | lib/stream-tcp.c \ |
c34b65c7 BP |
234 | lib/stream.c \ |
235 | lib/stream.h \ | |
cde1c287 | 236 | lib/stdio.c \ |
71d7c22f | 237 | lib/string.c \ |
064af421 BP |
238 | lib/svec.c \ |
239 | lib/svec.h \ | |
fe089c0d AA |
240 | lib/syslog-direct.c \ |
241 | lib/syslog-direct.h \ | |
242 | lib/syslog-libc.c \ | |
243 | lib/syslog-libc.h \ | |
244 | lib/syslog-provider.h \ | |
3a3eb9da BP |
245 | lib/table.c \ |
246 | lib/table.h \ | |
b63e3bbc BP |
247 | lib/tag.c \ |
248 | lib/tag.h \ | |
8650b075 EJ |
249 | lib/timer.c \ |
250 | lib/timer.h \ | |
064af421 BP |
251 | lib/timeval.c \ |
252 | lib/timeval.h \ | |
a36de779 PS |
253 | lib/tnl-arp-cache.c \ |
254 | lib/tnl-arp-cache.h \ | |
255 | lib/tnl-ports.c \ | |
256 | lib/tnl-ports.h \ | |
648f4f1f | 257 | lib/token-bucket.c \ |
9558d2a5 | 258 | lib/tun-metadata.c \ |
6159c531 | 259 | lib/tun-metadata.h \ |
064af421 | 260 | lib/type-props.h \ |
afa3a931 | 261 | lib/unaligned.h \ |
f38b84ea BP |
262 | lib/unicode.c \ |
263 | lib/unicode.h \ | |
fa0361b7 GG |
264 | lib/unixctl.c \ |
265 | lib/unixctl.h \ | |
064af421 BP |
266 | lib/util.c \ |
267 | lib/util.h \ | |
fa0361b7 GG |
268 | lib/uuid.c \ |
269 | lib/uuid.h \ | |
064af421 BP |
270 | lib/valgrind.h \ |
271 | lib/vconn-provider.h \ | |
064af421 | 272 | lib/vconn-stream.c \ |
064af421 | 273 | lib/vconn.c \ |
0fb7b915 BP |
274 | lib/vlan-bitmap.c \ |
275 | lib/vlan-bitmap.h \ | |
025e874a BP |
276 | lib/vlandev.c \ |
277 | lib/vlandev.h \ | |
064af421 | 278 | lib/vlog.c \ |
be53a5c4 DF |
279 | lib/lldp/aa-structs.h \ |
280 | lib/lldp/lldp.c \ | |
281 | lib/lldp/lldp-const.h \ | |
282 | lib/lldp/lldp-tlv.h \ | |
283 | lib/lldp/lldpd.c \ | |
284 | lib/lldp/lldpd.h \ | |
285 | lib/lldp/lldpd-structs.c \ | |
286 | lib/lldp/lldpd-structs.h | |
9d0581fd | 287 | |
4ca828d7 | 288 | if WIN32 |
9d0581fd | 289 | lib_libopenvswitch_la_SOURCES += \ |
fda546bd | 290 | lib/daemon-windows.c \ |
9d0581fd | 291 | lib/getopt_long.c \ |
1680d3d7 | 292 | lib/getrusage-windows.c \ |
6500157f | 293 | lib/latch-windows.c \ |
7482ddda | 294 | lib/route-table-stub.c \ |
c48f691f | 295 | lib/strsep.c |
4ca828d7 | 296 | else |
9d0581fd | 297 | lib_libopenvswitch_la_SOURCES += \ |
a91dc444 | 298 | lib/daemon-unix.c \ |
6500157f | 299 | lib/latch-unix.c \ |
60567113 GS |
300 | lib/signals.c \ |
301 | lib/signals.h \ | |
7f1e1c7f | 302 | lib/socket-util-unix.c \ |
7ff04d92 | 303 | lib/stream-unix.c |
4ca828d7 LS |
304 | endif |
305 | ||
cde1c287 BP |
306 | EXTRA_DIST += \ |
307 | lib/stdio.h.in \ | |
308 | lib/string.h.in | |
6e037e3c | 309 | |
38b7a52b | 310 | nodist_lib_libopenvswitch_la_SOURCES = \ |
90ffd534 BP |
311 | lib/dirs.c \ |
312 | lib/vswitch-idl.c \ | |
313 | lib/vswitch-idl.h | |
38b7a52b | 314 | CLEANFILES += $(nodist_lib_libopenvswitch_la_SOURCES) |
064af421 | 315 | |
38b7a52b | 316 | lib_LTLIBRARIES += lib/libsflow.la |
7f2f24e3 SM |
317 | lib_libsflow_la_LDFLAGS = \ |
318 | -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \ | |
a4353e20 TG |
319 | -Wl,--version-script=$(top_builddir)/lib/libsflow.sym \ |
320 | $(AM_LDFLAGS) | |
38b7a52b | 321 | lib_libsflow_la_SOURCES = \ |
c72e245a BP |
322 | lib/sflow_api.h \ |
323 | lib/sflow.h \ | |
324 | lib/sflow_agent.c \ | |
325 | lib/sflow_sampler.c \ | |
326 | lib/sflow_poller.c \ | |
327 | lib/sflow_receiver.c | |
38b7a52b HS |
328 | lib_libsflow_la_CPPFLAGS = $(AM_CPPFLAGS) |
329 | lib_libsflow_la_CFLAGS = $(AM_CFLAGS) | |
c72e245a | 330 | if HAVE_WNO_UNUSED |
38b7a52b | 331 | lib_libsflow_la_CFLAGS += -Wno-unused |
c72e245a | 332 | endif |
52af5b99 | 333 | if HAVE_WNO_UNUSED_PARAMETER |
38b7a52b | 334 | lib_libsflow_la_CFLAGS += -Wno-unused-parameter |
52af5b99 | 335 | endif |
c72e245a | 336 | |
5020f5f0 | 337 | if LINUX |
38b7a52b | 338 | lib_libopenvswitch_la_SOURCES += \ |
93451a0a AS |
339 | lib/dpif-netlink.c \ |
340 | lib/dpif-netlink.h \ | |
c83cdd30 | 341 | lib/netdev-linux.c \ |
d3980822 | 342 | lib/netdev-linux.h \ |
45c8d3a1 EJ |
343 | lib/netlink-notifier.c \ |
344 | lib/netlink-notifier.h \ | |
064af421 | 345 | lib/netlink-protocol.h \ |
2fe27d5a BP |
346 | lib/netlink-socket.c \ |
347 | lib/netlink-socket.h \ | |
7c5a3bbf AW |
348 | lib/ovs-numa.c \ |
349 | lib/ovs-numa.h \ | |
7e9dcc0f AW |
350 | lib/rtnetlink.c \ |
351 | lib/rtnetlink.h \ | |
a132aa96 EJ |
352 | lib/route-table.c \ |
353 | lib/route-table.h | |
064af421 BP |
354 | endif |
355 | ||
8a9562d2 PS |
356 | if DPDK_NETDEV |
357 | lib_libopenvswitch_la_SOURCES += \ | |
358 | lib/netdev-dpdk.c \ | |
359 | lib/netdev-dpdk.h | |
360 | endif | |
361 | ||
d5e27716 AS |
362 | if WIN32 |
363 | lib_libopenvswitch_la_SOURCES += \ | |
93451a0a AS |
364 | lib/dpif-netlink.c \ |
365 | lib/dpif-netlink.h \ | |
078eedf4 | 366 | lib/netdev-windows.c \ |
d5e27716 AS |
367 | lib/netlink-notifier.c \ |
368 | lib/netlink-notifier.h \ | |
369 | lib/netlink-protocol.h \ | |
370 | lib/netlink-socket.c \ | |
371 | lib/netlink-socket.h | |
372 | endif | |
373 | ||
97eba8fc | 374 | if HAVE_POSIX_AIO |
38b7a52b | 375 | lib_libopenvswitch_la_SOURCES += lib/async-append-aio.c |
97eba8fc | 376 | else |
38b7a52b | 377 | lib_libopenvswitch_la_SOURCES += lib/async-append-null.c |
97eba8fc BP |
378 | endif |
379 | ||
361906b1 | 380 | if ESX |
38b7a52b | 381 | lib_libopenvswitch_la_SOURCES += \ |
361906b1 EJ |
382 | lib/route-table-stub.c |
383 | endif | |
384 | ||
9360d9b7 | 385 | if HAVE_IF_DL |
38b7a52b | 386 | lib_libopenvswitch_la_SOURCES += \ |
f6eb6b20 GL |
387 | lib/netdev-bsd.c \ |
388 | lib/rtbsd.c \ | |
389 | lib/rtbsd.h \ | |
9360d9b7 EM |
390 | lib/route-table-bsd.c |
391 | endif | |
392 | ||
064af421 | 393 | if HAVE_OPENSSL |
38b7a52b HS |
394 | lib_libopenvswitch_la_SOURCES += lib/stream-ssl.c |
395 | nodist_lib_libopenvswitch_la_SOURCES += lib/dhparams.c | |
064af421 | 396 | lib/dhparams.c: lib/dh1024.pem lib/dh2048.pem lib/dh4096.pem |
ef44aa50 | 397 | $(AM_V_GEN)(echo '#include "lib/dhparams.h"' && \ |
064af421 BP |
398 | openssl dhparam -C -in $(srcdir)/lib/dh1024.pem -noout && \ |
399 | openssl dhparam -C -in $(srcdir)/lib/dh2048.pem -noout && \ | |
400 | openssl dhparam -C -in $(srcdir)/lib/dh4096.pem -noout) \ | |
ef44aa50 | 401 | | sed 's/\(get_dh[0-9]*\)()/\1(void)/' > lib/dhparams.c.tmp && \ |
064af421 | 402 | mv lib/dhparams.c.tmp lib/dhparams.c |
bf8f2167 | 403 | else |
38b7a52b | 404 | lib_libopenvswitch_la_SOURCES += lib/stream-nossl.c |
064af421 BP |
405 | endif |
406 | ||
81696de0 | 407 | pkgconfig_DATA += \ |
e72e07a9 TG |
408 | $(srcdir)/lib/libopenvswitch.pc \ |
409 | $(srcdir)/lib/libsflow.pc | |
81696de0 | 410 | |
064af421 BP |
411 | EXTRA_DIST += \ |
412 | lib/dh1024.pem \ | |
413 | lib/dh2048.pem \ | |
b43c6fe2 BP |
414 | lib/dh4096.pem \ |
415 | lib/dirs.c.in | |
064af421 | 416 | |
0027492d | 417 | MAN_FRAGMENTS += \ |
064af421 | 418 | lib/common.man \ |
f7f62235 | 419 | lib/common-syn.man \ |
a5f607bc | 420 | lib/coverage-unixctl.man \ |
064af421 | 421 | lib/daemon.man \ |
f7f62235 | 422 | lib/daemon-syn.man \ |
f6a2e156 | 423 | lib/db-ctl-base.man \ |
fceef209 | 424 | lib/dpctl.man \ |
149ff68a | 425 | lib/memory-unixctl.man \ |
020c9387 | 426 | lib/ofp-version.man \ |
23edef9e | 427 | lib/ovs.tmac \ |
fda546bd GS |
428 | lib/service.man \ |
429 | lib/service-syn.man \ | |
84ee7bcf | 430 | lib/ssl-bootstrap.man \ |
9467fe62 | 431 | lib/ssl-bootstrap-syn.man \ |
84ee7bcf BP |
432 | lib/ssl-peer-ca-cert.man \ |
433 | lib/ssl.man \ | |
9467fe62 | 434 | lib/ssl-syn.man \ |
3a3eb9da | 435 | lib/table.man \ |
7b38bdc8 BP |
436 | lib/unixctl.man \ |
437 | lib/unixctl-syn.man \ | |
84ee7bcf BP |
438 | lib/vconn-active.man \ |
439 | lib/vconn-passive.man \ | |
b16fdafe | 440 | lib/vlog-unixctl.man \ |
f7f62235 | 441 | lib/vlog-syn.man \ |
064af421 BP |
442 | lib/vlog.man |
443 | ||
6e037e3c | 444 | # vswitch IDL |
ab70cd30 | 445 | OVSIDL_BUILT += lib/vswitch-idl.c lib/vswitch-idl.h lib/vswitch-idl.ovsidl |
6e037e3c | 446 | |
ab70cd30 | 447 | EXTRA_DIST += lib/vswitch-idl.ann |
1f7d1459 | 448 | lib/vswitch-idl.ovsidl: vswitchd/vswitch.ovsschema lib/vswitch-idl.ann |
ab70cd30 | 449 | $(AM_V_GEN)$(OVSDB_IDLC) annotate $(srcdir)/vswitchd/vswitch.ovsschema $(srcdir)/lib/vswitch-idl.ann > $@.tmp && mv $@.tmp $@ |
6e037e3c | 450 | |
b43c6fe2 | 451 | lib/dirs.c: lib/dirs.c.in Makefile |
ef44aa50 | 452 | $(AM_V_GEN)($(ro_c) && sed < $(srcdir)/lib/dirs.c.in \ |
b43c6fe2 BP |
453 | -e 's,[@]srcdir[@],$(srcdir),g' \ |
454 | -e 's,[@]LOGDIR[@],"$(LOGDIR)",g' \ | |
455 | -e 's,[@]RUNDIR[@],"$(RUNDIR)",g' \ | |
f973f2af | 456 | -e 's,[@]DBDIR[@],"$(DBDIR)",g' \ |
b43c6fe2 | 457 | -e 's,[@]bindir[@],"$(bindir)",g' \ |
2fad9ebd | 458 | -e 's,[@]sysconfdir[@],"$(sysconfdir)",g' \ |
b43c6fe2 | 459 | -e 's,[@]pkgdatadir[@],"$(pkgdatadir)",g') \ |
ef44aa50 | 460 | > lib/dirs.c.tmp && \ |
064af421 BP |
461 | mv lib/dirs.c.tmp lib/dirs.c |
462 | ||
a4ce8b25 | 463 | lib/meta-flow.inc: $(srcdir)/build-aux/extract-ofp-fields lib/meta-flow.h |
178742f9 | 464 | $(AM_V_GEN)$(run_python) $^ --meta-flow > $@.tmp && mv $@.tmp $@ |
a4ce8b25 | 465 | lib/meta-flow.lo: lib/meta-flow.inc |
178742f9 BP |
466 | lib/nx-match.inc: $(srcdir)/build-aux/extract-ofp-fields lib/meta-flow.h |
467 | $(AM_V_GEN)$(run_python) $^ --nx-match > $@.tmp && mv $@.tmp $@ | |
468 | lib/nx-match.lo: lib/nx-match.inc | |
469 | CLEANFILES += lib/meta-flow.inc lib/nx-match.inc | |
a4ce8b25 BP |
470 | EXTRA_DIST += build-aux/extract-ofp-fields |
471 | ||
c2d936a4 | 472 | lib/ofp-actions.inc1: $(srcdir)/build-aux/extract-ofp-actions lib/ofp-actions.c |
ef44aa50 | 473 | $(AM_V_GEN)$(run_python) $^ --prototypes > $@.tmp && mv $@.tmp $@ |
c2d936a4 | 474 | lib/ofp-actions.inc2: $(srcdir)/build-aux/extract-ofp-actions lib/ofp-actions.c |
ef44aa50 | 475 | $(AM_V_GEN)$(run_python) $^ --definitions > $@.tmp && mv $@.tmp $@ |
c2d936a4 | 476 | lib/ofp-actions.lo: lib/ofp-actions.inc1 lib/ofp-actions.inc2 |
07ba3dbd | 477 | CLEANFILES += lib/ofp-actions.inc1 lib/ofp-actions.inc2 |
a4ce8b25 | 478 | EXTRA_DIST += build-aux/extract-ofp-actions |
c2d936a4 | 479 | |
ab70cd30 | 480 | lib/ofp-errors.inc: lib/ofp-errors.h include/openflow/openflow-common.h \ |
514887ee | 481 | $(srcdir)/build-aux/extract-ofp-errors |
ef44aa50 | 482 | $(AM_V_GEN)$(run_python) $(srcdir)/build-aux/extract-ofp-errors \ |
514887ee | 483 | $(srcdir)/lib/ofp-errors.h \ |
ef44aa50 | 484 | $(srcdir)/include/openflow/openflow-common.h > $@.tmp && \ |
514887ee | 485 | mv $@.tmp $@ |
5b3c194f | 486 | lib/ofp-errors.lo: lib/ofp-errors.inc |
1f7d1459 | 487 | CLEANFILES += lib/ofp-errors.inc |
ab70cd30 | 488 | EXTRA_DIST += build-aux/extract-ofp-errors |
dc4762ed | 489 | |
ab70cd30 | 490 | lib/ofp-msgs.inc: lib/ofp-msgs.h $(srcdir)/build-aux/extract-ofp-msgs |
ef44aa50 | 491 | $(AM_V_GEN)$(run_python) $(srcdir)/build-aux/extract-ofp-msgs \ |
982697a4 | 492 | $(srcdir)/lib/ofp-msgs.h $@ > $@.tmp && mv $@.tmp $@ |
5b3c194f | 493 | lib/ofp-msgs.lo: lib/ofp-msgs.inc |
1f7d1459 | 494 | CLEANFILES += lib/ofp-msgs.inc |
ab70cd30 | 495 | EXTRA_DIST += build-aux/extract-ofp-msgs |
982697a4 | 496 | |
b2df0225 | 497 | INSTALL_DATA_LOCAL += lib-install-data-local |
99155935 | 498 | lib-install-data-local: |
064af421 BP |
499 | $(MKDIR_P) $(DESTDIR)$(RUNDIR) |
500 | $(MKDIR_P) $(DESTDIR)$(PKIDIR) | |
501 | $(MKDIR_P) $(DESTDIR)$(LOGDIR) | |
f973f2af | 502 | $(MKDIR_P) $(DESTDIR)$(DBDIR) |
064af421 | 503 |