1 # Copyright (C) 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017 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
)
14 lib_libopenvswitch_la_LIBADD
+= ${PTHREAD_LIBS}
17 lib_libopenvswitch_la_LDFLAGS
= \
19 -Wl
,--version-script
=$(top_builddir
)/lib
/libopenvswitch.sym \
22 lib_libopenvswitch_la_SOURCES
= \
40 lib
/classifier-private.h \
52 lib
/conntrack-icmp.c \
53 lib
/conntrack-private.h \
55 lib
/conntrack-other.c \
68 lib
/daemon-private.h \
83 lib
/dpif-netdev-perf.c \
84 lib
/dpif-netdev-perf.h \
90 lib
/dynamic-string.c \
120 lib
/learning-switch.c \
121 lib
/learning-switch.h \
127 lib
/mcast-snooping.c \
128 lib
/mcast-snooping.h \
137 lib
/netdev-provider.h \
140 lib
/netdev-vport-private.h \
149 lib
/object-collection.c \
150 lib
/object-collection.h \
157 lib
/ofp-connection.c \
177 lib
/ofp-version-opt.h \
178 lib
/ofp-version-opt.c \
180 lib
/ovs-atomic-c
++.h \
181 lib
/ovs-atomic-c11.h \
182 lib
/ovs-atomic-clang.h \
183 lib
/ovs-atomic-flag-gcc4.7
+.h \
184 lib
/ovs-atomic-gcc4
+.h \
185 lib
/ovs-atomic-gcc4.7
+.h \
186 lib
/ovs-atomic-i586.h \
187 lib
/ovs-atomic-locked.c \
188 lib
/ovs-atomic-locked.h \
189 lib
/ovs-atomic-msvc.h \
190 lib
/ovs-atomic-pthreads.h \
191 lib
/ovs-atomic-x86_64.h \
207 lib
/ovsdb-idl-provider.h \
214 lib
/ovsdb-condition.h \
215 lib
/ovsdb-condition.c \
218 lib
/ovsdb-session.c \
219 lib
/ovsdb-session.h \
246 lib
/rstp-state-machines.c \
247 lib
/rstp-state-machines.h \
270 lib
/stream-provider.h \
279 lib
/syslog-direct.c \
280 lib
/syslog-direct.h \
283 lib
/syslog-provider.h \
290 lib
/tnl-neigh-cache.c \
291 lib
/tnl-neigh-cache.h \
294 lib
/netdev-native-tnl.c \
295 lib
/netdev-native-tnl.h \
309 lib
/vconn-provider.h \
317 lib
/lldp
/aa-structs.h \
319 lib
/lldp
/lldp-const.h \
320 lib
/lldp
/lldp-tlv.h \
323 lib
/lldp
/lldpd-structs.c \
324 lib
/lldp
/lldpd-structs.h
327 lib_libopenvswitch_la_SOURCES
+= \
328 lib
/daemon-windows.c \
330 lib
/getrusage-windows.c \
331 lib
/latch-windows.c \
332 lib
/route-table-stub.c \
333 lib
/if-notifier-stub.c \
334 lib
/stream-windows.c \
337 lib_libopenvswitch_la_SOURCES
+= \
342 lib
/socket-util-unix.c \
350 nodist_lib_libopenvswitch_la_SOURCES
= \
352 lib
/ovsdb-server-idl.c \
353 lib
/ovsdb-server-idl.h \
356 CLEANFILES
+= $(nodist_lib_libopenvswitch_la_SOURCES
)
358 lib_LTLIBRARIES
+= lib
/libsflow.la
359 lib_libsflow_la_LDFLAGS
= \
361 -Wl
,--version-script
=$(top_builddir
)/lib
/libsflow.sym \
363 lib_libsflow_la_SOURCES
= \
367 lib
/sflow_sampler.c \
370 lib_libsflow_la_CPPFLAGS
= $(AM_CPPFLAGS
)
371 lib_libsflow_la_CFLAGS
= $(AM_CFLAGS
)
373 lib_libsflow_la_CFLAGS
+= -Wno-unused
375 if HAVE_WNO_UNUSED_PARAMETER
376 lib_libsflow_la_CFLAGS
+= -Wno-unused-parameter
380 lib_libopenvswitch_la_SOURCES
+= \
383 lib
/dpif-netlink-rtnl.c \
384 lib
/dpif-netlink-rtnl.h \
389 lib
/netdev-tc-offloads.c \
390 lib
/netdev-tc-offloads.h \
391 lib
/netlink-conntrack.c \
392 lib
/netlink-conntrack.h \
393 lib
/netlink-notifier.c \
394 lib
/netlink-notifier.h \
395 lib
/netlink-protocol.h \
396 lib
/netlink-socket.c \
397 lib
/netlink-socket.h \
407 lib_libopenvswitch_la_SOURCES
+= \
411 lib_libopenvswitch_la_SOURCES
+= \
416 lib_libopenvswitch_la_SOURCES
+= \
419 lib
/dpif-netlink-rtnl.h \
420 lib
/netdev-windows.c \
421 lib
/netlink-conntrack.c \
422 lib
/netlink-conntrack.h \
423 lib
/netlink-notifier.c \
424 lib
/netlink-notifier.h \
425 lib
/netlink-protocol.h \
426 lib
/netlink-socket.c \
427 lib
/netlink-socket.h \
433 lib_libopenvswitch_la_SOURCES
+= lib
/async-append-aio.c
435 lib_libopenvswitch_la_SOURCES
+= lib
/async-append-null.c
439 lib_libopenvswitch_la_SOURCES
+= \
440 lib
/route-table-stub.c \
441 lib
/if-notifier-stub.c
445 lib_libopenvswitch_la_SOURCES
+= \
446 lib
/if-notifier-bsd.c \
450 lib
/route-table-bsd.c
453 .PHONY
: generate-dhparams-c
455 lib_libopenvswitch_la_SOURCES
+= lib
/stream-ssl.c lib
/dhparams.c
457 # Manually regenerates lib/dhparams.c. Not normally necessary since
458 # lib/dhparams.c is part of the repository and doesn't normally need
461 $(AM_V_GEN
)cd
$(srcdir) && \
462 build-aux
/generate-dhparams-c
> lib
/dhparams.c.tmp
&& \
463 mv lib
/dhparams.c.tmp lib
/dhparams.c
465 lib_libopenvswitch_la_SOURCES
+= lib
/stream-nossl.c
469 lib
/libopenvswitch.
pc \
479 lib
/db-ctl-base.xml \
481 lib
/ssl-bootstrap.xml \
482 lib
/ssl-peer-ca-cert.xml \
491 lib
/coverage-unixctl.man \
494 lib
/db-ctl-base.man \
496 lib
/memory-unixctl.man \
497 lib
/netdev-dpdk-unixctl.man \
498 lib
/dpif-netdev-unixctl.man \
499 lib
/ofp-version.man \
502 lib
/service-syn.man \
503 lib
/ssl-bootstrap.man \
504 lib
/ssl-bootstrap-syn.man \
505 lib
/ssl-peer-ca-cert.man \
506 lib
/ssl-peer-ca-cert-syn.man \
509 lib
/ssl-connect.man \
510 lib
/ssl-connect-syn.man \
513 lib
/unixctl-syn.man \
514 lib
/vconn-active.man \
515 lib
/vconn-passive.man \
516 lib
/vlog-unixctl.man \
521 OVSIDL_BUILT
+= lib
/vswitch-idl.c lib
/vswitch-idl.h lib
/vswitch-idl.ovsidl
523 EXTRA_DIST
+= lib
/vswitch-idl.ann
524 lib
/vswitch-idl.ovsidl
: vswitchd
/vswitch.ovsschema lib
/vswitch-idl.ann
525 $(AM_V_GEN
)$(OVSDB_IDLC
) annotate
$(srcdir)/vswitchd
/vswitch.ovsschema
$(srcdir)/lib
/vswitch-idl.ann
> $@.tmp
&& mv
$@.tmp
$@
527 lib
/dirs.c
: lib
/dirs.c.in Makefile
528 $(AM_V_GEN
)($(ro_c
) && sed
< $(srcdir)/lib
/dirs.c.in \
529 -e
's,[@]srcdir[@],$(srcdir),g' \
530 -e
's,[@]LOGDIR[@],"$(LOGDIR)",g' \
531 -e
's,[@]RUNDIR[@],"$(RUNDIR)",g' \
532 -e
's,[@]DBDIR[@],"$(DBDIR)",g' \
533 -e
's,[@]bindir[@],"$(bindir)",g' \
534 -e
's,[@]sysconfdir[@],"$(sysconfdir)",g' \
535 -e
's,[@]pkgdatadir[@],"$(pkgdatadir)",g') \
536 > lib
/dirs.c.tmp
&& \
537 mv lib
/dirs.c.tmp lib
/dirs.c
539 lib
/meta-flow.inc
: $(srcdir)/build-aux
/extract-ofp-fields
include/openvswitch
/meta-flow.h
540 $(AM_V_GEN
)$(run_python
) $< meta-flow
$(srcdir)/include/openvswitch
/meta-flow.h
> $@.tmp
541 $(AM_V_at
)mv
$@.tmp
$@
542 lib
/meta-flow.lo
: lib
/meta-flow.inc
543 lib
/nx-match.inc
: $(srcdir)/build-aux
/extract-ofp-fields
include/openvswitch
/meta-flow.h
544 $(AM_V_GEN
)$(run_python
) $< nx-match
$(srcdir)/include/openvswitch
/meta-flow.h
> $@.tmp
545 $(AM_V_at
)mv
$@.tmp
$@
546 lib
/nx-match.lo
: lib
/nx-match.inc
547 CLEANFILES
+= lib
/meta-flow.inc lib
/nx-match.inc
548 EXTRA_DIST
+= build-aux
/extract-ofp-fields
550 lib
/ofp-actions.inc1
: $(srcdir)/build-aux
/extract-ofp-actions lib
/ofp-actions.c
551 $(AM_V_GEN
)$(run_python
) $^
--prototypes
> $@.tmp
&& mv
$@.tmp
$@
552 lib
/ofp-actions.inc2
: $(srcdir)/build-aux
/extract-ofp-actions lib
/ofp-actions.c
553 $(AM_V_GEN
)$(run_python
) $^
--definitions
> $@.tmp
&& mv
$@.tmp
$@
554 lib
/ofp-actions.lo
: lib
/ofp-actions.inc1 lib
/ofp-actions.inc2
555 CLEANFILES
+= lib
/ofp-actions.inc1 lib
/ofp-actions.inc2
556 EXTRA_DIST
+= build-aux
/extract-ofp-actions
558 lib
/ofp-errors.inc
: include/openvswitch
/ofp-errors.h
include/openflow
/openflow-common.h \
559 $(srcdir)/build-aux
/extract-ofp-errors
560 $(AM_V_GEN
)$(run_python
) $(srcdir)/build-aux
/extract-ofp-errors \
561 $(srcdir)/include/openvswitch
/ofp-errors.h \
562 $(srcdir)/include/openflow
/openflow-common.h
> $@.tmp
&& \
564 lib
/ofp-errors.lo
: lib
/ofp-errors.inc
565 CLEANFILES
+= lib
/ofp-errors.inc
566 EXTRA_DIST
+= build-aux
/extract-ofp-errors
568 lib
/ofp-msgs.inc
: include/openvswitch
/ofp-msgs.h
$(srcdir)/build-aux
/extract-ofp-msgs
569 $(AM_V_GEN
)$(run_python
) $(srcdir)/build-aux
/extract-ofp-msgs \
570 $(srcdir)/include/openvswitch
/ofp-msgs.h
$@
> $@.tmp
&& mv
$@.tmp
$@
571 lib
/ofp-msgs.lo
: lib
/ofp-msgs.inc
572 CLEANFILES
+= lib
/ofp-msgs.inc
573 EXTRA_DIST
+= build-aux
/extract-ofp-msgs
576 OVSIDL_BUILT
+= lib
/ovsdb-server-idl.c lib
/ovsdb-server-idl.h lib
/ovsdb-server-idl.ovsidl
577 EXTRA_DIST
+= lib
/ovsdb-server-idl.ann
578 lib
/ovsdb-server-idl.ovsidl
: ovsdb
/_server.ovsschema lib
/ovsdb-server-idl.ann
579 $(AM_V_GEN
)$(OVSDB_IDLC
) annotate
$(srcdir)/ovsdb
/_server.ovsschema
$(srcdir)/lib
/ovsdb-server-idl.ann
> $@.tmp
&& mv
$@.tmp
$@
581 INSTALL_DATA_LOCAL
+= lib-install-data-local
582 lib-install-data-local
:
583 $(MKDIR_P
) $(DESTDIR
)$(PKIDIR
)
584 $(MKDIR_P
) $(DESTDIR
)$(sysconfdir
)/openvswitch
586 man_MANS
+= lib
/ovs-fields
.7
587 CLEANFILES
+= lib
/ovs-fields
.7
588 lib
/ovs-fields
.7: $(srcdir)/build-aux
/extract-ofp-fields
include/openvswitch
/meta-flow.h lib
/meta-flow.xml
589 $(AM_V_GEN
)PYTHONIOENCODING
=utf8
$(run_python
) $< \
590 --ovs-version
=$(VERSION
) ovs-fields \
591 $(srcdir)/include/openvswitch
/meta-flow.h \
592 $(srcdir)/lib
/meta-flow.xml
> $@.tmp
593 $(AM_V_at
)mv
$@.tmp
$@
594 EXTRA_DIST
+= lib
/meta-flow.xml