1 # Copyright (C) 2009, 2010, 2011, 2012, 2013, 2014 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
)
13 lib_libopenvswitch_la_LIBADD
+= ${PTHREAD_LIBS}
16 lib_libopenvswitch_la_LDFLAGS
= \
17 -version-info
$(LT_CURRENT
):$(LT_REVISION
):$(LT_AGE
) \
18 -Wl
,--version-script
=$(top_builddir
)/lib
/libopenvswitch.sym \
21 lib_libopenvswitch_la_SOURCES
= \
39 lib
/classifier-private.h \
55 lib
/daemon-private.h \
72 lib
/dynamic-string.c \
73 lib
/dynamic-string.h \
105 lib
/learning-switch.c \
106 lib
/learning-switch.h \
114 lib
/mcast-snooping.c \
115 lib
/mcast-snooping.h \
123 lib
/netdev-provider.h \
149 lib
/ofp-version-opt.h \
150 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 \
175 lib
/ovsdb-idl-provider.h \
203 lib
/rstp-state-machines.c \
204 lib
/rstp-state-machines.h \
226 lib
/stream-provider.h \
243 lib
/tnl-arp-cache.c \
244 lib
/tnl-arp-cache.h \
259 lib
/vconn-provider.h \
273 lib_libopenvswitch_la_SOURCES
+= \
274 lib
/daemon-windows.c \
276 lib
/getrusage-windows.c \
277 lib
/latch-windows.c \
278 lib
/route-table-stub.c \
281 lib_libopenvswitch_la_SOURCES
+= \
286 lib
/socket-util-unix.c \
294 nodist_lib_libopenvswitch_la_SOURCES
= \
296 CLEANFILES
+= $(nodist_lib_libopenvswitch_la_SOURCES
)
298 lib_LTLIBRARIES
+= lib
/libsflow.la
299 lib_libsflow_la_LDFLAGS
= \
300 -version-info
$(LT_CURRENT
):$(LT_REVISION
):$(LT_AGE
) \
301 -Wl
,--version-script
=$(top_builddir
)/lib
/libsflow.sym \
303 lib_libsflow_la_SOURCES
= \
307 lib
/sflow_sampler.c \
310 lib_libsflow_la_CPPFLAGS
= $(AM_CPPFLAGS
)
311 lib_libsflow_la_CFLAGS
= $(AM_CFLAGS
)
313 lib_libsflow_la_CFLAGS
+= -Wno-unused
315 if HAVE_WNO_UNUSED_PARAMETER
316 lib_libsflow_la_CFLAGS
+= -Wno-unused-parameter
320 lib_libopenvswitch_la_SOURCES
+= \
325 lib
/netlink-notifier.c \
326 lib
/netlink-notifier.h \
327 lib
/netlink-protocol.h \
328 lib
/netlink-socket.c \
329 lib
/netlink-socket.h \
332 lib
/rtnetlink-link.c \
333 lib
/rtnetlink-link.h \
339 lib_libopenvswitch_la_SOURCES
+= \
345 lib_libopenvswitch_la_SOURCES
+= \
348 lib
/netdev-windows.c \
349 lib
/netlink-notifier.c \
350 lib
/netlink-notifier.h \
351 lib
/netlink-protocol.h \
352 lib
/netlink-socket.c \
357 lib_libopenvswitch_la_SOURCES
+= lib
/async-append-aio.c
359 lib_libopenvswitch_la_SOURCES
+= lib
/async-append-null.c
363 lib_libopenvswitch_la_SOURCES
+= \
364 lib
/route-table-stub.c
368 lib_libopenvswitch_la_SOURCES
+= \
372 lib
/route-table-bsd.c
376 lib_libopenvswitch_la_SOURCES
+= lib
/stream-ssl.c
377 nodist_lib_libopenvswitch_la_SOURCES
+= lib
/dhparams.c
378 lib
/dhparams.c
: lib
/dh1024.pem lib
/dh2048.pem lib
/dh4096.pem
379 $(AM_V_GEN
)(echo
'#include "lib/dhparams.h"' && \
380 openssl dhparam
-C
-in
$(srcdir)/lib
/dh1024.pem
-noout
&& \
381 openssl dhparam
-C
-in
$(srcdir)/lib
/dh2048.pem
-noout
&& \
382 openssl dhparam
-C
-in
$(srcdir)/lib
/dh4096.pem
-noout
) \
383 | sed
's/\(get_dh[0-9]*\)()/\1(void)/' > lib
/dhparams.c.tmp
&& \
384 mv lib
/dhparams.c.tmp lib
/dhparams.c
386 lib_libopenvswitch_la_SOURCES
+= lib
/stream-nossl.c
390 $(srcdir)/lib
/libopenvswitch.
pc \
391 $(srcdir)/lib
/libsflow.
pc
402 lib
/coverage-unixctl.man \
406 lib
/memory-unixctl.man \
407 lib
/ofp-version.man \
410 lib
/service-syn.man \
411 lib
/ssl-bootstrap.man \
412 lib
/ssl-bootstrap-syn.man \
413 lib
/ssl-peer-ca-cert.man \
418 lib
/unixctl-syn.man \
419 lib
/vconn-active.man \
420 lib
/vconn-passive.man \
421 lib
/vlog-unixctl.man \
427 $(srcdir)/lib
/vswitch-idl.c \
428 $(srcdir)/lib
/vswitch-idl.h \
429 $(srcdir)/lib
/vswitch-idl.ovsidl \
430 $(srcdir)/lib
/vtep-idl.c \
431 $(srcdir)/lib
/vtep-idl.h \
432 $(srcdir)/lib
/vtep-idl.ovsidl
434 EXTRA_DIST
+= $(srcdir)/lib
/vswitch-idl.ann
435 VSWITCH_IDL_FILES
= \
436 $(srcdir)/vswitchd
/vswitch.ovsschema \
437 $(srcdir)/lib
/vswitch-idl.ann
438 $(srcdir)/lib
/vswitch-idl.ovsidl
: $(VSWITCH_IDL_FILES
)
439 $(AM_V_GEN
)$(OVSDB_IDLC
) annotate
$(VSWITCH_IDL_FILES
) > $@.tmp
&& \
442 EXTRA_DIST
+= $(srcdir)/lib
/vtep-idl.ann
444 $(srcdir)/vtep
/vtep.ovsschema \
445 $(srcdir)/lib
/vtep-idl.ann
446 $(srcdir)/lib
/vtep-idl.ovsidl
: $(VTEP_IDL_FILES
)
447 $(AM_V_GEN
)$(OVSDB_IDLC
) annotate
$(VTEP_IDL_FILES
) > $@.tmp
&& \
450 lib
/dirs.c
: lib
/dirs.c.in Makefile
451 $(AM_V_GEN
)($(ro_c
) && sed
< $(srcdir)/lib
/dirs.c.in \
452 -e
's,[@]srcdir[@],$(srcdir),g' \
453 -e
's,[@]LOGDIR[@],"$(LOGDIR)",g' \
454 -e
's,[@]RUNDIR[@],"$(RUNDIR)",g' \
455 -e
's,[@]DBDIR[@],"$(DBDIR)",g' \
456 -e
's,[@]bindir[@],"$(bindir)",g' \
457 -e
's,[@]sysconfdir[@],"$(sysconfdir)",g' \
458 -e
's,[@]pkgdatadir[@],"$(pkgdatadir)",g') \
459 > lib
/dirs.c.tmp
&& \
460 mv lib
/dirs.c.tmp lib
/dirs.c
462 lib
/meta-flow.inc
: $(srcdir)/build-aux
/extract-ofp-fields lib
/meta-flow.h
463 $(AM_V_GEN
)$(run_python
) $^
--meta-flow
> $@.tmp
&& mv
$@.tmp
$@
464 lib
/meta-flow.lo
: lib
/meta-flow.inc
465 lib
/nx-match.inc
: $(srcdir)/build-aux
/extract-ofp-fields lib
/meta-flow.h
466 $(AM_V_GEN
)$(run_python
) $^
--nx-match
> $@.tmp
&& mv
$@.tmp
$@
467 lib
/nx-match.lo
: lib
/nx-match.inc
468 CLEANFILES
+= lib
/meta-flow.inc lib
/nx-match.inc
469 EXTRA_DIST
+= build-aux
/extract-ofp-fields
471 lib
/ofp-actions.inc1
: $(srcdir)/build-aux
/extract-ofp-actions lib
/ofp-actions.c
472 $(AM_V_GEN
)$(run_python
) $^
--prototypes
> $@.tmp
&& mv
$@.tmp
$@
473 lib
/ofp-actions.inc2
: $(srcdir)/build-aux
/extract-ofp-actions lib
/ofp-actions.c
474 $(AM_V_GEN
)$(run_python
) $^
--definitions
> $@.tmp
&& mv
$@.tmp
$@
475 lib
/ofp-actions.lo
: lib
/ofp-actions.inc1 lib
/ofp-actions.inc2
476 CLEANFILES
+= lib
/ofp-actions.inc1 lib
/ofp-actions.inc2
477 EXTRA_DIST
+= build-aux
/extract-ofp-actions
479 $(srcdir)/lib
/ofp-errors.inc
: \
480 lib
/ofp-errors.h
include/openflow
/openflow-common.h \
481 $(srcdir)/build-aux
/extract-ofp-errors
482 $(AM_V_GEN
)$(run_python
) $(srcdir)/build-aux
/extract-ofp-errors \
483 $(srcdir)/lib
/ofp-errors.h \
484 $(srcdir)/include/openflow
/openflow-common.h
> $@.tmp
&& \
486 $(srcdir)/lib
/ofp-errors.c
: $(srcdir)/lib
/ofp-errors.inc
487 EXTRA_DIST
+= build-aux
/extract-ofp-errors lib
/ofp-errors.inc
489 $(srcdir)/lib
/ofp-msgs.inc
: \
490 lib
/ofp-msgs.h
$(srcdir)/build-aux
/extract-ofp-msgs
491 $(AM_V_GEN
)$(run_python
) $(srcdir)/build-aux
/extract-ofp-msgs \
492 $(srcdir)/lib
/ofp-msgs.h
$@
> $@.tmp
&& mv
$@.tmp
$@
493 $(srcdir)/lib
/ofp-msgs.c
: $(srcdir)/lib
/ofp-msgs.inc
494 EXTRA_DIST
+= build-aux
/extract-ofp-msgs lib
/ofp-msgs.inc
496 INSTALL_DATA_LOCAL
+= lib-install-data-local
497 lib-install-data-local
:
498 $(MKDIR_P
) $(DESTDIR
)$(RUNDIR
)
499 $(MKDIR_P
) $(DESTDIR
)$(PKIDIR
)
500 $(MKDIR_P
) $(DESTDIR
)$(LOGDIR
)
501 $(MKDIR_P
) $(DESTDIR
)$(DBDIR
)