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 \
74 lib
/dynamic-string.c \
75 lib
/dynamic-string.h \
107 lib
/learning-switch.c \
108 lib
/learning-switch.h \
116 lib
/mcast-snooping.c \
117 lib
/mcast-snooping.h \
125 lib
/netdev-provider.h \
151 lib
/ofp-version-opt.h \
152 lib
/ofp-version-opt.c \
155 lib
/ovs-atomic-c11.h \
156 lib
/ovs-atomic-clang.h \
157 lib
/ovs-atomic-flag-gcc4.7
+.h \
158 lib
/ovs-atomic-gcc4
+.h \
159 lib
/ovs-atomic-gcc4.7
+.h \
160 lib
/ovs-atomic-i586.h \
161 lib
/ovs-atomic-locked.c \
162 lib
/ovs-atomic-locked.h \
163 lib
/ovs-atomic-msvc.h \
164 lib
/ovs-atomic-pthreads.h \
165 lib
/ovs-atomic-x86_64.h \
179 lib
/ovsdb-idl-provider.h \
208 lib
/rstp-state-machines.c \
209 lib
/rstp-state-machines.h \
231 lib
/stream-provider.h \
248 lib
/tnl-arp-cache.c \
249 lib
/tnl-arp-cache.h \
264 lib
/vconn-provider.h \
274 lib
/lldp
/aa-structs.h \
276 lib
/lldp
/lldp-const.h \
277 lib
/lldp
/lldp-tlv.h \
280 lib
/lldp
/lldpd-structs.c \
281 lib
/lldp
/lldpd-structs.h
284 lib_libopenvswitch_la_SOURCES
+= \
285 lib
/daemon-windows.c \
287 lib
/getrusage-windows.c \
288 lib
/latch-windows.c \
289 lib
/route-table-stub.c \
292 lib_libopenvswitch_la_SOURCES
+= \
297 lib
/socket-util-unix.c \
305 nodist_lib_libopenvswitch_la_SOURCES
= \
307 CLEANFILES
+= $(nodist_lib_libopenvswitch_la_SOURCES
)
309 lib_LTLIBRARIES
+= lib
/libsflow.la
310 lib_libsflow_la_LDFLAGS
= \
311 -version-info
$(LT_CURRENT
):$(LT_REVISION
):$(LT_AGE
) \
312 -Wl
,--version-script
=$(top_builddir
)/lib
/libsflow.sym \
314 lib_libsflow_la_SOURCES
= \
318 lib
/sflow_sampler.c \
321 lib_libsflow_la_CPPFLAGS
= $(AM_CPPFLAGS
)
322 lib_libsflow_la_CFLAGS
= $(AM_CFLAGS
)
324 lib_libsflow_la_CFLAGS
+= -Wno-unused
326 if HAVE_WNO_UNUSED_PARAMETER
327 lib_libsflow_la_CFLAGS
+= -Wno-unused-parameter
331 lib_libopenvswitch_la_SOURCES
+= \
336 lib
/netlink-notifier.c \
337 lib
/netlink-notifier.h \
338 lib
/netlink-protocol.h \
339 lib
/netlink-socket.c \
340 lib
/netlink-socket.h \
343 lib
/rtnetlink-link.c \
344 lib
/rtnetlink-link.h \
350 lib_libopenvswitch_la_SOURCES
+= \
356 lib_libopenvswitch_la_SOURCES
+= \
359 lib
/netdev-windows.c \
360 lib
/netlink-notifier.c \
361 lib
/netlink-notifier.h \
362 lib
/netlink-protocol.h \
363 lib
/netlink-socket.c \
368 lib_libopenvswitch_la_SOURCES
+= lib
/async-append-aio.c
370 lib_libopenvswitch_la_SOURCES
+= lib
/async-append-null.c
374 lib_libopenvswitch_la_SOURCES
+= \
375 lib
/route-table-stub.c
379 lib_libopenvswitch_la_SOURCES
+= \
383 lib
/route-table-bsd.c
387 lib_libopenvswitch_la_SOURCES
+= lib
/stream-ssl.c
388 nodist_lib_libopenvswitch_la_SOURCES
+= lib
/dhparams.c
389 lib
/dhparams.c
: lib
/dh1024.pem lib
/dh2048.pem lib
/dh4096.pem
390 $(AM_V_GEN
)(echo
'#include "lib/dhparams.h"' && \
391 openssl dhparam
-C
-in
$(srcdir)/lib
/dh1024.pem
-noout
&& \
392 openssl dhparam
-C
-in
$(srcdir)/lib
/dh2048.pem
-noout
&& \
393 openssl dhparam
-C
-in
$(srcdir)/lib
/dh4096.pem
-noout
) \
394 | sed
's/\(get_dh[0-9]*\)()/\1(void)/' > lib
/dhparams.c.tmp
&& \
395 mv lib
/dhparams.c.tmp lib
/dhparams.c
397 lib_libopenvswitch_la_SOURCES
+= lib
/stream-nossl.c
401 $(srcdir)/lib
/libopenvswitch.
pc \
402 $(srcdir)/lib
/libsflow.
pc
413 lib
/coverage-unixctl.man \
416 lib
/db-ctl-base.man \
418 lib
/memory-unixctl.man \
419 lib
/ofp-version.man \
422 lib
/service-syn.man \
423 lib
/ssl-bootstrap.man \
424 lib
/ssl-bootstrap-syn.man \
425 lib
/ssl-peer-ca-cert.man \
430 lib
/unixctl-syn.man \
431 lib
/vconn-active.man \
432 lib
/vconn-passive.man \
433 lib
/vlog-unixctl.man \
439 $(srcdir)/lib
/vswitch-idl.c \
440 $(srcdir)/lib
/vswitch-idl.h \
441 $(srcdir)/lib
/vswitch-idl.ovsidl
443 EXTRA_DIST
+= $(srcdir)/lib
/vswitch-idl.ann
444 VSWITCH_IDL_FILES
= \
445 $(srcdir)/vswitchd
/vswitch.ovsschema \
446 $(srcdir)/lib
/vswitch-idl.ann
447 $(srcdir)/lib
/vswitch-idl.ovsidl
: $(VSWITCH_IDL_FILES
)
448 $(AM_V_GEN
)$(OVSDB_IDLC
) annotate
$(VSWITCH_IDL_FILES
) > $@.tmp
&& \
451 lib
/dirs.c
: lib
/dirs.c.in Makefile
452 $(AM_V_GEN
)($(ro_c
) && sed
< $(srcdir)/lib
/dirs.c.in \
453 -e
's,[@]srcdir[@],$(srcdir),g' \
454 -e
's,[@]LOGDIR[@],"$(LOGDIR)",g' \
455 -e
's,[@]RUNDIR[@],"$(RUNDIR)",g' \
456 -e
's,[@]DBDIR[@],"$(DBDIR)",g' \
457 -e
's,[@]bindir[@],"$(bindir)",g' \
458 -e
's,[@]sysconfdir[@],"$(sysconfdir)",g' \
459 -e
's,[@]pkgdatadir[@],"$(pkgdatadir)",g') \
460 > lib
/dirs.c.tmp
&& \
461 mv lib
/dirs.c.tmp lib
/dirs.c
463 lib
/meta-flow.inc
: $(srcdir)/build-aux
/extract-ofp-fields lib
/meta-flow.h
464 $(AM_V_GEN
)$(run_python
) $^
--meta-flow
> $@.tmp
&& mv
$@.tmp
$@
465 lib
/meta-flow.lo
: lib
/meta-flow.inc
466 lib
/nx-match.inc
: $(srcdir)/build-aux
/extract-ofp-fields lib
/meta-flow.h
467 $(AM_V_GEN
)$(run_python
) $^
--nx-match
> $@.tmp
&& mv
$@.tmp
$@
468 lib
/nx-match.lo
: lib
/nx-match.inc
469 CLEANFILES
+= lib
/meta-flow.inc lib
/nx-match.inc
470 EXTRA_DIST
+= build-aux
/extract-ofp-fields
472 lib
/ofp-actions.inc1
: $(srcdir)/build-aux
/extract-ofp-actions lib
/ofp-actions.c
473 $(AM_V_GEN
)$(run_python
) $^
--prototypes
> $@.tmp
&& mv
$@.tmp
$@
474 lib
/ofp-actions.inc2
: $(srcdir)/build-aux
/extract-ofp-actions lib
/ofp-actions.c
475 $(AM_V_GEN
)$(run_python
) $^
--definitions
> $@.tmp
&& mv
$@.tmp
$@
476 lib
/ofp-actions.lo
: lib
/ofp-actions.inc1 lib
/ofp-actions.inc2
477 CLEANFILES
+= lib
/ofp-actions.inc1 lib
/ofp-actions.inc2
478 EXTRA_DIST
+= build-aux
/extract-ofp-actions
480 $(srcdir)/lib
/ofp-errors.inc
: \
481 lib
/ofp-errors.h
include/openflow
/openflow-common.h \
482 $(srcdir)/build-aux
/extract-ofp-errors
483 $(AM_V_GEN
)$(run_python
) $(srcdir)/build-aux
/extract-ofp-errors \
484 $(srcdir)/lib
/ofp-errors.h \
485 $(srcdir)/include/openflow
/openflow-common.h
> $@.tmp
&& \
487 $(srcdir)/lib
/ofp-errors.c
: $(srcdir)/lib
/ofp-errors.inc
488 EXTRA_DIST
+= build-aux
/extract-ofp-errors lib
/ofp-errors.inc
490 $(srcdir)/lib
/ofp-msgs.inc
: \
491 lib
/ofp-msgs.h
$(srcdir)/build-aux
/extract-ofp-msgs
492 $(AM_V_GEN
)$(run_python
) $(srcdir)/build-aux
/extract-ofp-msgs \
493 $(srcdir)/lib
/ofp-msgs.h
$@
> $@.tmp
&& mv
$@.tmp
$@
494 $(srcdir)/lib
/ofp-msgs.c
: $(srcdir)/lib
/ofp-msgs.inc
495 EXTRA_DIST
+= build-aux
/extract-ofp-msgs lib
/ofp-msgs.inc
497 INSTALL_DATA_LOCAL
+= lib-install-data-local
498 lib-install-data-local
:
499 $(MKDIR_P
) $(DESTDIR
)$(RUNDIR
)
500 $(MKDIR_P
) $(DESTDIR
)$(PKIDIR
)
501 $(MKDIR_P
) $(DESTDIR
)$(LOGDIR
)
502 $(MKDIR_P
) $(DESTDIR
)$(DBDIR
)