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 \
158 lib
/ofp-version-opt.h \
159 lib
/ofp-version-opt.c \
161 lib
/ovs-atomic-c11.h \
162 lib
/ovs-atomic-clang.h \
163 lib
/ovs-atomic-flag-gcc4.7
+.h \
164 lib
/ovs-atomic-gcc4
+.h \
165 lib
/ovs-atomic-gcc4.7
+.h \
166 lib
/ovs-atomic-i586.h \
167 lib
/ovs-atomic-locked.c \
168 lib
/ovs-atomic-locked.h \
169 lib
/ovs-atomic-msvc.h \
170 lib
/ovs-atomic-pthreads.h \
171 lib
/ovs-atomic-x86_64.h \
187 lib
/ovsdb-idl-provider.h \
194 lib
/ovsdb-condition.h \
195 lib
/ovsdb-condition.c \
222 lib
/rstp-state-machines.c \
223 lib
/rstp-state-machines.h \
244 lib
/stream-provider.h \
253 lib
/syslog-direct.c \
254 lib
/syslog-direct.h \
257 lib
/syslog-provider.h \
264 lib
/tnl-neigh-cache.c \
265 lib
/tnl-neigh-cache.h \
268 lib
/netdev-native-tnl.c \
269 lib
/netdev-native-tnl.h \
283 lib
/vconn-provider.h \
291 lib
/lldp
/aa-structs.h \
293 lib
/lldp
/lldp-const.h \
294 lib
/lldp
/lldp-tlv.h \
297 lib
/lldp
/lldpd-structs.c \
298 lib
/lldp
/lldpd-structs.h
301 lib_libopenvswitch_la_SOURCES
+= \
302 lib
/daemon-windows.c \
304 lib
/getrusage-windows.c \
305 lib
/latch-windows.c \
306 lib
/route-table-stub.c \
307 lib
/if-notifier-stub.c \
308 lib
/stream-windows.c \
311 lib_libopenvswitch_la_SOURCES
+= \
316 lib
/socket-util-unix.c \
324 nodist_lib_libopenvswitch_la_SOURCES
= \
328 CLEANFILES
+= $(nodist_lib_libopenvswitch_la_SOURCES
)
330 lib_LTLIBRARIES
+= lib
/libsflow.la
331 lib_libsflow_la_LDFLAGS
= \
333 -Wl
,--version-script
=$(top_builddir
)/lib
/libsflow.sym \
335 lib_libsflow_la_SOURCES
= \
339 lib
/sflow_sampler.c \
342 lib_libsflow_la_CPPFLAGS
= $(AM_CPPFLAGS
)
343 lib_libsflow_la_CFLAGS
= $(AM_CFLAGS
)
345 lib_libsflow_la_CFLAGS
+= -Wno-unused
347 if HAVE_WNO_UNUSED_PARAMETER
348 lib_libsflow_la_CFLAGS
+= -Wno-unused-parameter
352 lib_libopenvswitch_la_SOURCES
+= \
359 lib
/netlink-conntrack.c \
360 lib
/netlink-conntrack.h \
361 lib
/netlink-notifier.c \
362 lib
/netlink-notifier.h \
363 lib
/netlink-protocol.h \
364 lib
/netlink-socket.c \
365 lib
/netlink-socket.h \
373 lib_libopenvswitch_la_SOURCES
+= \
377 lib_libopenvswitch_la_SOURCES
+= \
382 lib_libopenvswitch_la_SOURCES
+= \
385 lib
/netdev-windows.c \
386 lib
/netlink-conntrack.c \
387 lib
/netlink-conntrack.h \
388 lib
/netlink-notifier.c \
389 lib
/netlink-notifier.h \
390 lib
/netlink-protocol.h \
391 lib
/netlink-socket.c \
392 lib
/netlink-socket.h \
398 lib_libopenvswitch_la_SOURCES
+= lib
/async-append-aio.c
400 lib_libopenvswitch_la_SOURCES
+= lib
/async-append-null.c
404 lib_libopenvswitch_la_SOURCES
+= \
405 lib
/route-table-stub.c \
406 lib
/if-notifier-stub.c
410 lib_libopenvswitch_la_SOURCES
+= \
411 lib
/if-notifier-bsd.c \
415 lib
/route-table-bsd.c
419 lib_libopenvswitch_la_SOURCES
+= lib
/stream-ssl.c
420 nodist_lib_libopenvswitch_la_SOURCES
+= lib
/dhparams.c
421 lib
/dhparams.c
: lib
/dh1024.pem lib
/dh2048.pem lib
/dh4096.pem
422 $(AM_V_GEN
)(echo
'#include "lib/dhparams.h"' && \
423 openssl dhparam
-C
-in
$(srcdir)/lib
/dh1024.pem
-noout
&& \
424 openssl dhparam
-C
-in
$(srcdir)/lib
/dh2048.pem
-noout
&& \
425 openssl dhparam
-C
-in
$(srcdir)/lib
/dh4096.pem
-noout
) \
426 | sed
's/\(get_dh[0-9]*\)()/\1(void)/' > lib
/dhparams.c.tmp
&& \
427 mv lib
/dhparams.c.tmp lib
/dhparams.c
429 lib_libopenvswitch_la_SOURCES
+= lib
/stream-nossl.c
433 lib
/libopenvswitch.
pc \
443 lib
/db-ctl-base.xml \
445 lib
/ssl-bootstrap.xml \
452 lib
/coverage-unixctl.man \
455 lib
/db-ctl-base.man \
457 lib
/memory-unixctl.man \
458 lib
/ofp-version.man \
461 lib
/service-syn.man \
462 lib
/ssl-bootstrap.man \
463 lib
/ssl-bootstrap-syn.man \
464 lib
/ssl-peer-ca-cert.man \
465 lib
/ssl-peer-ca-cert-syn.man \
468 lib
/ssl-connect.man \
469 lib
/ssl-connect-syn.man \
472 lib
/unixctl-syn.man \
473 lib
/vconn-active.man \
474 lib
/vconn-passive.man \
475 lib
/vlog-unixctl.man \
480 OVSIDL_BUILT
+= lib
/vswitch-idl.c lib
/vswitch-idl.h lib
/vswitch-idl.ovsidl
482 EXTRA_DIST
+= lib
/vswitch-idl.ann
483 lib
/vswitch-idl.ovsidl
: vswitchd
/vswitch.ovsschema lib
/vswitch-idl.ann
484 $(AM_V_GEN
)$(OVSDB_IDLC
) annotate
$(srcdir)/vswitchd
/vswitch.ovsschema
$(srcdir)/lib
/vswitch-idl.ann
> $@.tmp
&& mv
$@.tmp
$@
486 lib
/dirs.c
: lib
/dirs.c.in Makefile
487 $(AM_V_GEN
)($(ro_c
) && sed
< $(srcdir)/lib
/dirs.c.in \
488 -e
's,[@]srcdir[@],$(srcdir),g' \
489 -e
's,[@]LOGDIR[@],"$(LOGDIR)",g' \
490 -e
's,[@]RUNDIR[@],"$(RUNDIR)",g' \
491 -e
's,[@]DBDIR[@],"$(DBDIR)",g' \
492 -e
's,[@]bindir[@],"$(bindir)",g' \
493 -e
's,[@]sysconfdir[@],"$(sysconfdir)",g' \
494 -e
's,[@]pkgdatadir[@],"$(pkgdatadir)",g') \
495 > lib
/dirs.c.tmp
&& \
496 mv lib
/dirs.c.tmp lib
/dirs.c
498 lib
/meta-flow.inc
: $(srcdir)/build-aux
/extract-ofp-fields
include/openvswitch
/meta-flow.h
499 $(AM_V_GEN
)$(run_python
) $< meta-flow
$(srcdir)/include/openvswitch
/meta-flow.h
> $@.tmp
500 $(AM_V_at
)mv
$@.tmp
$@
501 lib
/meta-flow.lo
: lib
/meta-flow.inc
502 lib
/nx-match.inc
: $(srcdir)/build-aux
/extract-ofp-fields
include/openvswitch
/meta-flow.h
503 $(AM_V_GEN
)$(run_python
) $< nx-match
$(srcdir)/include/openvswitch
/meta-flow.h
> $@.tmp
504 $(AM_V_at
)mv
$@.tmp
$@
505 lib
/nx-match.lo
: lib
/nx-match.inc
506 CLEANFILES
+= lib
/meta-flow.inc lib
/nx-match.inc
507 EXTRA_DIST
+= build-aux
/extract-ofp-fields
509 lib
/ofp-actions.inc1
: $(srcdir)/build-aux
/extract-ofp-actions lib
/ofp-actions.c
510 $(AM_V_GEN
)$(run_python
) $^
--prototypes
> $@.tmp
&& mv
$@.tmp
$@
511 lib
/ofp-actions.inc2
: $(srcdir)/build-aux
/extract-ofp-actions lib
/ofp-actions.c
512 $(AM_V_GEN
)$(run_python
) $^
--definitions
> $@.tmp
&& mv
$@.tmp
$@
513 lib
/ofp-actions.lo
: lib
/ofp-actions.inc1 lib
/ofp-actions.inc2
514 CLEANFILES
+= lib
/ofp-actions.inc1 lib
/ofp-actions.inc2
515 EXTRA_DIST
+= build-aux
/extract-ofp-actions
517 lib
/ofp-errors.inc
: include/openvswitch
/ofp-errors.h
include/openflow
/openflow-common.h \
518 $(srcdir)/build-aux
/extract-ofp-errors
519 $(AM_V_GEN
)$(run_python
) $(srcdir)/build-aux
/extract-ofp-errors \
520 $(srcdir)/include/openvswitch
/ofp-errors.h \
521 $(srcdir)/include/openflow
/openflow-common.h
> $@.tmp
&& \
523 lib
/ofp-errors.lo
: lib
/ofp-errors.inc
524 CLEANFILES
+= lib
/ofp-errors.inc
525 EXTRA_DIST
+= build-aux
/extract-ofp-errors
527 lib
/ofp-msgs.inc
: include/openvswitch
/ofp-msgs.h
$(srcdir)/build-aux
/extract-ofp-msgs
528 $(AM_V_GEN
)$(run_python
) $(srcdir)/build-aux
/extract-ofp-msgs \
529 $(srcdir)/include/openvswitch
/ofp-msgs.h
$@
> $@.tmp
&& mv
$@.tmp
$@
530 lib
/ofp-msgs.lo
: lib
/ofp-msgs.inc
531 CLEANFILES
+= lib
/ofp-msgs.inc
532 EXTRA_DIST
+= build-aux
/extract-ofp-msgs
534 INSTALL_DATA_LOCAL
+= lib-install-data-local
535 lib-install-data-local
:
536 $(MKDIR_P
) $(DESTDIR
)$(RUNDIR
)
537 $(MKDIR_P
) $(DESTDIR
)$(PKIDIR
)
538 $(MKDIR_P
) $(DESTDIR
)$(LOGDIR
)
539 $(MKDIR_P
) $(DESTDIR
)$(DBDIR
)
540 $(MKDIR_P
) $(DESTDIR
)$(sysconfdir
)/openvswitch
542 man_MANS
+= lib
/ovs-fields
.7
543 CLEANFILES
+= lib
/ovs-fields
.7
544 lib
/ovs-fields
.7: $(srcdir)/build-aux
/extract-ofp-fields
include/openvswitch
/meta-flow.h lib
/meta-flow.xml
545 $(AM_V_GEN
)PYTHONIOENCODING
=utf8
$(run_python
) $< \
546 --ovs-version
=$(VERSION
) ovs-fields \
547 $(srcdir)/include/openvswitch
/meta-flow.h \
548 $(srcdir)/lib
/meta-flow.xml | preconv
-e utf-8
> $@.tmp
549 $(AM_V_at
)mv
$@.tmp
$@
550 EXTRA_DIST
+= lib
/meta-flow.xml