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 \
60 lib
/daemon-private.h \
79 lib
/dynamic-string.c \
111 lib
/learning-switch.c \
112 lib
/learning-switch.h \
118 lib
/mcast-snooping.c \
119 lib
/mcast-snooping.h \
126 lib
/netdev-provider.h \
150 lib
/ofp-version-opt.h \
151 lib
/ofp-version-opt.c \
153 lib
/ovs-atomic-c11.h \
154 lib
/ovs-atomic-clang.h \
155 lib
/ovs-atomic-flag-gcc4.7
+.h \
156 lib
/ovs-atomic-gcc4
+.h \
157 lib
/ovs-atomic-gcc4.7
+.h \
158 lib
/ovs-atomic-i586.h \
159 lib
/ovs-atomic-locked.c \
160 lib
/ovs-atomic-locked.h \
161 lib
/ovs-atomic-msvc.h \
162 lib
/ovs-atomic-pthreads.h \
163 lib
/ovs-atomic-x86_64.h \
177 lib
/ovsdb-idl-provider.h \
208 lib
/rstp-state-machines.c \
209 lib
/rstp-state-machines.h \
231 lib
/stream-provider.h \
240 lib
/syslog-direct.c \
241 lib
/syslog-direct.h \
244 lib
/syslog-provider.h \
251 lib
/tnl-neigh-cache.c \
252 lib
/tnl-neigh-cache.h \
268 lib
/vconn-provider.h \
276 lib
/lldp
/aa-structs.h \
278 lib
/lldp
/lldp-const.h \
279 lib
/lldp
/lldp-tlv.h \
282 lib
/lldp
/lldpd-structs.c \
283 lib
/lldp
/lldpd-structs.h
286 lib_libopenvswitch_la_SOURCES
+= \
287 lib
/daemon-windows.c \
289 lib
/getrusage-windows.c \
290 lib
/latch-windows.c \
291 lib
/route-table-stub.c \
292 lib
/if-notifier-stub.c \
295 lib_libopenvswitch_la_SOURCES
+= \
300 lib
/socket-util-unix.c \
308 nodist_lib_libopenvswitch_la_SOURCES
= \
312 CLEANFILES
+= $(nodist_lib_libopenvswitch_la_SOURCES
)
314 lib_LTLIBRARIES
+= lib
/libsflow.la
315 lib_libsflow_la_LDFLAGS
= \
316 -version-info
$(LT_CURRENT
):$(LT_REVISION
):$(LT_AGE
) \
317 -Wl
,--version-script
=$(top_builddir
)/lib
/libsflow.sym \
319 lib_libsflow_la_SOURCES
= \
323 lib
/sflow_sampler.c \
326 lib_libsflow_la_CPPFLAGS
= $(AM_CPPFLAGS
)
327 lib_libsflow_la_CFLAGS
= $(AM_CFLAGS
)
329 lib_libsflow_la_CFLAGS
+= -Wno-unused
331 if HAVE_WNO_UNUSED_PARAMETER
332 lib_libsflow_la_CFLAGS
+= -Wno-unused-parameter
336 lib_libopenvswitch_la_SOURCES
+= \
343 lib
/netlink-conntrack.c \
344 lib
/netlink-conntrack.h \
345 lib
/netlink-notifier.c \
346 lib
/netlink-notifier.h \
347 lib
/netlink-protocol.h \
348 lib
/netlink-socket.c \
349 lib
/netlink-socket.h \
359 lib_libopenvswitch_la_SOURCES
+= \
365 lib_libopenvswitch_la_SOURCES
+= \
368 lib
/netdev-windows.c \
369 lib
/netlink-notifier.c \
370 lib
/netlink-notifier.h \
371 lib
/netlink-protocol.h \
372 lib
/netlink-socket.c \
377 lib_libopenvswitch_la_SOURCES
+= lib
/async-append-aio.c
379 lib_libopenvswitch_la_SOURCES
+= lib
/async-append-null.c
383 lib_libopenvswitch_la_SOURCES
+= \
384 lib
/route-table-stub.c \
385 lib
/if-notifier-stub.c
389 lib_libopenvswitch_la_SOURCES
+= \
390 lib
/if-notifier-bsd.c \
394 lib
/route-table-bsd.c
398 lib_libopenvswitch_la_SOURCES
+= lib
/stream-ssl.c
399 nodist_lib_libopenvswitch_la_SOURCES
+= lib
/dhparams.c
400 lib
/dhparams.c
: lib
/dh1024.pem lib
/dh2048.pem lib
/dh4096.pem
401 $(AM_V_GEN
)(echo
'#include "lib/dhparams.h"' && \
402 openssl dhparam
-C
-in
$(srcdir)/lib
/dh1024.pem
-noout
&& \
403 openssl dhparam
-C
-in
$(srcdir)/lib
/dh2048.pem
-noout
&& \
404 openssl dhparam
-C
-in
$(srcdir)/lib
/dh4096.pem
-noout
) \
405 | sed
's/\(get_dh[0-9]*\)()/\1(void)/' > lib
/dhparams.c.tmp
&& \
406 mv lib
/dhparams.c.tmp lib
/dhparams.c
408 lib_libopenvswitch_la_SOURCES
+= lib
/stream-nossl.c
412 $(srcdir)/lib
/libopenvswitch.
pc \
413 $(srcdir)/lib
/libsflow.
pc
426 lib
/coverage-unixctl.man \
429 lib
/db-ctl-base.man \
431 lib
/memory-unixctl.man \
432 lib
/ofp-version.man \
435 lib
/service-syn.man \
436 lib
/ssl-bootstrap.man \
437 lib
/ssl-bootstrap-syn.man \
438 lib
/ssl-peer-ca-cert.man \
439 lib
/ssl-peer-ca-cert-syn.man \
444 lib
/unixctl-syn.man \
445 lib
/vconn-active.man \
446 lib
/vconn-passive.man \
447 lib
/vlog-unixctl.man \
452 OVSIDL_BUILT
+= lib
/vswitch-idl.c lib
/vswitch-idl.h lib
/vswitch-idl.ovsidl
454 EXTRA_DIST
+= lib
/vswitch-idl.ann
455 lib
/vswitch-idl.ovsidl
: vswitchd
/vswitch.ovsschema lib
/vswitch-idl.ann
456 $(AM_V_GEN
)$(OVSDB_IDLC
) annotate
$(srcdir)/vswitchd
/vswitch.ovsschema
$(srcdir)/lib
/vswitch-idl.ann
> $@.tmp
&& mv
$@.tmp
$@
458 lib
/dirs.c
: lib
/dirs.c.in Makefile
459 $(AM_V_GEN
)($(ro_c
) && sed
< $(srcdir)/lib
/dirs.c.in \
460 -e
's,[@]srcdir[@],$(srcdir),g' \
461 -e
's,[@]LOGDIR[@],"$(LOGDIR)",g' \
462 -e
's,[@]RUNDIR[@],"$(RUNDIR)",g' \
463 -e
's,[@]DBDIR[@],"$(DBDIR)",g' \
464 -e
's,[@]bindir[@],"$(bindir)",g' \
465 -e
's,[@]sysconfdir[@],"$(sysconfdir)",g' \
466 -e
's,[@]pkgdatadir[@],"$(pkgdatadir)",g') \
467 > lib
/dirs.c.tmp
&& \
468 mv lib
/dirs.c.tmp lib
/dirs.c
470 lib
/meta-flow.inc
: $(srcdir)/build-aux
/extract-ofp-fields
include/openvswitch
/meta-flow.h
471 $(AM_V_GEN
)$(run_python
) $^
--meta-flow
> $@.tmp
&& mv
$@.tmp
$@
472 lib
/meta-flow.lo
: lib
/meta-flow.inc
473 lib
/nx-match.inc
: $(srcdir)/build-aux
/extract-ofp-fields
include/openvswitch
/meta-flow.h
474 $(AM_V_GEN
)$(run_python
) $^
--nx-match
> $@.tmp
&& mv
$@.tmp
$@
475 lib
/nx-match.lo
: lib
/nx-match.inc
476 CLEANFILES
+= lib
/meta-flow.inc lib
/nx-match.inc
477 EXTRA_DIST
+= build-aux
/extract-ofp-fields
479 lib
/ofp-actions.inc1
: $(srcdir)/build-aux
/extract-ofp-actions lib
/ofp-actions.c
480 $(AM_V_GEN
)$(run_python
) $^
--prototypes
> $@.tmp
&& mv
$@.tmp
$@
481 lib
/ofp-actions.inc2
: $(srcdir)/build-aux
/extract-ofp-actions lib
/ofp-actions.c
482 $(AM_V_GEN
)$(run_python
) $^
--definitions
> $@.tmp
&& mv
$@.tmp
$@
483 lib
/ofp-actions.lo
: lib
/ofp-actions.inc1 lib
/ofp-actions.inc2
484 CLEANFILES
+= lib
/ofp-actions.inc1 lib
/ofp-actions.inc2
485 EXTRA_DIST
+= build-aux
/extract-ofp-actions
487 lib
/ofp-errors.inc
: include/openvswitch
/ofp-errors.h
include/openflow
/openflow-common.h \
488 $(srcdir)/build-aux
/extract-ofp-errors
489 $(AM_V_GEN
)$(run_python
) $(srcdir)/build-aux
/extract-ofp-errors \
490 $(srcdir)/include/openvswitch
/ofp-errors.h \
491 $(srcdir)/include/openflow
/openflow-common.h
> $@.tmp
&& \
493 lib
/ofp-errors.lo
: lib
/ofp-errors.inc
494 CLEANFILES
+= lib
/ofp-errors.inc
495 EXTRA_DIST
+= build-aux
/extract-ofp-errors
497 lib
/ofp-msgs.inc
: include/openvswitch
/ofp-msgs.h
$(srcdir)/build-aux
/extract-ofp-msgs
498 $(AM_V_GEN
)$(run_python
) $(srcdir)/build-aux
/extract-ofp-msgs \
499 $(srcdir)/include/openvswitch
/ofp-msgs.h
$@
> $@.tmp
&& mv
$@.tmp
$@
500 lib
/ofp-msgs.lo
: lib
/ofp-msgs.inc
501 CLEANFILES
+= lib
/ofp-msgs.inc
502 EXTRA_DIST
+= build-aux
/extract-ofp-msgs
504 INSTALL_DATA_LOCAL
+= lib-install-data-local
505 lib-install-data-local
:
506 $(MKDIR_P
) $(DESTDIR
)$(RUNDIR
)
507 $(MKDIR_P
) $(DESTDIR
)$(PKIDIR
)
508 $(MKDIR_P
) $(DESTDIR
)$(LOGDIR
)
509 $(MKDIR_P
) $(DESTDIR
)$(DBDIR
)