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 \
88 lib
/dynamic-string.c \
118 lib
/learning-switch.c \
119 lib
/learning-switch.h \
125 lib
/mcast-snooping.c \
126 lib
/mcast-snooping.h \
134 lib
/netdev-provider.h \
137 lib
/netdev-vport-private.h \
145 lib
/object-collection.c \
146 lib
/object-collection.h \
159 lib
/ofp-version-opt.h \
160 lib
/ofp-version-opt.c \
162 lib
/ovs-atomic-c11.h \
163 lib
/ovs-atomic-clang.h \
164 lib
/ovs-atomic-flag-gcc4.7
+.h \
165 lib
/ovs-atomic-gcc4
+.h \
166 lib
/ovs-atomic-gcc4.7
+.h \
167 lib
/ovs-atomic-i586.h \
168 lib
/ovs-atomic-locked.c \
169 lib
/ovs-atomic-locked.h \
170 lib
/ovs-atomic-msvc.h \
171 lib
/ovs-atomic-pthreads.h \
172 lib
/ovs-atomic-x86_64.h \
188 lib
/ovsdb-idl-provider.h \
195 lib
/ovsdb-condition.h \
196 lib
/ovsdb-condition.c \
223 lib
/rstp-state-machines.c \
224 lib
/rstp-state-machines.h \
245 lib
/stream-provider.h \
254 lib
/syslog-direct.c \
255 lib
/syslog-direct.h \
258 lib
/syslog-provider.h \
265 lib
/tnl-neigh-cache.c \
266 lib
/tnl-neigh-cache.h \
269 lib
/netdev-native-tnl.c \
270 lib
/netdev-native-tnl.h \
284 lib
/vconn-provider.h \
292 lib
/lldp
/aa-structs.h \
294 lib
/lldp
/lldp-const.h \
295 lib
/lldp
/lldp-tlv.h \
298 lib
/lldp
/lldpd-structs.c \
299 lib
/lldp
/lldpd-structs.h
302 lib_libopenvswitch_la_SOURCES
+= \
303 lib
/daemon-windows.c \
305 lib
/getrusage-windows.c \
306 lib
/latch-windows.c \
307 lib
/route-table-stub.c \
308 lib
/if-notifier-stub.c \
309 lib
/stream-windows.c \
312 lib_libopenvswitch_la_SOURCES
+= \
317 lib
/socket-util-unix.c \
325 nodist_lib_libopenvswitch_la_SOURCES
= \
329 CLEANFILES
+= $(nodist_lib_libopenvswitch_la_SOURCES
)
331 lib_LTLIBRARIES
+= lib
/libsflow.la
332 lib_libsflow_la_LDFLAGS
= \
334 -Wl
,--version-script
=$(top_builddir
)/lib
/libsflow.sym \
336 lib_libsflow_la_SOURCES
= \
340 lib
/sflow_sampler.c \
343 lib_libsflow_la_CPPFLAGS
= $(AM_CPPFLAGS
)
344 lib_libsflow_la_CFLAGS
= $(AM_CFLAGS
)
346 lib_libsflow_la_CFLAGS
+= -Wno-unused
348 if HAVE_WNO_UNUSED_PARAMETER
349 lib_libsflow_la_CFLAGS
+= -Wno-unused-parameter
353 lib_libopenvswitch_la_SOURCES
+= \
356 lib
/dpif-netlink-rtnl.c \
357 lib
/dpif-netlink-rtnl.h \
362 lib
/netdev-tc-offloads.c \
363 lib
/netdev-tc-offloads.h \
364 lib
/netlink-conntrack.c \
365 lib
/netlink-conntrack.h \
366 lib
/netlink-notifier.c \
367 lib
/netlink-notifier.h \
368 lib
/netlink-protocol.h \
369 lib
/netlink-socket.c \
370 lib
/netlink-socket.h \
380 lib_libopenvswitch_la_SOURCES
+= \
384 lib_libopenvswitch_la_SOURCES
+= \
389 lib_libopenvswitch_la_SOURCES
+= \
392 lib
/dpif-netlink-rtnl.h \
393 lib
/netdev-windows.c \
394 lib
/netlink-conntrack.c \
395 lib
/netlink-conntrack.h \
396 lib
/netlink-notifier.c \
397 lib
/netlink-notifier.h \
398 lib
/netlink-protocol.h \
399 lib
/netlink-socket.c \
400 lib
/netlink-socket.h \
406 lib_libopenvswitch_la_SOURCES
+= lib
/async-append-aio.c
408 lib_libopenvswitch_la_SOURCES
+= lib
/async-append-null.c
412 lib_libopenvswitch_la_SOURCES
+= \
413 lib
/route-table-stub.c \
414 lib
/if-notifier-stub.c
418 lib_libopenvswitch_la_SOURCES
+= \
419 lib
/if-notifier-bsd.c \
423 lib
/route-table-bsd.c
427 lib_libopenvswitch_la_SOURCES
+= lib
/stream-ssl.c
428 nodist_lib_libopenvswitch_la_SOURCES
+= lib
/dhparams.c
429 lib
/dhparams.c
: lib
/dh1024.pem lib
/dh2048.pem lib
/dh4096.pem
430 $(AM_V_GEN
)(echo
'#include "lib/dhparams.h"' && \
431 openssl dhparam
-C
-in
$(srcdir)/lib
/dh1024.pem
-noout
&& \
432 openssl dhparam
-C
-in
$(srcdir)/lib
/dh2048.pem
-noout
&& \
433 openssl dhparam
-C
-in
$(srcdir)/lib
/dh4096.pem
-noout
) \
434 | sed
's/\(get_dh[0-9]*\)()/\1(void)/' > lib
/dhparams.c.tmp
&& \
435 mv lib
/dhparams.c.tmp lib
/dhparams.c
437 lib_libopenvswitch_la_SOURCES
+= lib
/stream-nossl.c
441 lib
/libopenvswitch.
pc \
451 lib
/db-ctl-base.xml \
453 lib
/ssl-bootstrap.xml \
461 lib
/coverage-unixctl.man \
464 lib
/db-ctl-base.man \
466 lib
/memory-unixctl.man \
467 lib
/ofp-version.man \
470 lib
/service-syn.man \
471 lib
/ssl-bootstrap.man \
472 lib
/ssl-bootstrap-syn.man \
473 lib
/ssl-peer-ca-cert.man \
474 lib
/ssl-peer-ca-cert-syn.man \
477 lib
/ssl-connect.man \
478 lib
/ssl-connect-syn.man \
481 lib
/unixctl-syn.man \
482 lib
/vconn-active.man \
483 lib
/vconn-passive.man \
484 lib
/vlog-unixctl.man \
489 OVSIDL_BUILT
+= lib
/vswitch-idl.c lib
/vswitch-idl.h lib
/vswitch-idl.ovsidl
491 EXTRA_DIST
+= lib
/vswitch-idl.ann
492 lib
/vswitch-idl.ovsidl
: vswitchd
/vswitch.ovsschema lib
/vswitch-idl.ann
493 $(AM_V_GEN
)$(OVSDB_IDLC
) annotate
$(srcdir)/vswitchd
/vswitch.ovsschema
$(srcdir)/lib
/vswitch-idl.ann
> $@.tmp
&& mv
$@.tmp
$@
495 lib
/dirs.c
: lib
/dirs.c.in Makefile
496 $(AM_V_GEN
)($(ro_c
) && sed
< $(srcdir)/lib
/dirs.c.in \
497 -e
's,[@]srcdir[@],$(srcdir),g' \
498 -e
's,[@]LOGDIR[@],"$(LOGDIR)",g' \
499 -e
's,[@]RUNDIR[@],"$(RUNDIR)",g' \
500 -e
's,[@]DBDIR[@],"$(DBDIR)",g' \
501 -e
's,[@]bindir[@],"$(bindir)",g' \
502 -e
's,[@]sysconfdir[@],"$(sysconfdir)",g' \
503 -e
's,[@]pkgdatadir[@],"$(pkgdatadir)",g') \
504 > lib
/dirs.c.tmp
&& \
505 mv lib
/dirs.c.tmp lib
/dirs.c
507 lib
/meta-flow.inc
: $(srcdir)/build-aux
/extract-ofp-fields
include/openvswitch
/meta-flow.h
508 $(AM_V_GEN
)$(run_python
) $< meta-flow
$(srcdir)/include/openvswitch
/meta-flow.h
> $@.tmp
509 $(AM_V_at
)mv
$@.tmp
$@
510 lib
/meta-flow.lo
: lib
/meta-flow.inc
511 lib
/nx-match.inc
: $(srcdir)/build-aux
/extract-ofp-fields
include/openvswitch
/meta-flow.h
512 $(AM_V_GEN
)$(run_python
) $< nx-match
$(srcdir)/include/openvswitch
/meta-flow.h
> $@.tmp
513 $(AM_V_at
)mv
$@.tmp
$@
514 lib
/nx-match.lo
: lib
/nx-match.inc
515 CLEANFILES
+= lib
/meta-flow.inc lib
/nx-match.inc
516 EXTRA_DIST
+= build-aux
/extract-ofp-fields
518 lib
/ofp-actions.inc1
: $(srcdir)/build-aux
/extract-ofp-actions lib
/ofp-actions.c
519 $(AM_V_GEN
)$(run_python
) $^
--prototypes
> $@.tmp
&& mv
$@.tmp
$@
520 lib
/ofp-actions.inc2
: $(srcdir)/build-aux
/extract-ofp-actions lib
/ofp-actions.c
521 $(AM_V_GEN
)$(run_python
) $^
--definitions
> $@.tmp
&& mv
$@.tmp
$@
522 lib
/ofp-actions.lo
: lib
/ofp-actions.inc1 lib
/ofp-actions.inc2
523 CLEANFILES
+= lib
/ofp-actions.inc1 lib
/ofp-actions.inc2
524 EXTRA_DIST
+= build-aux
/extract-ofp-actions
526 lib
/ofp-errors.inc
: include/openvswitch
/ofp-errors.h
include/openflow
/openflow-common.h \
527 $(srcdir)/build-aux
/extract-ofp-errors
528 $(AM_V_GEN
)$(run_python
) $(srcdir)/build-aux
/extract-ofp-errors \
529 $(srcdir)/include/openvswitch
/ofp-errors.h \
530 $(srcdir)/include/openflow
/openflow-common.h
> $@.tmp
&& \
532 lib
/ofp-errors.lo
: lib
/ofp-errors.inc
533 CLEANFILES
+= lib
/ofp-errors.inc
534 EXTRA_DIST
+= build-aux
/extract-ofp-errors
536 lib
/ofp-msgs.inc
: include/openvswitch
/ofp-msgs.h
$(srcdir)/build-aux
/extract-ofp-msgs
537 $(AM_V_GEN
)$(run_python
) $(srcdir)/build-aux
/extract-ofp-msgs \
538 $(srcdir)/include/openvswitch
/ofp-msgs.h
$@
> $@.tmp
&& mv
$@.tmp
$@
539 lib
/ofp-msgs.lo
: lib
/ofp-msgs.inc
540 CLEANFILES
+= lib
/ofp-msgs.inc
541 EXTRA_DIST
+= build-aux
/extract-ofp-msgs
543 INSTALL_DATA_LOCAL
+= lib-install-data-local
544 lib-install-data-local
:
545 $(MKDIR_P
) $(DESTDIR
)$(PKIDIR
)
546 $(MKDIR_P
) $(DESTDIR
)$(sysconfdir
)/openvswitch
548 man_MANS
+= lib
/ovs-fields
.7
549 CLEANFILES
+= lib
/ovs-fields
.7
550 lib
/ovs-fields
.7: $(srcdir)/build-aux
/extract-ofp-fields
include/openvswitch
/meta-flow.h lib
/meta-flow.xml
551 $(AM_V_GEN
)PYTHONIOENCODING
=utf8
$(run_python
) $< \
552 --ovs-version
=$(VERSION
) ovs-fields \
553 $(srcdir)/include/openvswitch
/meta-flow.h \
554 $(srcdir)/lib
/meta-flow.xml
> $@.tmp
555 $(AM_V_at
)mv
$@.tmp
$@
556 EXTRA_DIST
+= lib
/meta-flow.xml