1 # Copyright (C) 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016 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
= \
18 -version-info
$(LT_CURRENT
):$(LT_REVISION
):$(LT_AGE
) \
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 \
87 lib
/dynamic-string.c \
117 lib
/learning-switch.c \
118 lib
/learning-switch.h \
124 lib
/mcast-snooping.c \
125 lib
/mcast-snooping.h \
132 lib
/netdev-provider.h \
135 lib
/netdev-vport-private.h \
143 lib
/object-collection.c \
144 lib
/object-collection.h \
156 lib
/ofp-version-opt.h \
157 lib
/ofp-version-opt.c \
159 lib
/ovs-atomic-c11.h \
160 lib
/ovs-atomic-clang.h \
161 lib
/ovs-atomic-flag-gcc4.7
+.h \
162 lib
/ovs-atomic-gcc4
+.h \
163 lib
/ovs-atomic-gcc4.7
+.h \
164 lib
/ovs-atomic-i586.h \
165 lib
/ovs-atomic-locked.c \
166 lib
/ovs-atomic-locked.h \
167 lib
/ovs-atomic-msvc.h \
168 lib
/ovs-atomic-pthreads.h \
169 lib
/ovs-atomic-x86_64.h \
185 lib
/ovsdb-idl-provider.h \
192 lib
/ovsdb-condition.h \
193 lib
/ovsdb-condition.c \
220 lib
/rstp-state-machines.c \
221 lib
/rstp-state-machines.h \
242 lib
/stream-provider.h \
251 lib
/syslog-direct.c \
252 lib
/syslog-direct.h \
255 lib
/syslog-provider.h \
262 lib
/tnl-neigh-cache.c \
263 lib
/tnl-neigh-cache.h \
266 lib
/netdev-native-tnl.c \
267 lib
/netdev-native-tnl.h \
281 lib
/vconn-provider.h \
288 lib
/lldp
/aa-structs.h \
290 lib
/lldp
/lldp-const.h \
291 lib
/lldp
/lldp-tlv.h \
294 lib
/lldp
/lldpd-structs.c \
295 lib
/lldp
/lldpd-structs.h
298 lib_libopenvswitch_la_SOURCES
+= \
299 lib
/daemon-windows.c \
301 lib
/getrusage-windows.c \
302 lib
/latch-windows.c \
303 lib
/route-table-stub.c \
304 lib
/if-notifier-stub.c \
305 lib
/stream-windows.c \
308 lib_libopenvswitch_la_SOURCES
+= \
313 lib
/socket-util-unix.c \
321 nodist_lib_libopenvswitch_la_SOURCES
= \
325 CLEANFILES
+= $(nodist_lib_libopenvswitch_la_SOURCES
)
327 lib_LTLIBRARIES
+= lib
/libsflow.la
328 lib_libsflow_la_LDFLAGS
= \
329 -version-info
$(LT_CURRENT
):$(LT_REVISION
):$(LT_AGE
) \
330 -Wl
,--version-script
=$(top_builddir
)/lib
/libsflow.sym \
332 lib_libsflow_la_SOURCES
= \
336 lib
/sflow_sampler.c \
339 lib_libsflow_la_CPPFLAGS
= $(AM_CPPFLAGS
)
340 lib_libsflow_la_CFLAGS
= $(AM_CFLAGS
)
342 lib_libsflow_la_CFLAGS
+= -Wno-unused
344 if HAVE_WNO_UNUSED_PARAMETER
345 lib_libsflow_la_CFLAGS
+= -Wno-unused-parameter
349 lib_libopenvswitch_la_SOURCES
+= \
356 lib
/netlink-conntrack.c \
357 lib
/netlink-conntrack.h \
358 lib
/netlink-notifier.c \
359 lib
/netlink-notifier.h \
360 lib
/netlink-protocol.h \
361 lib
/netlink-socket.c \
362 lib
/netlink-socket.h \
370 lib_libopenvswitch_la_SOURCES
+= \
374 lib_libopenvswitch_la_SOURCES
+= \
375 lib
/netdev-nodpdk.c \
380 lib_libopenvswitch_la_SOURCES
+= \
383 lib
/netdev-windows.c \
384 lib
/netlink-conntrack.c \
385 lib
/netlink-conntrack.h \
386 lib
/netlink-notifier.c \
387 lib
/netlink-notifier.h \
388 lib
/netlink-protocol.h \
389 lib
/netlink-socket.c \
394 lib_libopenvswitch_la_SOURCES
+= lib
/async-append-aio.c
396 lib_libopenvswitch_la_SOURCES
+= lib
/async-append-null.c
400 lib_libopenvswitch_la_SOURCES
+= \
401 lib
/route-table-stub.c \
402 lib
/if-notifier-stub.c
406 lib_libopenvswitch_la_SOURCES
+= \
407 lib
/if-notifier-bsd.c \
411 lib
/route-table-bsd.c
415 lib_libopenvswitch_la_SOURCES
+= lib
/stream-ssl.c
416 nodist_lib_libopenvswitch_la_SOURCES
+= lib
/dhparams.c
417 lib
/dhparams.c
: lib
/dh1024.pem lib
/dh2048.pem lib
/dh4096.pem
418 $(AM_V_GEN
)(echo
'#include "lib/dhparams.h"' && \
419 openssl dhparam
-C
-in
$(srcdir)/lib
/dh1024.pem
-noout
&& \
420 openssl dhparam
-C
-in
$(srcdir)/lib
/dh2048.pem
-noout
&& \
421 openssl dhparam
-C
-in
$(srcdir)/lib
/dh4096.pem
-noout
) \
422 | sed
's/\(get_dh[0-9]*\)()/\1(void)/' > lib
/dhparams.c.tmp
&& \
423 mv lib
/dhparams.c.tmp lib
/dhparams.c
425 lib_libopenvswitch_la_SOURCES
+= lib
/stream-nossl.c
429 $(srcdir)/lib
/libopenvswitch.
pc \
430 $(srcdir)/lib
/libsflow.
pc
439 lib
/db-ctl-base.xml \
447 lib
/coverage-unixctl.man \
450 lib
/db-ctl-base.man \
452 lib
/memory-unixctl.man \
453 lib
/ofp-version.man \
456 lib
/service-syn.man \
457 lib
/ssl-bootstrap.man \
458 lib
/ssl-bootstrap-syn.man \
459 lib
/ssl-peer-ca-cert.man \
460 lib
/ssl-peer-ca-cert-syn.man \
465 lib
/unixctl-syn.man \
466 lib
/vconn-active.man \
467 lib
/vconn-passive.man \
468 lib
/vlog-unixctl.man \
473 OVSIDL_BUILT
+= lib
/vswitch-idl.c lib
/vswitch-idl.h lib
/vswitch-idl.ovsidl
475 EXTRA_DIST
+= lib
/vswitch-idl.ann
476 lib
/vswitch-idl.ovsidl
: vswitchd
/vswitch.ovsschema lib
/vswitch-idl.ann
477 $(AM_V_GEN
)$(OVSDB_IDLC
) annotate
$(srcdir)/vswitchd
/vswitch.ovsschema
$(srcdir)/lib
/vswitch-idl.ann
> $@.tmp
&& mv
$@.tmp
$@
479 lib
/dirs.c
: lib
/dirs.c.in Makefile
480 $(AM_V_GEN
)($(ro_c
) && sed
< $(srcdir)/lib
/dirs.c.in \
481 -e
's,[@]srcdir[@],$(srcdir),g' \
482 -e
's,[@]LOGDIR[@],"$(LOGDIR)",g' \
483 -e
's,[@]RUNDIR[@],"$(RUNDIR)",g' \
484 -e
's,[@]DBDIR[@],"$(DBDIR)",g' \
485 -e
's,[@]bindir[@],"$(bindir)",g' \
486 -e
's,[@]sysconfdir[@],"$(sysconfdir)",g' \
487 -e
's,[@]pkgdatadir[@],"$(pkgdatadir)",g') \
488 > lib
/dirs.c.tmp
&& \
489 mv lib
/dirs.c.tmp lib
/dirs.c
491 lib
/meta-flow.inc
: $(srcdir)/build-aux
/extract-ofp-fields
include/openvswitch
/meta-flow.h
492 $(AM_V_GEN
)$(run_python
) $^
--meta-flow
> $@.tmp
&& mv
$@.tmp
$@
493 lib
/meta-flow.lo
: lib
/meta-flow.inc
494 lib
/nx-match.inc
: $(srcdir)/build-aux
/extract-ofp-fields
include/openvswitch
/meta-flow.h
495 $(AM_V_GEN
)$(run_python
) $^
--nx-match
> $@.tmp
&& mv
$@.tmp
$@
496 lib
/nx-match.lo
: lib
/nx-match.inc
497 CLEANFILES
+= lib
/meta-flow.inc lib
/nx-match.inc
498 EXTRA_DIST
+= build-aux
/extract-ofp-fields
500 lib
/ofp-actions.inc1
: $(srcdir)/build-aux
/extract-ofp-actions lib
/ofp-actions.c
501 $(AM_V_GEN
)$(run_python
) $^
--prototypes
> $@.tmp
&& mv
$@.tmp
$@
502 lib
/ofp-actions.inc2
: $(srcdir)/build-aux
/extract-ofp-actions lib
/ofp-actions.c
503 $(AM_V_GEN
)$(run_python
) $^
--definitions
> $@.tmp
&& mv
$@.tmp
$@
504 lib
/ofp-actions.lo
: lib
/ofp-actions.inc1 lib
/ofp-actions.inc2
505 CLEANFILES
+= lib
/ofp-actions.inc1 lib
/ofp-actions.inc2
506 EXTRA_DIST
+= build-aux
/extract-ofp-actions
508 lib
/ofp-errors.inc
: include/openvswitch
/ofp-errors.h
include/openflow
/openflow-common.h \
509 $(srcdir)/build-aux
/extract-ofp-errors
510 $(AM_V_GEN
)$(run_python
) $(srcdir)/build-aux
/extract-ofp-errors \
511 $(srcdir)/include/openvswitch
/ofp-errors.h \
512 $(srcdir)/include/openflow
/openflow-common.h
> $@.tmp
&& \
514 lib
/ofp-errors.lo
: lib
/ofp-errors.inc
515 CLEANFILES
+= lib
/ofp-errors.inc
516 EXTRA_DIST
+= build-aux
/extract-ofp-errors
518 lib
/ofp-msgs.inc
: include/openvswitch
/ofp-msgs.h
$(srcdir)/build-aux
/extract-ofp-msgs
519 $(AM_V_GEN
)$(run_python
) $(srcdir)/build-aux
/extract-ofp-msgs \
520 $(srcdir)/include/openvswitch
/ofp-msgs.h
$@
> $@.tmp
&& mv
$@.tmp
$@
521 lib
/ofp-msgs.lo
: lib
/ofp-msgs.inc
522 CLEANFILES
+= lib
/ofp-msgs.inc
523 EXTRA_DIST
+= build-aux
/extract-ofp-msgs
525 INSTALL_DATA_LOCAL
+= lib-install-data-local
526 lib-install-data-local
:
527 $(MKDIR_P
) $(DESTDIR
)$(RUNDIR
)
528 $(MKDIR_P
) $(DESTDIR
)$(PKIDIR
)
529 $(MKDIR_P
) $(DESTDIR
)$(LOGDIR
)
530 $(MKDIR_P
) $(DESTDIR
)$(DBDIR
)
531 $(MKDIR_P
) $(DESTDIR
)$(sysconfdir
)/openvswitch