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 \
273 lib
/lldp
/aa-structs.h \
275 lib
/lldp
/lldp-const.h \
276 lib
/lldp
/lldp-tlv.h \
279 lib
/lldp
/lldpd-structs.c \
280 lib
/lldp
/lldpd-structs.h
283 lib_libopenvswitch_la_SOURCES
+= \
284 lib
/daemon-windows.c \
286 lib
/getrusage-windows.c \
287 lib
/latch-windows.c \
288 lib
/route-table-stub.c \
291 lib_libopenvswitch_la_SOURCES
+= \
296 lib
/socket-util-unix.c \
304 nodist_lib_libopenvswitch_la_SOURCES
= \
306 CLEANFILES
+= $(nodist_lib_libopenvswitch_la_SOURCES
)
308 lib_LTLIBRARIES
+= lib
/libsflow.la
309 lib_libsflow_la_LDFLAGS
= \
310 -version-info
$(LT_CURRENT
):$(LT_REVISION
):$(LT_AGE
) \
311 -Wl
,--version-script
=$(top_builddir
)/lib
/libsflow.sym \
313 lib_libsflow_la_SOURCES
= \
317 lib
/sflow_sampler.c \
320 lib_libsflow_la_CPPFLAGS
= $(AM_CPPFLAGS
)
321 lib_libsflow_la_CFLAGS
= $(AM_CFLAGS
)
323 lib_libsflow_la_CFLAGS
+= -Wno-unused
325 if HAVE_WNO_UNUSED_PARAMETER
326 lib_libsflow_la_CFLAGS
+= -Wno-unused-parameter
330 lib_libopenvswitch_la_SOURCES
+= \
335 lib
/netlink-notifier.c \
336 lib
/netlink-notifier.h \
337 lib
/netlink-protocol.h \
338 lib
/netlink-socket.c \
339 lib
/netlink-socket.h \
342 lib
/rtnetlink-link.c \
343 lib
/rtnetlink-link.h \
349 lib_libopenvswitch_la_SOURCES
+= \
355 lib_libopenvswitch_la_SOURCES
+= \
358 lib
/netdev-windows.c \
359 lib
/netlink-notifier.c \
360 lib
/netlink-notifier.h \
361 lib
/netlink-protocol.h \
362 lib
/netlink-socket.c \
367 lib_libopenvswitch_la_SOURCES
+= lib
/async-append-aio.c
369 lib_libopenvswitch_la_SOURCES
+= lib
/async-append-null.c
373 lib_libopenvswitch_la_SOURCES
+= \
374 lib
/route-table-stub.c
378 lib_libopenvswitch_la_SOURCES
+= \
382 lib
/route-table-bsd.c
386 lib_libopenvswitch_la_SOURCES
+= lib
/stream-ssl.c
387 nodist_lib_libopenvswitch_la_SOURCES
+= lib
/dhparams.c
388 lib
/dhparams.c
: lib
/dh1024.pem lib
/dh2048.pem lib
/dh4096.pem
389 $(AM_V_GEN
)(echo
'#include "lib/dhparams.h"' && \
390 openssl dhparam
-C
-in
$(srcdir)/lib
/dh1024.pem
-noout
&& \
391 openssl dhparam
-C
-in
$(srcdir)/lib
/dh2048.pem
-noout
&& \
392 openssl dhparam
-C
-in
$(srcdir)/lib
/dh4096.pem
-noout
) \
393 | sed
's/\(get_dh[0-9]*\)()/\1(void)/' > lib
/dhparams.c.tmp
&& \
394 mv lib
/dhparams.c.tmp lib
/dhparams.c
396 lib_libopenvswitch_la_SOURCES
+= lib
/stream-nossl.c
400 $(srcdir)/lib
/libopenvswitch.
pc \
401 $(srcdir)/lib
/libsflow.
pc
412 lib
/coverage-unixctl.man \
416 lib
/memory-unixctl.man \
417 lib
/ofp-version.man \
420 lib
/service-syn.man \
421 lib
/ssl-bootstrap.man \
422 lib
/ssl-bootstrap-syn.man \
423 lib
/ssl-peer-ca-cert.man \
428 lib
/unixctl-syn.man \
429 lib
/vconn-active.man \
430 lib
/vconn-passive.man \
431 lib
/vlog-unixctl.man \
437 $(srcdir)/lib
/vswitch-idl.c \
438 $(srcdir)/lib
/vswitch-idl.h \
439 $(srcdir)/lib
/vswitch-idl.ovsidl \
440 $(srcdir)/lib
/vtep-idl.c \
441 $(srcdir)/lib
/vtep-idl.h \
442 $(srcdir)/lib
/vtep-idl.ovsidl
444 EXTRA_DIST
+= $(srcdir)/lib
/vswitch-idl.ann
445 VSWITCH_IDL_FILES
= \
446 $(srcdir)/vswitchd
/vswitch.ovsschema \
447 $(srcdir)/lib
/vswitch-idl.ann
448 $(srcdir)/lib
/vswitch-idl.ovsidl
: $(VSWITCH_IDL_FILES
)
449 $(AM_V_GEN
)$(OVSDB_IDLC
) annotate
$(VSWITCH_IDL_FILES
) > $@.tmp
&& \
452 EXTRA_DIST
+= $(srcdir)/lib
/vtep-idl.ann
454 $(srcdir)/vtep
/vtep.ovsschema \
455 $(srcdir)/lib
/vtep-idl.ann
456 $(srcdir)/lib
/vtep-idl.ovsidl
: $(VTEP_IDL_FILES
)
457 $(AM_V_GEN
)$(OVSDB_IDLC
) annotate
$(VTEP_IDL_FILES
) > $@.tmp
&& \
460 lib
/dirs.c
: lib
/dirs.c.in Makefile
461 $(AM_V_GEN
)($(ro_c
) && sed
< $(srcdir)/lib
/dirs.c.in \
462 -e
's,[@]srcdir[@],$(srcdir),g' \
463 -e
's,[@]LOGDIR[@],"$(LOGDIR)",g' \
464 -e
's,[@]RUNDIR[@],"$(RUNDIR)",g' \
465 -e
's,[@]DBDIR[@],"$(DBDIR)",g' \
466 -e
's,[@]bindir[@],"$(bindir)",g' \
467 -e
's,[@]sysconfdir[@],"$(sysconfdir)",g' \
468 -e
's,[@]pkgdatadir[@],"$(pkgdatadir)",g') \
469 > lib
/dirs.c.tmp
&& \
470 mv lib
/dirs.c.tmp lib
/dirs.c
472 lib
/meta-flow.inc
: $(srcdir)/build-aux
/extract-ofp-fields lib
/meta-flow.h
473 $(AM_V_GEN
)$(run_python
) $^
--meta-flow
> $@.tmp
&& mv
$@.tmp
$@
474 lib
/meta-flow.lo
: lib
/meta-flow.inc
475 lib
/nx-match.inc
: $(srcdir)/build-aux
/extract-ofp-fields lib
/meta-flow.h
476 $(AM_V_GEN
)$(run_python
) $^
--nx-match
> $@.tmp
&& mv
$@.tmp
$@
477 lib
/nx-match.lo
: lib
/nx-match.inc
478 CLEANFILES
+= lib
/meta-flow.inc lib
/nx-match.inc
479 EXTRA_DIST
+= build-aux
/extract-ofp-fields
481 lib
/ofp-actions.inc1
: $(srcdir)/build-aux
/extract-ofp-actions lib
/ofp-actions.c
482 $(AM_V_GEN
)$(run_python
) $^
--prototypes
> $@.tmp
&& mv
$@.tmp
$@
483 lib
/ofp-actions.inc2
: $(srcdir)/build-aux
/extract-ofp-actions lib
/ofp-actions.c
484 $(AM_V_GEN
)$(run_python
) $^
--definitions
> $@.tmp
&& mv
$@.tmp
$@
485 lib
/ofp-actions.lo
: lib
/ofp-actions.inc1 lib
/ofp-actions.inc2
486 CLEANFILES
+= lib
/ofp-actions.inc1 lib
/ofp-actions.inc2
487 EXTRA_DIST
+= build-aux
/extract-ofp-actions
489 $(srcdir)/lib
/ofp-errors.inc
: \
490 lib
/ofp-errors.h
include/openflow
/openflow-common.h \
491 $(srcdir)/build-aux
/extract-ofp-errors
492 $(AM_V_GEN
)$(run_python
) $(srcdir)/build-aux
/extract-ofp-errors \
493 $(srcdir)/lib
/ofp-errors.h \
494 $(srcdir)/include/openflow
/openflow-common.h
> $@.tmp
&& \
496 $(srcdir)/lib
/ofp-errors.c
: $(srcdir)/lib
/ofp-errors.inc
497 EXTRA_DIST
+= build-aux
/extract-ofp-errors lib
/ofp-errors.inc
499 $(srcdir)/lib
/ofp-msgs.inc
: \
500 lib
/ofp-msgs.h
$(srcdir)/build-aux
/extract-ofp-msgs
501 $(AM_V_GEN
)$(run_python
) $(srcdir)/build-aux
/extract-ofp-msgs \
502 $(srcdir)/lib
/ofp-msgs.h
$@
> $@.tmp
&& mv
$@.tmp
$@
503 $(srcdir)/lib
/ofp-msgs.c
: $(srcdir)/lib
/ofp-msgs.inc
504 EXTRA_DIST
+= build-aux
/extract-ofp-msgs lib
/ofp-msgs.inc
506 INSTALL_DATA_LOCAL
+= lib-install-data-local
507 lib-install-data-local
:
508 $(MKDIR_P
) $(DESTDIR
)$(RUNDIR
)
509 $(MKDIR_P
) $(DESTDIR
)$(PKIDIR
)
510 $(MKDIR_P
) $(DESTDIR
)$(LOGDIR
)
511 $(MKDIR_P
) $(DESTDIR
)$(DBDIR
)