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
= -release
$(VERSION
)
18 lib_libopenvswitch_la_SOURCES
= \
52 lib
/daemon-private.h \
67 lib
/dynamic-string.c \
68 lib
/dynamic-string.h \
98 lib
/learning-switch.c \
99 lib
/learning-switch.h \
108 lib
/mcast-snooping.c \
109 lib
/mcast-snooping.h \
117 lib
/netdev-provider.h \
144 lib
/ofp-version-opt.h \
145 lib
/ofp-version-opt.c \
148 lib
/ovs-atomic-c11.h \
149 lib
/ovs-atomic-clang.h \
150 lib
/ovs-atomic-flag-gcc4.7
+.h \
151 lib
/ovs-atomic-gcc4
+.h \
152 lib
/ovs-atomic-gcc4.7
+.h \
153 lib
/ovs-atomic-locked.c \
154 lib
/ovs-atomic-locked.h \
155 lib
/ovs-atomic-pthreads.h \
156 lib
/ovs-atomic-x86_64.h \
166 lib
/ovsdb-idl-provider.h \
211 lib
/stream-provider.h \
241 lib
/vconn-provider.h \
257 lib_libopenvswitch_la_SOURCES
+= \
258 lib
/daemon-windows.c \
260 lib
/getrusage-windows.c \
261 lib
/latch-windows.c \
262 lib
/route-table-stub.c \
264 lib
/stream-fd-windows.c
266 lib_libopenvswitch_la_SOURCES
+= \
271 lib
/socket-util-unix.c \
272 lib
/stream-fd-unix.c \
280 nodist_lib_libopenvswitch_la_SOURCES
= \
282 CLEANFILES
+= $(nodist_lib_libopenvswitch_la_SOURCES
)
284 lib_LTLIBRARIES
+= lib
/libsflow.la
285 lib_libsflow_la_LDFLAGS
= -release
$(VERSION
)
286 lib_libsflow_la_SOURCES
= \
290 lib
/sflow_sampler.c \
293 lib_libsflow_la_CPPFLAGS
= $(AM_CPPFLAGS
)
294 lib_libsflow_la_CFLAGS
= $(AM_CFLAGS
)
296 lib_libsflow_la_CFLAGS
+= -Wno-unused
298 if HAVE_WNO_UNUSED_PARAMETER
299 lib_libsflow_la_CFLAGS
+= -Wno-unused-parameter
303 lib_libopenvswitch_la_SOURCES
+= \
308 lib
/netlink-notifier.c \
309 lib
/netlink-notifier.h \
310 lib
/netlink-protocol.h \
311 lib
/netlink-socket.c \
312 lib
/netlink-socket.h \
313 lib
/rtnetlink-link.c \
314 lib
/rtnetlink-link.h \
320 lib_libopenvswitch_la_SOURCES
+= \
326 lib_libopenvswitch_la_SOURCES
+= \
327 lib
/netlink-notifier.c \
328 lib
/netlink-notifier.h \
329 lib
/netlink-protocol.h \
330 lib
/netlink-socket.c \
335 lib_libopenvswitch_la_SOURCES
+= lib
/async-append-aio.c
337 lib_libopenvswitch_la_SOURCES
+= lib
/async-append-null.c
341 lib_libopenvswitch_la_SOURCES
+= \
342 lib
/route-table-stub.c
346 lib_libopenvswitch_la_SOURCES
+= \
350 lib
/route-table-bsd.c
354 lib_libopenvswitch_la_SOURCES
+= lib
/stream-ssl.c
355 nodist_lib_libopenvswitch_la_SOURCES
+= lib
/dhparams.c
356 lib
/dhparams.c
: lib
/dh1024.pem lib
/dh2048.pem lib
/dh4096.pem
357 (echo
'#include "lib/dhparams.h"' && \
358 openssl dhparam
-C
-in
$(srcdir)/lib
/dh1024.pem
-noout
&& \
359 openssl dhparam
-C
-in
$(srcdir)/lib
/dh2048.pem
-noout
&& \
360 openssl dhparam
-C
-in
$(srcdir)/lib
/dh4096.pem
-noout
) \
361 | sed
's/\(get_dh[0-9]*\)()/\1(void)/' > lib
/dhparams.c.tmp
362 mv lib
/dhparams.c.tmp lib
/dhparams.c
364 lib_libopenvswitch_la_SOURCES
+= lib
/stream-nossl.c
376 lib
/coverage-unixctl.man \
380 lib
/memory-unixctl.man \
381 lib
/ofp-version.man \
384 lib
/service-syn.man \
385 lib
/ssl-bootstrap.man \
386 lib
/ssl-bootstrap-syn.man \
387 lib
/ssl-peer-ca-cert.man \
392 lib
/unixctl-syn.man \
393 lib
/vconn-active.man \
394 lib
/vconn-passive.man \
395 lib
/vlog-unixctl.man \
401 $(srcdir)/lib
/vswitch-idl.c \
402 $(srcdir)/lib
/vswitch-idl.h \
403 $(srcdir)/lib
/vswitch-idl.ovsidl \
404 $(srcdir)/lib
/vtep-idl.c \
405 $(srcdir)/lib
/vtep-idl.h \
406 $(srcdir)/lib
/vtep-idl.ovsidl
408 EXTRA_DIST
+= $(srcdir)/lib
/vswitch-idl.ann
409 VSWITCH_IDL_FILES
= \
410 $(srcdir)/vswitchd
/vswitch.ovsschema \
411 $(srcdir)/lib
/vswitch-idl.ann
412 $(srcdir)/lib
/vswitch-idl.ovsidl
: $(VSWITCH_IDL_FILES
)
413 $(OVSDB_IDLC
) annotate
$(VSWITCH_IDL_FILES
) > $@.tmp
416 EXTRA_DIST
+= $(srcdir)/lib
/vtep-idl.ann
418 $(srcdir)/vtep
/vtep.ovsschema \
419 $(srcdir)/lib
/vtep-idl.ann
420 $(srcdir)/lib
/vtep-idl.ovsidl
: $(VTEP_IDL_FILES
)
421 $(OVSDB_IDLC
) annotate
$(VTEP_IDL_FILES
) > $@.tmp
424 lib
/dirs.c
: lib
/dirs.c.in Makefile
425 ($(ro_c
) && sed
< $(srcdir)/lib
/dirs.c.in \
426 -e
's,[@]srcdir[@],$(srcdir),g' \
427 -e
's,[@]LOGDIR[@],"$(LOGDIR)",g' \
428 -e
's,[@]RUNDIR[@],"$(RUNDIR)",g' \
429 -e
's,[@]DBDIR[@],"$(DBDIR)",g' \
430 -e
's,[@]bindir[@],"$(bindir)",g' \
431 -e
's,[@]sysconfdir[@],"$(sysconfdir)",g' \
432 -e
's,[@]pkgdatadir[@],"$(pkgdatadir)",g') \
434 mv lib
/dirs.c.tmp lib
/dirs.c
436 $(srcdir)/lib
/ofp-errors.inc
: \
437 lib
/ofp-errors.h
include/openflow
/openflow-common.h \
438 $(srcdir)/build-aux
/extract-ofp-errors
439 $(run_python
) $(srcdir)/build-aux
/extract-ofp-errors \
440 $(srcdir)/lib
/ofp-errors.h \
441 $(srcdir)/include/openflow
/openflow-common.h
> $@.tmp
443 $(srcdir)/lib
/ofp-errors.c
: $(srcdir)/lib
/ofp-errors.inc
444 EXTRA_DIST
+= build-aux
/extract-ofp-errors lib
/ofp-errors.inc
446 $(srcdir)/lib
/ofp-msgs.inc
: \
447 lib
/ofp-msgs.h
$(srcdir)/build-aux
/extract-ofp-msgs
448 $(run_python
) $(srcdir)/build-aux
/extract-ofp-msgs \
449 $(srcdir)/lib
/ofp-msgs.h
$@
> $@.tmp
&& mv
$@.tmp
$@
450 $(srcdir)/lib
/ofp-msgs.c
: $(srcdir)/lib
/ofp-msgs.inc
451 EXTRA_DIST
+= build-aux
/extract-ofp-msgs lib
/ofp-msgs.inc
453 INSTALL_DATA_LOCAL
+= lib-install-data-local
454 lib-install-data-local
:
455 $(MKDIR_P
) $(DESTDIR
)$(RUNDIR
)
456 $(MKDIR_P
) $(DESTDIR
)$(PKIDIR
)
457 $(MKDIR_P
) $(DESTDIR
)$(LOGDIR
)
458 $(MKDIR_P
) $(DESTDIR
)$(DBDIR
)