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 \
177 lib
/ovsdb-idl-provider.h \
205 lib
/rstp-state-machines.c \
206 lib
/rstp-state-machines.h \
228 lib
/stream-provider.h \
245 lib
/tnl-arp-cache.c \
246 lib
/tnl-arp-cache.h \
261 lib
/vconn-provider.h \
271 lib
/lldp
/aa-structs.h \
273 lib
/lldp
/lldp-const.h \
274 lib
/lldp
/lldp-tlv.h \
277 lib
/lldp
/lldpd-structs.c \
278 lib
/lldp
/lldpd-structs.h
281 lib_libopenvswitch_la_SOURCES
+= \
282 lib
/daemon-windows.c \
284 lib
/getrusage-windows.c \
285 lib
/latch-windows.c \
286 lib
/route-table-stub.c \
289 lib_libopenvswitch_la_SOURCES
+= \
294 lib
/socket-util-unix.c \
302 nodist_lib_libopenvswitch_la_SOURCES
= \
304 CLEANFILES
+= $(nodist_lib_libopenvswitch_la_SOURCES
)
306 lib_LTLIBRARIES
+= lib
/libsflow.la
307 lib_libsflow_la_LDFLAGS
= \
308 -version-info
$(LT_CURRENT
):$(LT_REVISION
):$(LT_AGE
) \
309 -Wl
,--version-script
=$(top_builddir
)/lib
/libsflow.sym \
311 lib_libsflow_la_SOURCES
= \
315 lib
/sflow_sampler.c \
318 lib_libsflow_la_CPPFLAGS
= $(AM_CPPFLAGS
)
319 lib_libsflow_la_CFLAGS
= $(AM_CFLAGS
)
321 lib_libsflow_la_CFLAGS
+= -Wno-unused
323 if HAVE_WNO_UNUSED_PARAMETER
324 lib_libsflow_la_CFLAGS
+= -Wno-unused-parameter
328 lib_libopenvswitch_la_SOURCES
+= \
333 lib
/netlink-notifier.c \
334 lib
/netlink-notifier.h \
335 lib
/netlink-protocol.h \
336 lib
/netlink-socket.c \
337 lib
/netlink-socket.h \
340 lib
/rtnetlink-link.c \
341 lib
/rtnetlink-link.h \
347 lib_libopenvswitch_la_SOURCES
+= \
353 lib_libopenvswitch_la_SOURCES
+= \
356 lib
/netdev-windows.c \
357 lib
/netlink-notifier.c \
358 lib
/netlink-notifier.h \
359 lib
/netlink-protocol.h \
360 lib
/netlink-socket.c \
365 lib_libopenvswitch_la_SOURCES
+= lib
/async-append-aio.c
367 lib_libopenvswitch_la_SOURCES
+= lib
/async-append-null.c
371 lib_libopenvswitch_la_SOURCES
+= \
372 lib
/route-table-stub.c
376 lib_libopenvswitch_la_SOURCES
+= \
380 lib
/route-table-bsd.c
384 lib_libopenvswitch_la_SOURCES
+= lib
/stream-ssl.c
385 nodist_lib_libopenvswitch_la_SOURCES
+= lib
/dhparams.c
386 lib
/dhparams.c
: lib
/dh1024.pem lib
/dh2048.pem lib
/dh4096.pem
387 $(AM_V_GEN
)(echo
'#include "lib/dhparams.h"' && \
388 openssl dhparam
-C
-in
$(srcdir)/lib
/dh1024.pem
-noout
&& \
389 openssl dhparam
-C
-in
$(srcdir)/lib
/dh2048.pem
-noout
&& \
390 openssl dhparam
-C
-in
$(srcdir)/lib
/dh4096.pem
-noout
) \
391 | sed
's/\(get_dh[0-9]*\)()/\1(void)/' > lib
/dhparams.c.tmp
&& \
392 mv lib
/dhparams.c.tmp lib
/dhparams.c
394 lib_libopenvswitch_la_SOURCES
+= lib
/stream-nossl.c
398 $(srcdir)/lib
/libopenvswitch.
pc \
399 $(srcdir)/lib
/libsflow.
pc
410 lib
/coverage-unixctl.man \
414 lib
/memory-unixctl.man \
415 lib
/ofp-version.man \
418 lib
/service-syn.man \
419 lib
/ssl-bootstrap.man \
420 lib
/ssl-bootstrap-syn.man \
421 lib
/ssl-peer-ca-cert.man \
426 lib
/unixctl-syn.man \
427 lib
/vconn-active.man \
428 lib
/vconn-passive.man \
429 lib
/vlog-unixctl.man \
435 $(srcdir)/lib
/vswitch-idl.c \
436 $(srcdir)/lib
/vswitch-idl.h \
437 $(srcdir)/lib
/vswitch-idl.ovsidl
439 EXTRA_DIST
+= $(srcdir)/lib
/vswitch-idl.ann
440 VSWITCH_IDL_FILES
= \
441 $(srcdir)/vswitchd
/vswitch.ovsschema \
442 $(srcdir)/lib
/vswitch-idl.ann
443 $(srcdir)/lib
/vswitch-idl.ovsidl
: $(VSWITCH_IDL_FILES
)
444 $(AM_V_GEN
)$(OVSDB_IDLC
) annotate
$(VSWITCH_IDL_FILES
) > $@.tmp
&& \
447 lib
/dirs.c
: lib
/dirs.c.in Makefile
448 $(AM_V_GEN
)($(ro_c
) && sed
< $(srcdir)/lib
/dirs.c.in \
449 -e
's,[@]srcdir[@],$(srcdir),g' \
450 -e
's,[@]LOGDIR[@],"$(LOGDIR)",g' \
451 -e
's,[@]RUNDIR[@],"$(RUNDIR)",g' \
452 -e
's,[@]DBDIR[@],"$(DBDIR)",g' \
453 -e
's,[@]bindir[@],"$(bindir)",g' \
454 -e
's,[@]sysconfdir[@],"$(sysconfdir)",g' \
455 -e
's,[@]pkgdatadir[@],"$(pkgdatadir)",g') \
456 > lib
/dirs.c.tmp
&& \
457 mv lib
/dirs.c.tmp lib
/dirs.c
459 lib
/meta-flow.inc
: $(srcdir)/build-aux
/extract-ofp-fields lib
/meta-flow.h
460 $(AM_V_GEN
)$(run_python
) $^
--meta-flow
> $@.tmp
&& mv
$@.tmp
$@
461 lib
/meta-flow.lo
: lib
/meta-flow.inc
462 lib
/nx-match.inc
: $(srcdir)/build-aux
/extract-ofp-fields lib
/meta-flow.h
463 $(AM_V_GEN
)$(run_python
) $^
--nx-match
> $@.tmp
&& mv
$@.tmp
$@
464 lib
/nx-match.lo
: lib
/nx-match.inc
465 CLEANFILES
+= lib
/meta-flow.inc lib
/nx-match.inc
466 EXTRA_DIST
+= build-aux
/extract-ofp-fields
468 lib
/ofp-actions.inc1
: $(srcdir)/build-aux
/extract-ofp-actions lib
/ofp-actions.c
469 $(AM_V_GEN
)$(run_python
) $^
--prototypes
> $@.tmp
&& mv
$@.tmp
$@
470 lib
/ofp-actions.inc2
: $(srcdir)/build-aux
/extract-ofp-actions lib
/ofp-actions.c
471 $(AM_V_GEN
)$(run_python
) $^
--definitions
> $@.tmp
&& mv
$@.tmp
$@
472 lib
/ofp-actions.lo
: lib
/ofp-actions.inc1 lib
/ofp-actions.inc2
473 CLEANFILES
+= lib
/ofp-actions.inc1 lib
/ofp-actions.inc2
474 EXTRA_DIST
+= build-aux
/extract-ofp-actions
476 $(srcdir)/lib
/ofp-errors.inc
: \
477 lib
/ofp-errors.h
include/openflow
/openflow-common.h \
478 $(srcdir)/build-aux
/extract-ofp-errors
479 $(AM_V_GEN
)$(run_python
) $(srcdir)/build-aux
/extract-ofp-errors \
480 $(srcdir)/lib
/ofp-errors.h \
481 $(srcdir)/include/openflow
/openflow-common.h
> $@.tmp
&& \
483 $(srcdir)/lib
/ofp-errors.c
: $(srcdir)/lib
/ofp-errors.inc
484 EXTRA_DIST
+= build-aux
/extract-ofp-errors lib
/ofp-errors.inc
486 $(srcdir)/lib
/ofp-msgs.inc
: \
487 lib
/ofp-msgs.h
$(srcdir)/build-aux
/extract-ofp-msgs
488 $(AM_V_GEN
)$(run_python
) $(srcdir)/build-aux
/extract-ofp-msgs \
489 $(srcdir)/lib
/ofp-msgs.h
$@
> $@.tmp
&& mv
$@.tmp
$@
490 $(srcdir)/lib
/ofp-msgs.c
: $(srcdir)/lib
/ofp-msgs.inc
491 EXTRA_DIST
+= build-aux
/extract-ofp-msgs lib
/ofp-msgs.inc
493 INSTALL_DATA_LOCAL
+= lib-install-data-local
494 lib-install-data-local
:
495 $(MKDIR_P
) $(DESTDIR
)$(RUNDIR
)
496 $(MKDIR_P
) $(DESTDIR
)$(PKIDIR
)
497 $(MKDIR_P
) $(DESTDIR
)$(LOGDIR
)
498 $(MKDIR_P
) $(DESTDIR
)$(DBDIR
)