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 \
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 \
290 lib
/lldp
/aa-structs.h \
292 lib
/lldp
/lldp-const.h \
293 lib
/lldp
/lldp-tlv.h \
296 lib
/lldp
/lldpd-structs.c \
297 lib
/lldp
/lldpd-structs.h
300 lib_libopenvswitch_la_SOURCES
+= \
301 lib
/daemon-windows.c \
303 lib
/getrusage-windows.c \
304 lib
/latch-windows.c \
305 lib
/route-table-stub.c \
306 lib
/if-notifier-stub.c \
307 lib
/stream-windows.c \
310 lib_libopenvswitch_la_SOURCES
+= \
315 lib
/socket-util-unix.c \
323 nodist_lib_libopenvswitch_la_SOURCES
= \
327 CLEANFILES
+= $(nodist_lib_libopenvswitch_la_SOURCES
)
329 lib_LTLIBRARIES
+= lib
/libsflow.la
330 lib_libsflow_la_LDFLAGS
= \
331 -version-info
$(LT_CURRENT
):$(LT_REVISION
):$(LT_AGE
) \
332 -Wl
,--version-script
=$(top_builddir
)/lib
/libsflow.sym \
334 lib_libsflow_la_SOURCES
= \
338 lib
/sflow_sampler.c \
341 lib_libsflow_la_CPPFLAGS
= $(AM_CPPFLAGS
)
342 lib_libsflow_la_CFLAGS
= $(AM_CFLAGS
)
344 lib_libsflow_la_CFLAGS
+= -Wno-unused
346 if HAVE_WNO_UNUSED_PARAMETER
347 lib_libsflow_la_CFLAGS
+= -Wno-unused-parameter
351 lib_libopenvswitch_la_SOURCES
+= \
358 lib
/netlink-conntrack.c \
359 lib
/netlink-conntrack.h \
360 lib
/netlink-notifier.c \
361 lib
/netlink-notifier.h \
362 lib
/netlink-protocol.h \
363 lib
/netlink-socket.c \
364 lib
/netlink-socket.h \
372 lib_libopenvswitch_la_SOURCES
+= \
376 lib_libopenvswitch_la_SOURCES
+= \
381 lib_libopenvswitch_la_SOURCES
+= \
384 lib
/netdev-windows.c \
385 lib
/netlink-conntrack.c \
386 lib
/netlink-conntrack.h \
387 lib
/netlink-notifier.c \
388 lib
/netlink-notifier.h \
389 lib
/netlink-protocol.h \
390 lib
/netlink-socket.c \
395 lib_libopenvswitch_la_SOURCES
+= lib
/async-append-aio.c
397 lib_libopenvswitch_la_SOURCES
+= lib
/async-append-null.c
401 lib_libopenvswitch_la_SOURCES
+= \
402 lib
/route-table-stub.c \
403 lib
/if-notifier-stub.c
407 lib_libopenvswitch_la_SOURCES
+= \
408 lib
/if-notifier-bsd.c \
412 lib
/route-table-bsd.c
416 lib_libopenvswitch_la_SOURCES
+= lib
/stream-ssl.c
417 nodist_lib_libopenvswitch_la_SOURCES
+= lib
/dhparams.c
418 lib
/dhparams.c
: lib
/dh1024.pem lib
/dh2048.pem lib
/dh4096.pem
419 $(AM_V_GEN
)(echo
'#include "lib/dhparams.h"' && \
420 openssl dhparam
-C
-in
$(srcdir)/lib
/dh1024.pem
-noout
&& \
421 openssl dhparam
-C
-in
$(srcdir)/lib
/dh2048.pem
-noout
&& \
422 openssl dhparam
-C
-in
$(srcdir)/lib
/dh4096.pem
-noout
) \
423 | sed
's/\(get_dh[0-9]*\)()/\1(void)/' > lib
/dhparams.c.tmp
&& \
424 mv lib
/dhparams.c.tmp lib
/dhparams.c
426 lib_libopenvswitch_la_SOURCES
+= lib
/stream-nossl.c
430 $(srcdir)/lib
/libopenvswitch.
pc \
431 $(srcdir)/lib
/libsflow.
pc
440 lib
/db-ctl-base.xml \
448 lib
/coverage-unixctl.man \
451 lib
/db-ctl-base.man \
453 lib
/memory-unixctl.man \
454 lib
/ofp-version.man \
457 lib
/service-syn.man \
458 lib
/ssl-bootstrap.man \
459 lib
/ssl-bootstrap-syn.man \
460 lib
/ssl-peer-ca-cert.man \
461 lib
/ssl-peer-ca-cert-syn.man \
466 lib
/unixctl-syn.man \
467 lib
/vconn-active.man \
468 lib
/vconn-passive.man \
469 lib
/vlog-unixctl.man \
474 OVSIDL_BUILT
+= lib
/vswitch-idl.c lib
/vswitch-idl.h lib
/vswitch-idl.ovsidl
476 EXTRA_DIST
+= lib
/vswitch-idl.ann
477 lib
/vswitch-idl.ovsidl
: vswitchd
/vswitch.ovsschema lib
/vswitch-idl.ann
478 $(AM_V_GEN
)$(OVSDB_IDLC
) annotate
$(srcdir)/vswitchd
/vswitch.ovsschema
$(srcdir)/lib
/vswitch-idl.ann
> $@.tmp
&& mv
$@.tmp
$@
480 lib
/dirs.c
: lib
/dirs.c.in Makefile
481 $(AM_V_GEN
)($(ro_c
) && sed
< $(srcdir)/lib
/dirs.c.in \
482 -e
's,[@]srcdir[@],$(srcdir),g' \
483 -e
's,[@]LOGDIR[@],"$(LOGDIR)",g' \
484 -e
's,[@]RUNDIR[@],"$(RUNDIR)",g' \
485 -e
's,[@]DBDIR[@],"$(DBDIR)",g' \
486 -e
's,[@]bindir[@],"$(bindir)",g' \
487 -e
's,[@]sysconfdir[@],"$(sysconfdir)",g' \
488 -e
's,[@]pkgdatadir[@],"$(pkgdatadir)",g') \
489 > lib
/dirs.c.tmp
&& \
490 mv lib
/dirs.c.tmp lib
/dirs.c
492 lib
/meta-flow.inc
: $(srcdir)/build-aux
/extract-ofp-fields
include/openvswitch
/meta-flow.h
493 $(AM_V_GEN
)$(run_python
) $^
--meta-flow
> $@.tmp
&& mv
$@.tmp
$@
494 lib
/meta-flow.lo
: lib
/meta-flow.inc
495 lib
/nx-match.inc
: $(srcdir)/build-aux
/extract-ofp-fields
include/openvswitch
/meta-flow.h
496 $(AM_V_GEN
)$(run_python
) $^
--nx-match
> $@.tmp
&& mv
$@.tmp
$@
497 lib
/nx-match.lo
: lib
/nx-match.inc
498 CLEANFILES
+= lib
/meta-flow.inc lib
/nx-match.inc
499 EXTRA_DIST
+= build-aux
/extract-ofp-fields
501 lib
/ofp-actions.inc1
: $(srcdir)/build-aux
/extract-ofp-actions lib
/ofp-actions.c
502 $(AM_V_GEN
)$(run_python
) $^
--prototypes
> $@.tmp
&& mv
$@.tmp
$@
503 lib
/ofp-actions.inc2
: $(srcdir)/build-aux
/extract-ofp-actions lib
/ofp-actions.c
504 $(AM_V_GEN
)$(run_python
) $^
--definitions
> $@.tmp
&& mv
$@.tmp
$@
505 lib
/ofp-actions.lo
: lib
/ofp-actions.inc1 lib
/ofp-actions.inc2
506 CLEANFILES
+= lib
/ofp-actions.inc1 lib
/ofp-actions.inc2
507 EXTRA_DIST
+= build-aux
/extract-ofp-actions
509 lib
/ofp-errors.inc
: include/openvswitch
/ofp-errors.h
include/openflow
/openflow-common.h \
510 $(srcdir)/build-aux
/extract-ofp-errors
511 $(AM_V_GEN
)$(run_python
) $(srcdir)/build-aux
/extract-ofp-errors \
512 $(srcdir)/include/openvswitch
/ofp-errors.h \
513 $(srcdir)/include/openflow
/openflow-common.h
> $@.tmp
&& \
515 lib
/ofp-errors.lo
: lib
/ofp-errors.inc
516 CLEANFILES
+= lib
/ofp-errors.inc
517 EXTRA_DIST
+= build-aux
/extract-ofp-errors
519 lib
/ofp-msgs.inc
: include/openvswitch
/ofp-msgs.h
$(srcdir)/build-aux
/extract-ofp-msgs
520 $(AM_V_GEN
)$(run_python
) $(srcdir)/build-aux
/extract-ofp-msgs \
521 $(srcdir)/include/openvswitch
/ofp-msgs.h
$@
> $@.tmp
&& mv
$@.tmp
$@
522 lib
/ofp-msgs.lo
: lib
/ofp-msgs.inc
523 CLEANFILES
+= lib
/ofp-msgs.inc
524 EXTRA_DIST
+= build-aux
/extract-ofp-msgs
526 INSTALL_DATA_LOCAL
+= lib-install-data-local
527 lib-install-data-local
:
528 $(MKDIR_P
) $(DESTDIR
)$(RUNDIR
)
529 $(MKDIR_P
) $(DESTDIR
)$(PKIDIR
)
530 $(MKDIR_P
) $(DESTDIR
)$(LOGDIR
)
531 $(MKDIR_P
) $(DESTDIR
)$(DBDIR
)
532 $(MKDIR_P
) $(DESTDIR
)$(sysconfdir
)/openvswitch