1 # Copyright (C) 2009-2018 Nicira, Inc.
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.
8 lib_LTLIBRARIES
+= lib
/libopenvswitch.la
10 lib_libopenvswitch_la_LIBADD
= $(SSL_LIBS
)
11 lib_libopenvswitch_la_LIBADD
+= $(CAPNG_LDADD
)
12 lib_libopenvswitch_la_LIBADD
+= $(LIBBPF_LDADD
)
15 lib_libopenvswitch_la_LIBADD
+= ${PTHREAD_LIBS}
18 lib_libopenvswitch_la_LDFLAGS
= \
20 -Wl
,--version-script
=$(top_builddir
)/lib
/libopenvswitch.sym \
23 lib_libopenvswitch_la_SOURCES
= \
41 lib
/classifier-private.h \
53 lib
/conntrack-icmp.c \
54 lib
/conntrack-private.h \
56 lib
/conntrack-other.c \
69 lib
/daemon-private.h \
82 lib
/dpif-netdev-lookup-generic.c \
85 lib
/dpif-netdev-private.h \
86 lib
/dpif-netdev-perf.c \
87 lib
/dpif-netdev-perf.h \
93 lib
/dynamic-string.c \
126 lib
/learning-switch.c \
127 lib
/learning-switch.h \
133 lib
/mcast-snooping.c \
134 lib
/mcast-snooping.h \
143 lib
/netdev-offload.c \
144 lib
/netdev-offload.h \
145 lib
/netdev-offload-provider.h \
146 lib
/netdev-provider.h \
149 lib
/netdev-vport-private.h \
158 lib
/object-collection.c \
159 lib
/object-collection.h \
166 lib
/ofp-connection.c \
186 lib
/ofp-version-opt.h \
187 lib
/ofp-version-opt.c \
189 lib
/ovs-atomic-c
++.h \
190 lib
/ovs-atomic-c11.h \
191 lib
/ovs-atomic-clang.h \
192 lib
/ovs-atomic-flag-gcc4.7
+.h \
193 lib
/ovs-atomic-gcc4
+.h \
194 lib
/ovs-atomic-gcc4.7
+.h \
195 lib
/ovs-atomic-i586.h \
196 lib
/ovs-atomic-locked.c \
197 lib
/ovs-atomic-locked.h \
198 lib
/ovs-atomic-msvc.h \
199 lib
/ovs-atomic-pthreads.h \
200 lib
/ovs-atomic-x86_64.h \
216 lib
/ovsdb-idl-provider.h \
223 lib
/ovsdb-condition.h \
224 lib
/ovsdb-condition.c \
227 lib
/ovsdb-session.c \
228 lib
/ovsdb-session.h \
255 lib
/rstp-state-machines.c \
256 lib
/rstp-state-machines.h \
279 lib
/stream-provider.h \
288 lib
/syslog-direct.c \
289 lib
/syslog-direct.h \
294 lib
/syslog-provider.h \
301 lib
/tnl-neigh-cache.c \
302 lib
/tnl-neigh-cache.h \
305 lib
/netdev-native-tnl.c \
306 lib
/netdev-native-tnl.h \
320 lib
/vconn-provider.h \
328 lib
/lldp
/aa-structs.h \
330 lib
/lldp
/lldp-const.h \
331 lib
/lldp
/lldp-tlv.h \
334 lib
/lldp
/lldpd-structs.c \
335 lib
/lldp
/lldpd-structs.h
338 lib_libopenvswitch_la_SOURCES
+= \
339 lib
/daemon-windows.c \
341 lib
/getrusage-windows.c \
342 lib
/latch-windows.c \
343 lib
/route-table-stub.c \
344 lib
/if-notifier-stub.c \
345 lib
/stream-windows.c \
348 lib_libopenvswitch_la_SOURCES
+= \
353 lib
/socket-util-unix.c \
361 nodist_lib_libopenvswitch_la_SOURCES
= \
363 lib
/ovsdb-server-idl.c \
364 lib
/ovsdb-server-idl.h \
367 CLEANFILES
+= $(nodist_lib_libopenvswitch_la_SOURCES
)
369 lib_LTLIBRARIES
+= lib
/libsflow.la
370 lib_libsflow_la_LDFLAGS
= \
372 -Wl
,--version-script
=$(top_builddir
)/lib
/libsflow.sym \
374 lib_libsflow_la_SOURCES
= \
378 lib
/sflow_sampler.c \
381 lib_libsflow_la_CPPFLAGS
= $(AM_CPPFLAGS
)
382 lib_libsflow_la_CFLAGS
= $(AM_CFLAGS
)
384 lib_libsflow_la_CFLAGS
+= -Wno-unused
386 if HAVE_WNO_UNUSED_PARAMETER
387 lib_libsflow_la_CFLAGS
+= -Wno-unused-parameter
391 lib_libopenvswitch_la_SOURCES
+= \
394 lib
/dpif-netlink-rtnl.c \
395 lib
/dpif-netlink-rtnl.h \
400 lib
/netdev-linux-private.h \
401 lib
/netdev-offload-tc.c \
402 lib
/netlink-conntrack.c \
403 lib
/netlink-conntrack.h \
404 lib
/netlink-notifier.c \
405 lib
/netlink-notifier.h \
406 lib
/netlink-protocol.h \
407 lib
/netlink-socket.c \
408 lib
/netlink-socket.h \
418 lib_libopenvswitch_la_SOURCES
+= \
419 lib
/netdev-afxdp-pool.c \
420 lib
/netdev-afxdp-pool.h \
426 lib_libopenvswitch_la_SOURCES
+= \
429 lib
/netdev-offload-dpdk.c
431 lib_libopenvswitch_la_SOURCES
+= \
436 lib_libopenvswitch_la_SOURCES
+= \
439 lib
/dpif-netlink-rtnl.h \
440 lib
/netdev-windows.c \
441 lib
/netlink-conntrack.c \
442 lib
/netlink-conntrack.h \
443 lib
/netlink-notifier.c \
444 lib
/netlink-notifier.h \
445 lib
/netlink-protocol.h \
446 lib
/netlink-socket.c \
447 lib
/netlink-socket.h \
453 lib_libopenvswitch_la_SOURCES
+= lib
/async-append-aio.c
455 lib_libopenvswitch_la_SOURCES
+= lib
/async-append-null.c
459 lib_libopenvswitch_la_SOURCES
+= \
460 lib
/if-notifier-bsd.c \
464 lib
/route-table-bsd.c
467 .PHONY
: generate-dhparams-c
469 lib_libopenvswitch_la_SOURCES
+= lib
/stream-ssl.c lib
/dhparams.c
471 # Manually regenerates lib/dhparams.c. Not normally necessary since
472 # lib/dhparams.c is part of the repository and doesn't normally need
475 $(AM_V_GEN
)cd
$(srcdir) && \
476 build-aux
/generate-dhparams-c
> lib
/dhparams.c.tmp
&& \
477 mv lib
/dhparams.c.tmp lib
/dhparams.c
479 lib_libopenvswitch_la_SOURCES
+= lib
/stream-nossl.c
482 lib_libopenvswitch_la_SOURCES
+= lib
/dns-resolve.h
484 lib_libopenvswitch_la_SOURCES
+= lib
/dns-resolve.c
486 lib_libopenvswitch_la_SOURCES
+= lib
/dns-resolve-stub.c
490 lib
/libopenvswitch.
pc \
500 lib
/db-ctl-base.xml \
502 lib
/ssl-bootstrap.xml \
503 lib
/ssl-peer-ca-cert.xml \
512 lib
/coverage-unixctl.man \
515 lib
/db-ctl-base.man \
517 lib
/memory-unixctl.man \
518 lib
/netdev-dpdk-unixctl.man \
519 lib
/dpif-netdev-unixctl.man \
520 lib
/ofp-version.man \
523 lib
/service-syn.man \
524 lib
/ssl-bootstrap.man \
525 lib
/ssl-bootstrap-syn.man \
526 lib
/ssl-peer-ca-cert.man \
527 lib
/ssl-peer-ca-cert-syn.man \
530 lib
/ssl-connect.man \
531 lib
/ssl-connect-syn.man \
534 lib
/unixctl-syn.man \
535 lib
/vconn-active.man \
536 lib
/vconn-passive.man \
537 lib
/vlog-unixctl.man \
542 OVSIDL_BUILT
+= lib
/vswitch-idl.c lib
/vswitch-idl.h lib
/vswitch-idl.ovsidl
544 EXTRA_DIST
+= lib
/vswitch-idl.ann
545 lib
/vswitch-idl.ovsidl
: vswitchd
/vswitch.ovsschema lib
/vswitch-idl.ann
546 $(AM_V_GEN
)$(OVSDB_IDLC
) annotate
$(srcdir)/vswitchd
/vswitch.ovsschema
$(srcdir)/lib
/vswitch-idl.ann
> $@.tmp
&& mv
$@.tmp
$@
548 lib
/dirs.c
: lib
/dirs.c.in Makefile
549 $(AM_V_GEN
)($(ro_c
) && sed
< $(srcdir)/lib
/dirs.c.in \
550 -e
's,[@]srcdir[@],$(srcdir),g' \
551 -e
's,[@]LOGDIR[@],"$(LOGDIR)",g' \
552 -e
's,[@]RUNDIR[@],"$(RUNDIR)",g' \
553 -e
's,[@]DBDIR[@],"$(DBDIR)",g' \
554 -e
's,[@]bindir[@],"$(bindir)",g' \
555 -e
's,[@]sysconfdir[@],"$(sysconfdir)",g' \
556 -e
's,[@]pkgdatadir[@],"$(pkgdatadir)",g') \
557 > lib
/dirs.c.tmp
&& \
558 mv lib
/dirs.c.tmp lib
/dirs.c
560 lib
/meta-flow.inc
: $(srcdir)/build-aux
/extract-ofp-fields
include/openvswitch
/meta-flow.h
561 $(AM_V_GEN
)$(run_python
) $< meta-flow
$(srcdir)/include/openvswitch
/meta-flow.h
> $@.tmp
562 $(AM_V_at
)mv
$@.tmp
$@
563 lib
/meta-flow.lo
: lib
/meta-flow.inc
564 lib
/nx-match.inc
: $(srcdir)/build-aux
/extract-ofp-fields
include/openvswitch
/meta-flow.h
565 $(AM_V_GEN
)$(run_python
) $< nx-match
$(srcdir)/include/openvswitch
/meta-flow.h
> $@.tmp
566 $(AM_V_at
)mv
$@.tmp
$@
567 lib
/nx-match.lo
: lib
/nx-match.inc
568 CLEANFILES
+= lib
/meta-flow.inc lib
/nx-match.inc
569 EXTRA_DIST
+= build-aux
/extract-ofp-fields
571 lib
/ofp-actions.inc1
: $(srcdir)/build-aux
/extract-ofp-actions lib
/ofp-actions.c
572 $(AM_V_GEN
)$(run_python
) $< prototypes
$(srcdir)/lib
/ofp-actions.c
> $@.tmp
&& mv
$@.tmp
$@
573 lib
/ofp-actions.inc2
: $(srcdir)/build-aux
/extract-ofp-actions lib
/ofp-actions.c
574 $(AM_V_GEN
)$(run_python
) $< definitions
$(srcdir)/lib
/ofp-actions.c
> $@.tmp
&& mv
$@.tmp
$@
575 lib
/ofp-actions.lo
: lib
/ofp-actions.inc1 lib
/ofp-actions.inc2
576 CLEANFILES
+= lib
/ofp-actions.inc1 lib
/ofp-actions.inc2
577 EXTRA_DIST
+= build-aux
/extract-ofp-actions
579 lib
/ofp-errors.inc
: include/openvswitch
/ofp-errors.h
include/openflow
/openflow-common.h \
580 $(srcdir)/build-aux
/extract-ofp-errors
581 $(AM_V_GEN
)$(run_python
) $(srcdir)/build-aux
/extract-ofp-errors \
582 $(srcdir)/include/openvswitch
/ofp-errors.h \
583 $(srcdir)/include/openflow
/openflow-common.h
> $@.tmp
&& \
585 lib
/ofp-errors.lo
: lib
/ofp-errors.inc
586 CLEANFILES
+= lib
/ofp-errors.inc
587 EXTRA_DIST
+= build-aux
/extract-ofp-errors
589 lib
/ofp-msgs.inc
: include/openvswitch
/ofp-msgs.h
$(srcdir)/build-aux
/extract-ofp-msgs
590 $(AM_V_GEN
)$(run_python
) $(srcdir)/build-aux
/extract-ofp-msgs \
591 $(srcdir)/include/openvswitch
/ofp-msgs.h
$@
> $@.tmp
&& mv
$@.tmp
$@
592 lib
/ofp-msgs.lo
: lib
/ofp-msgs.inc
593 CLEANFILES
+= lib
/ofp-msgs.inc
594 EXTRA_DIST
+= build-aux
/extract-ofp-msgs
597 OVSIDL_BUILT
+= lib
/ovsdb-server-idl.c lib
/ovsdb-server-idl.h lib
/ovsdb-server-idl.ovsidl
598 EXTRA_DIST
+= lib
/ovsdb-server-idl.ann
599 lib
/ovsdb-server-idl.ovsidl
: ovsdb
/_server.ovsschema lib
/ovsdb-server-idl.ann
600 $(AM_V_GEN
)$(OVSDB_IDLC
) annotate
$(srcdir)/ovsdb
/_server.ovsschema
$(srcdir)/lib
/ovsdb-server-idl.ann
> $@.tmp
&& mv
$@.tmp
$@
602 INSTALL_DATA_LOCAL
+= lib-install-data-local
603 lib-install-data-local
:
604 $(MKDIR_P
) $(DESTDIR
)$(PKIDIR
)
605 $(MKDIR_P
) $(DESTDIR
)$(sysconfdir
)/openvswitch
607 man_MANS
+= lib
/ovs-fields
.7
608 CLEANFILES
+= lib
/ovs-fields
.7
609 lib
/ovs-fields
.7: $(srcdir)/build-aux
/extract-ofp-fields
include/openvswitch
/meta-flow.h lib
/meta-flow.xml
610 $(AM_V_GEN
)PYTHONIOENCODING
=utf8
$(run_python
) $< \
611 --ovs-version
=$(VERSION
) ovs-fields \
612 $(srcdir)/include/openvswitch
/meta-flow.h \
613 $(srcdir)/lib
/meta-flow.xml
> $@.tmp
614 $(AM_V_at
)mv
$@.tmp
$@
615 EXTRA_DIST
+= lib
/meta-flow.xml
617 man_MANS
+= lib
/ovs-actions
.7
618 CLEANFILES
+= lib
/ovs-actions
.7
619 lib
/ovs-actions
.7: $(srcdir)/build-aux
/extract-ofp-actions lib
/ovs-actions.xml
620 $(AM_V_GEN
)PYTHONIOENCODING
=utf8
$(run_python
) $< \
621 --ovs-version
=$(VERSION
) ovs-actions \
622 $(srcdir)/lib
/ovs-actions.xml
> $@.tmp
623 $(AM_V_at
)mv
$@.tmp
$@
624 EXTRA_DIST
+= lib
/ovs-actions.xml