]> git.proxmox.com Git - mirror_ovs.git/blob - lib/automake.mk
ovsdb-idl: Fix iteration over tracked rows with no actual data.
[mirror_ovs.git] / lib / automake.mk
1 # Copyright (C) 2009-2018 Nicira, Inc.
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
8 lib_LTLIBRARIES += lib/libopenvswitch.la
9
10 lib_libopenvswitch_la_LIBADD = $(SSL_LIBS)
11 lib_libopenvswitch_la_LIBADD += $(CAPNG_LDADD)
12 lib_libopenvswitch_la_LIBADD += $(LIBBPF_LDADD)
13
14
15 if WIN32
16 lib_libopenvswitch_la_LIBADD += ${PTHREAD_LIBS}
17 endif
18
19 lib_libopenvswitch_la_LDFLAGS = \
20 $(OVS_LTINFO) \
21 -Wl,--version-script=$(top_builddir)/lib/libopenvswitch.sym \
22 $(AM_LDFLAGS)
23
24 if HAVE_AVX512F
25 if HAVE_LD_AVX512_GOOD
26 # Build library of avx512 code with CPU ISA CFLAGS enabled. This allows the
27 # compiler to use the ISA features required for the ISA optimized code-paths.
28 # Use LDFLAGS to compile only static library of this code, as it should be
29 # statically linked into vswitchd even if vswitchd is a shared build.
30 lib_LTLIBRARIES += lib/libopenvswitchavx512.la
31 lib_libopenvswitch_la_LIBADD += lib/libopenvswitchavx512.la
32 lib_libopenvswitchavx512_la_CFLAGS = \
33 -mavx512f \
34 -mavx512bw \
35 -mavx512dq \
36 -mbmi2 \
37 -fPIC \
38 $(AM_CFLAGS)
39 lib_libopenvswitchavx512_la_SOURCES = \
40 lib/dpif-netdev-lookup-avx512-gather.c
41 lib_libopenvswitchavx512_la_LDFLAGS = \
42 -static
43 endif
44 endif
45
46 # Build core vswitch libraries as before
47 lib_libopenvswitch_la_SOURCES = \
48 lib/aes128.c \
49 lib/aes128.h \
50 lib/async-append.h \
51 lib/backtrace.c \
52 lib/backtrace.h \
53 lib/bfd.c \
54 lib/bfd.h \
55 lib/bitmap.h \
56 lib/bundle.c \
57 lib/bundle.h \
58 lib/byte-order.h \
59 lib/byteq.c \
60 lib/byteq.h \
61 lib/cfm.c \
62 lib/cfm.h \
63 lib/classifier.c \
64 lib/classifier.h \
65 lib/classifier-private.h \
66 lib/ccmap.c \
67 lib/ccmap.h \
68 lib/cmap.c \
69 lib/cmap.h \
70 lib/colors.c \
71 lib/colors.h \
72 lib/command-line.c \
73 lib/command-line.h \
74 lib/compiler.h \
75 lib/connectivity.c \
76 lib/connectivity.h \
77 lib/conntrack-icmp.c \
78 lib/conntrack-private.h \
79 lib/conntrack-tcp.c \
80 lib/conntrack-tp.c \
81 lib/conntrack-tp.h \
82 lib/conntrack-other.c \
83 lib/conntrack.c \
84 lib/conntrack.h \
85 lib/coverage.c \
86 lib/coverage.h \
87 lib/crc32c.c \
88 lib/crc32c.h \
89 lib/csum.c \
90 lib/csum.h \
91 lib/ct-dpif.c \
92 lib/ct-dpif.h \
93 lib/daemon.c \
94 lib/daemon.h \
95 lib/daemon-private.h \
96 lib/db-ctl-base.c \
97 lib/db-ctl-base.h \
98 lib/dhcp.h \
99 lib/dummy.c \
100 lib/dummy.h \
101 lib/dhparams.h \
102 lib/dirs.h \
103 lib/dpctl.c \
104 lib/dpctl.h \
105 lib/dp-packet.h \
106 lib/dp-packet.c \
107 lib/dpdk.h \
108 lib/dpif-netdev-lookup.h \
109 lib/dpif-netdev-lookup.c \
110 lib/dpif-netdev-lookup-autovalidator.c \
111 lib/dpif-netdev-lookup-generic.c \
112 lib/dpif-netdev.c \
113 lib/dpif-netdev.h \
114 lib/dpif-netdev-private.h \
115 lib/dpif-netdev-perf.c \
116 lib/dpif-netdev-perf.h \
117 lib/dpif-provider.h \
118 lib/dpif.c \
119 lib/dpif.h \
120 lib/heap.c \
121 lib/heap.h \
122 lib/dynamic-string.c \
123 lib/entropy.c \
124 lib/entropy.h \
125 lib/fat-rwlock.c \
126 lib/fat-rwlock.h \
127 lib/fatal-signal.c \
128 lib/fatal-signal.h \
129 lib/flow.c \
130 lib/flow.h \
131 lib/guarded-list.c \
132 lib/guarded-list.h \
133 lib/hash.c \
134 lib/hash.h \
135 lib/hash-aarch64.h \
136 lib/hindex.c \
137 lib/hindex.h \
138 lib/hmap.c \
139 lib/hmapx.c \
140 lib/hmapx.h \
141 lib/id-pool.c \
142 lib/id-pool.h \
143 lib/if-notifier-manual.c \
144 lib/if-notifier.h \
145 lib/ipf.c \
146 lib/ipf.h \
147 lib/jhash.c \
148 lib/jhash.h \
149 lib/json.c \
150 lib/jsonrpc.c \
151 lib/jsonrpc.h \
152 lib/lacp.c \
153 lib/lacp.h \
154 lib/latch.h \
155 lib/learn.c \
156 lib/learn.h \
157 lib/learning-switch.c \
158 lib/learning-switch.h \
159 lib/lockfile.c \
160 lib/lockfile.h \
161 lib/mac-learning.c \
162 lib/mac-learning.h \
163 lib/match.c \
164 lib/mcast-snooping.c \
165 lib/mcast-snooping.h \
166 lib/memory.c \
167 lib/memory.h \
168 lib/meta-flow.c \
169 lib/multipath.c \
170 lib/multipath.h \
171 lib/namemap.c \
172 lib/netdev-dpdk.h \
173 lib/netdev-dummy.c \
174 lib/netdev-offload.c \
175 lib/netdev-offload.h \
176 lib/netdev-offload-provider.h \
177 lib/netdev-provider.h \
178 lib/netdev-vport.c \
179 lib/netdev-vport.h \
180 lib/netdev-vport-private.h \
181 lib/netdev.c \
182 lib/netdev.h \
183 lib/netflow.h \
184 lib/netlink.c \
185 lib/netlink.h \
186 lib/netnsid.h \
187 lib/nx-match.c \
188 lib/nx-match.h \
189 lib/object-collection.c \
190 lib/object-collection.h \
191 lib/odp-execute.c \
192 lib/odp-execute.h \
193 lib/odp-util.c \
194 lib/odp-util.h \
195 lib/ofp-actions.c \
196 lib/ofp-bundle.c \
197 lib/ofp-connection.c \
198 lib/ofp-ed-props.c \
199 lib/ofp-errors.c \
200 lib/ofp-flow.c \
201 lib/ofp-group.c \
202 lib/ofp-ipfix.c \
203 lib/ofp-match.c \
204 lib/ofp-meter.c \
205 lib/ofp-monitor.c \
206 lib/ofp-msgs.c \
207 lib/ofp-packet.c \
208 lib/ofp-parse.c \
209 lib/ofp-port.c \
210 lib/ofp-print.c \
211 lib/ofp-prop.c \
212 lib/ofp-protocol.c \
213 lib/ofp-queue.c \
214 lib/ofp-switch.c \
215 lib/ofp-table.c \
216 lib/ofp-util.c \
217 lib/ofp-version-opt.h \
218 lib/ofp-version-opt.c \
219 lib/ofpbuf.c \
220 lib/ovs-atomic-c++.h \
221 lib/ovs-atomic-c11.h \
222 lib/ovs-atomic-clang.h \
223 lib/ovs-atomic-flag-gcc4.7+.h \
224 lib/ovs-atomic-gcc4+.h \
225 lib/ovs-atomic-gcc4.7+.h \
226 lib/ovs-atomic-i586.h \
227 lib/ovs-atomic-locked.c \
228 lib/ovs-atomic-locked.h \
229 lib/ovs-atomic-msvc.h \
230 lib/ovs-atomic-pthreads.h \
231 lib/ovs-atomic-x86_64.h \
232 lib/ovs-atomic.h \
233 lib/ovs-lldp.c \
234 lib/ovs-lldp.h \
235 lib/ovs-numa.c \
236 lib/ovs-numa.h \
237 lib/ovs-rcu.c \
238 lib/ovs-rcu.h \
239 lib/ovs-router.h \
240 lib/ovs-router.c \
241 lib/ovs-thread.c \
242 lib/ovs-thread.h \
243 lib/ovsdb-data.c \
244 lib/ovsdb-data.h \
245 lib/ovsdb-error.c \
246 lib/ovsdb-error.h \
247 lib/ovsdb-idl-provider.h \
248 lib/ovsdb-idl.c \
249 lib/ovsdb-idl.h \
250 lib/ovsdb-map-op.c \
251 lib/ovsdb-map-op.h \
252 lib/ovsdb-set-op.c \
253 lib/ovsdb-set-op.h \
254 lib/ovsdb-condition.h \
255 lib/ovsdb-condition.c \
256 lib/ovsdb-parser.c \
257 lib/ovsdb-parser.h \
258 lib/ovsdb-session.c \
259 lib/ovsdb-session.h \
260 lib/ovsdb-types.c \
261 lib/ovsdb-types.h \
262 lib/ox-stat.c \
263 lib/ox-stat.h \
264 lib/packets.c \
265 lib/packets.h \
266 lib/pcap-file.c \
267 lib/pcap-file.h \
268 lib/perf-counter.h \
269 lib/perf-counter.c \
270 lib/stopwatch.h \
271 lib/stopwatch.c \
272 lib/poll-loop.c \
273 lib/process.c \
274 lib/process.h \
275 lib/pvector.c \
276 lib/pvector.h \
277 lib/random.c \
278 lib/random.h \
279 lib/rconn.c \
280 lib/rculist.h \
281 lib/reconnect.c \
282 lib/reconnect.h \
283 lib/rstp.c \
284 lib/rstp.h \
285 lib/rstp-common.h \
286 lib/rstp-state-machines.c \
287 lib/rstp-state-machines.h \
288 lib/sat-math.h \
289 lib/seq.c \
290 lib/seq.h \
291 lib/sha1.c \
292 lib/sha1.h \
293 lib/shash.c \
294 lib/simap.c \
295 lib/simap.h \
296 lib/skiplist.c \
297 lib/skiplist.h \
298 lib/smap.c \
299 lib/smap.h \
300 lib/socket-util.c \
301 lib/socket-util.h \
302 lib/sort.c \
303 lib/sort.h \
304 lib/sset.c \
305 lib/sset.h \
306 lib/stp.c \
307 lib/stp.h \
308 lib/stream-fd.c \
309 lib/stream-fd.h \
310 lib/stream-provider.h \
311 lib/stream-ssl.h \
312 lib/stream-tcp.c \
313 lib/stream.c \
314 lib/stream.h \
315 lib/stdio.c \
316 lib/string.c \
317 lib/svec.c \
318 lib/svec.h \
319 lib/syslog-direct.c \
320 lib/syslog-direct.h \
321 lib/syslog-libc.c \
322 lib/syslog-libc.h \
323 lib/syslog-null.c \
324 lib/syslog-null.h \
325 lib/syslog-provider.h \
326 lib/table.c \
327 lib/table.h \
328 lib/timer.c \
329 lib/timer.h \
330 lib/timeval.c \
331 lib/timeval.h \
332 lib/tnl-neigh-cache.c \
333 lib/tnl-neigh-cache.h \
334 lib/tnl-ports.c \
335 lib/tnl-ports.h \
336 lib/netdev-native-tnl.c \
337 lib/netdev-native-tnl.h \
338 lib/token-bucket.c \
339 lib/tun-metadata.c \
340 lib/tun-metadata.h \
341 lib/unaligned.h \
342 lib/unicode.c \
343 lib/unicode.h \
344 lib/unixctl.c \
345 lib/unixctl.h \
346 lib/userspace-tso.c \
347 lib/userspace-tso.h \
348 lib/util.c \
349 lib/util.h \
350 lib/uuid.c \
351 lib/uuid.h \
352 lib/valgrind.h \
353 lib/vconn-provider.h \
354 lib/vconn-stream.c \
355 lib/vconn.c \
356 lib/versions.h \
357 lib/vl-mff-map.h \
358 lib/vlan-bitmap.c \
359 lib/vlan-bitmap.h \
360 lib/vlog.c \
361 lib/lldp/aa-structs.h \
362 lib/lldp/lldp.c \
363 lib/lldp/lldp-const.h \
364 lib/lldp/lldp-tlv.h \
365 lib/lldp/lldpd.c \
366 lib/lldp/lldpd.h \
367 lib/lldp/lldpd-structs.c \
368 lib/lldp/lldpd-structs.h
369
370 if WIN32
371 lib_libopenvswitch_la_SOURCES += \
372 lib/daemon-windows.c \
373 lib/getopt_long.c \
374 lib/getrusage-windows.c \
375 lib/latch-windows.c \
376 lib/route-table-stub.c \
377 lib/if-notifier-stub.c \
378 lib/stream-windows.c \
379 lib/strsep.c
380 else
381 lib_libopenvswitch_la_SOURCES += \
382 lib/daemon-unix.c \
383 lib/latch-unix.c \
384 lib/signals.c \
385 lib/signals.h \
386 lib/socket-util-unix.c \
387 lib/stream-unix.c
388 endif
389
390 EXTRA_DIST += \
391 lib/stdio.h.in \
392 lib/string.h.in
393
394 nodist_lib_libopenvswitch_la_SOURCES = \
395 lib/dirs.c \
396 lib/ovsdb-server-idl.c \
397 lib/ovsdb-server-idl.h \
398 lib/vswitch-idl.c \
399 lib/vswitch-idl.h
400 CLEANFILES += $(nodist_lib_libopenvswitch_la_SOURCES)
401
402 lib_LTLIBRARIES += lib/libsflow.la
403 lib_libsflow_la_LDFLAGS = \
404 $(OVS_LTINFO) \
405 -Wl,--version-script=$(top_builddir)/lib/libsflow.sym \
406 $(AM_LDFLAGS)
407 lib_libsflow_la_SOURCES = \
408 lib/sflow_api.h \
409 lib/sflow.h \
410 lib/sflow_agent.c \
411 lib/sflow_sampler.c \
412 lib/sflow_poller.c \
413 lib/sflow_receiver.c
414 lib_libsflow_la_CPPFLAGS = $(AM_CPPFLAGS)
415 lib_libsflow_la_CFLAGS = $(AM_CFLAGS)
416 if HAVE_WNO_UNUSED
417 lib_libsflow_la_CFLAGS += -Wno-unused
418 endif
419 if HAVE_WNO_UNUSED_PARAMETER
420 lib_libsflow_la_CFLAGS += -Wno-unused-parameter
421 endif
422
423 if LINUX
424 lib_libopenvswitch_la_SOURCES += \
425 lib/dpif-netlink.c \
426 lib/dpif-netlink.h \
427 lib/dpif-netlink-rtnl.c \
428 lib/dpif-netlink-rtnl.h \
429 lib/if-notifier.c \
430 lib/netdev-linux.c \
431 lib/netdev-linux.h \
432 lib/netdev-linux-private.h \
433 lib/netdev-offload-tc.c \
434 lib/netlink-conntrack.c \
435 lib/netlink-conntrack.h \
436 lib/netlink-notifier.c \
437 lib/netlink-notifier.h \
438 lib/netlink-protocol.h \
439 lib/netlink-socket.c \
440 lib/netlink-socket.h \
441 lib/rtnetlink.c \
442 lib/rtnetlink.h \
443 lib/route-table.c \
444 lib/route-table.h \
445 lib/tc.c \
446 lib/tc.h
447 endif
448
449 if HAVE_AF_XDP
450 lib_libopenvswitch_la_SOURCES += \
451 lib/netdev-afxdp-pool.c \
452 lib/netdev-afxdp-pool.h \
453 lib/netdev-afxdp.c \
454 lib/netdev-afxdp.h
455 endif
456
457 if DPDK_NETDEV
458 lib_libopenvswitch_la_SOURCES += \
459 lib/dpdk.c \
460 lib/netdev-dpdk.c \
461 lib/netdev-offload-dpdk.c
462 else
463 lib_libopenvswitch_la_SOURCES += \
464 lib/dpdk-stub.c
465 endif
466
467 if WIN32
468 lib_libopenvswitch_la_SOURCES += \
469 lib/dpif-netlink.c \
470 lib/dpif-netlink.h \
471 lib/dpif-netlink-rtnl.h \
472 lib/netdev-windows.c \
473 lib/netlink-conntrack.c \
474 lib/netlink-conntrack.h \
475 lib/netlink-notifier.c \
476 lib/netlink-notifier.h \
477 lib/netlink-protocol.h \
478 lib/netlink-socket.c \
479 lib/netlink-socket.h \
480 lib/wmi.c \
481 lib/wmi.h
482 endif
483
484 if HAVE_POSIX_AIO
485 lib_libopenvswitch_la_SOURCES += lib/async-append-aio.c
486 else
487 lib_libopenvswitch_la_SOURCES += lib/async-append-null.c
488 endif
489
490 if HAVE_IF_DL
491 lib_libopenvswitch_la_SOURCES += \
492 lib/if-notifier-bsd.c \
493 lib/netdev-bsd.c \
494 lib/rtbsd.c \
495 lib/rtbsd.h \
496 lib/route-table-bsd.c
497 endif
498
499 .PHONY: generate-dhparams-c
500 if HAVE_OPENSSL
501 lib_libopenvswitch_la_SOURCES += lib/stream-ssl.c lib/dhparams.c
502
503 # Manually regenerates lib/dhparams.c. Not normally necessary since
504 # lib/dhparams.c is part of the repository and doesn't normally need
505 # updates.
506 generate-dhparams-c:
507 $(AM_V_GEN)cd $(srcdir) && \
508 build-aux/generate-dhparams-c > lib/dhparams.c.tmp && \
509 mv lib/dhparams.c.tmp lib/dhparams.c
510 else
511 lib_libopenvswitch_la_SOURCES += lib/stream-nossl.c
512 endif
513
514 lib_libopenvswitch_la_SOURCES += lib/dns-resolve.h
515 if HAVE_UNBOUND
516 lib_libopenvswitch_la_SOURCES += lib/dns-resolve.c
517 else
518 lib_libopenvswitch_la_SOURCES += lib/dns-resolve-stub.c
519 endif
520
521 pkgconfig_DATA += \
522 lib/libopenvswitch.pc \
523 lib/libsflow.pc
524
525 EXTRA_DIST += \
526 lib/dh1024.pem \
527 lib/dh2048.pem \
528 lib/dh4096.pem \
529 lib/common.xml \
530 lib/daemon.xml \
531 lib/dirs.c.in \
532 lib/db-ctl-base.xml \
533 lib/ssl.xml \
534 lib/ssl-bootstrap.xml \
535 lib/ssl-peer-ca-cert.xml \
536 lib/table.xml \
537 lib/vlog.xml \
538 lib/unixctl.xml
539
540 MAN_FRAGMENTS += \
541 lib/colors.man \
542 lib/common.man \
543 lib/common-syn.man \
544 lib/coverage-unixctl.man \
545 lib/daemon.man \
546 lib/daemon-syn.man \
547 lib/db-ctl-base.man \
548 lib/dpctl.man \
549 lib/dpdk-unixctl.man \
550 lib/memory-unixctl.man \
551 lib/netdev-dpdk-unixctl.man \
552 lib/dpif-netdev-unixctl.man \
553 lib/ofp-version.man \
554 lib/ovs.tmac \
555 lib/service.man \
556 lib/service-syn.man \
557 lib/ssl-bootstrap.man \
558 lib/ssl-bootstrap-syn.man \
559 lib/ssl-peer-ca-cert.man \
560 lib/ssl-peer-ca-cert-syn.man \
561 lib/ssl.man \
562 lib/ssl-syn.man \
563 lib/ssl-connect.man \
564 lib/ssl-connect-syn.man \
565 lib/table.man \
566 lib/unixctl.man \
567 lib/unixctl-syn.man \
568 lib/vconn-active.man \
569 lib/vconn-passive.man \
570 lib/vlog-unixctl.man \
571 lib/vlog-syn.man \
572 lib/vlog.man
573
574 # vswitch IDL
575 OVSIDL_BUILT += lib/vswitch-idl.c lib/vswitch-idl.h lib/vswitch-idl.ovsidl
576
577 EXTRA_DIST += lib/vswitch-idl.ann
578 lib/vswitch-idl.ovsidl: vswitchd/vswitch.ovsschema lib/vswitch-idl.ann
579 $(AM_V_GEN)$(OVSDB_IDLC) annotate $(srcdir)/vswitchd/vswitch.ovsschema $(srcdir)/lib/vswitch-idl.ann > $@.tmp && mv $@.tmp $@
580
581 lib/dirs.c: lib/dirs.c.in Makefile
582 $(AM_V_GEN)($(ro_c) && sed < $(srcdir)/lib/dirs.c.in \
583 -e 's,[@]srcdir[@],$(srcdir),g' \
584 -e 's,[@]LOGDIR[@],"$(LOGDIR)",g' \
585 -e 's,[@]RUNDIR[@],"$(RUNDIR)",g' \
586 -e 's,[@]DBDIR[@],"$(DBDIR)",g' \
587 -e 's,[@]bindir[@],"$(bindir)",g' \
588 -e 's,[@]sysconfdir[@],"$(sysconfdir)",g' \
589 -e 's,[@]pkgdatadir[@],"$(pkgdatadir)",g') \
590 > lib/dirs.c.tmp && \
591 mv lib/dirs.c.tmp lib/dirs.c
592
593 lib/meta-flow.inc: $(srcdir)/build-aux/extract-ofp-fields include/openvswitch/meta-flow.h
594 $(AM_V_GEN)$(run_python) $< meta-flow $(srcdir)/include/openvswitch/meta-flow.h > $@.tmp
595 $(AM_V_at)mv $@.tmp $@
596 lib/meta-flow.lo: lib/meta-flow.inc
597 lib/nx-match.inc: $(srcdir)/build-aux/extract-ofp-fields include/openvswitch/meta-flow.h
598 $(AM_V_GEN)$(run_python) $< nx-match $(srcdir)/include/openvswitch/meta-flow.h > $@.tmp
599 $(AM_V_at)mv $@.tmp $@
600 lib/nx-match.lo: lib/nx-match.inc
601 CLEANFILES += lib/meta-flow.inc lib/nx-match.inc
602 EXTRA_DIST += build-aux/extract-ofp-fields
603
604 lib/ofp-actions.inc1: $(srcdir)/build-aux/extract-ofp-actions lib/ofp-actions.c
605 $(AM_V_GEN)$(run_python) $< prototypes $(srcdir)/lib/ofp-actions.c > $@.tmp && mv $@.tmp $@
606 lib/ofp-actions.inc2: $(srcdir)/build-aux/extract-ofp-actions lib/ofp-actions.c
607 $(AM_V_GEN)$(run_python) $< definitions $(srcdir)/lib/ofp-actions.c > $@.tmp && mv $@.tmp $@
608 lib/ofp-actions.lo: lib/ofp-actions.inc1 lib/ofp-actions.inc2
609 CLEANFILES += lib/ofp-actions.inc1 lib/ofp-actions.inc2
610 EXTRA_DIST += build-aux/extract-ofp-actions
611
612 lib/ofp-errors.inc: include/openvswitch/ofp-errors.h include/openflow/openflow-common.h \
613 $(srcdir)/build-aux/extract-ofp-errors
614 $(AM_V_GEN)$(run_python) $(srcdir)/build-aux/extract-ofp-errors \
615 $(srcdir)/include/openvswitch/ofp-errors.h \
616 $(srcdir)/include/openflow/openflow-common.h > $@.tmp && \
617 mv $@.tmp $@
618 lib/ofp-errors.lo: lib/ofp-errors.inc
619 CLEANFILES += lib/ofp-errors.inc
620 EXTRA_DIST += build-aux/extract-ofp-errors
621
622 lib/ofp-msgs.inc: include/openvswitch/ofp-msgs.h $(srcdir)/build-aux/extract-ofp-msgs
623 $(AM_V_GEN)$(run_python) $(srcdir)/build-aux/extract-ofp-msgs \
624 $(srcdir)/include/openvswitch/ofp-msgs.h $@ > $@.tmp && mv $@.tmp $@
625 lib/ofp-msgs.lo: lib/ofp-msgs.inc
626 CLEANFILES += lib/ofp-msgs.inc
627 EXTRA_DIST += build-aux/extract-ofp-msgs
628
629 # _server IDL
630 OVSIDL_BUILT += lib/ovsdb-server-idl.c lib/ovsdb-server-idl.h lib/ovsdb-server-idl.ovsidl
631 EXTRA_DIST += lib/ovsdb-server-idl.ann
632 lib/ovsdb-server-idl.ovsidl: ovsdb/_server.ovsschema lib/ovsdb-server-idl.ann
633 $(AM_V_GEN)$(OVSDB_IDLC) annotate $(srcdir)/ovsdb/_server.ovsschema $(srcdir)/lib/ovsdb-server-idl.ann > $@.tmp && mv $@.tmp $@
634
635 INSTALL_DATA_LOCAL += lib-install-data-local
636 lib-install-data-local:
637 $(MKDIR_P) $(DESTDIR)$(PKIDIR)
638 $(MKDIR_P) $(DESTDIR)$(sysconfdir)/openvswitch
639
640 man_MANS += lib/ovs-fields.7
641 CLEANFILES += lib/ovs-fields.7
642 lib/ovs-fields.7: $(srcdir)/build-aux/extract-ofp-fields include/openvswitch/meta-flow.h lib/meta-flow.xml
643 $(AM_V_GEN)PYTHONIOENCODING=utf8 $(run_python) $< \
644 --ovs-version=$(VERSION) ovs-fields \
645 $(srcdir)/include/openvswitch/meta-flow.h \
646 $(srcdir)/lib/meta-flow.xml > $@.tmp
647 $(AM_V_at)mv $@.tmp $@
648 EXTRA_DIST += lib/meta-flow.xml
649
650 man_MANS += lib/ovs-actions.7
651 CLEANFILES += lib/ovs-actions.7
652 lib/ovs-actions.7: $(srcdir)/build-aux/extract-ofp-actions lib/ovs-actions.xml
653 $(AM_V_GEN)PYTHONIOENCODING=utf8 $(run_python) $< \
654 --ovs-version=$(VERSION) ovs-actions \
655 $(srcdir)/lib/ovs-actions.xml > $@.tmp
656 $(AM_V_at)mv $@.tmp $@
657 EXTRA_DIST += lib/ovs-actions.xml