1 # Copyright (C) 2009, 2010, 2011, 2012 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 noinst_LIBRARIES
+= lib
/libopenvswitch.a
10 lib_libopenvswitch_a_SOURCES
= \
50 lib
/dynamic-string.c \
51 lib
/dynamic-string.h \
74 lib
/learning-switch.c \
75 lib
/learning-switch.h \
89 lib
/netdev-provider.h \
116 lib
/ovsdb-idl-provider.h \
158 lib
/stream-provider.h \
191 lib
/vconn-provider.h \
204 nodist_lib_libopenvswitch_a_SOURCES
= \
206 CLEANFILES
+= $(nodist_lib_libopenvswitch_a_SOURCES
)
208 noinst_LIBRARIES
+= lib
/libsflow.a
209 lib_libsflow_a_SOURCES
= \
213 lib
/sflow_sampler.c \
216 lib_libsflow_a_CFLAGS
= $(AM_CFLAGS
)
218 lib_libsflow_a_CFLAGS
+= -Wno-unused
220 if HAVE_WNO_UNUSED_PARAMETER
221 lib_libsflow_a_CFLAGS
+= -Wno-unused-parameter
225 lib_libopenvswitch_a_SOURCES
+= \
232 lib
/netlink-notifier.c \
233 lib
/netlink-notifier.h \
234 lib
/netlink-protocol.h \
235 lib
/netlink-socket.c \
236 lib
/netlink-socket.h \
237 lib
/rtnetlink-link.c \
238 lib
/rtnetlink-link.h \
244 lib_libopenvswitch_a_SOURCES
+= \
245 lib
/route-table-bsd.c
249 lib_libopenvswitch_a_SOURCES
+= lib
/stream-ssl.c
250 nodist_lib_libopenvswitch_a_SOURCES
+= lib
/dhparams.c
251 lib
/dhparams.c
: lib
/dh1024.pem lib
/dh2048.pem lib
/dh4096.pem
252 (echo
'#include "lib/dhparams.h"' && \
253 openssl dhparam
-C
-in
$(srcdir)/lib
/dh1024.pem
-noout
&& \
254 openssl dhparam
-C
-in
$(srcdir)/lib
/dh2048.pem
-noout
&& \
255 openssl dhparam
-C
-in
$(srcdir)/lib
/dh4096.pem
-noout
) \
256 | sed
's/\(get_dh[0-9]*\)()/\1(void)/' > lib
/dhparams.c.tmp
257 mv lib
/dhparams.c.tmp lib
/dhparams.c
259 lib_libopenvswitch_a_SOURCES
+= lib
/stream-nossl.c
271 lib
/coverage-unixctl.man \
274 lib
/leak-checker.man \
275 lib
/memory-unixctl.man \
277 lib
/ssl-bootstrap.man \
278 lib
/ssl-bootstrap-syn.man \
279 lib
/ssl-peer-ca-cert.man \
282 lib
/stress-unixctl.man \
285 lib
/unixctl-syn.man \
286 lib
/vconn-active.man \
287 lib
/vconn-passive.man \
288 lib
/vlog-unixctl.man \
296 lib
/vswitch-idl.ovsidl
298 EXTRA_DIST
+= lib
/vswitch-idl.ann
299 VSWITCH_IDL_FILES
= vswitchd
/vswitch.ovsschema lib
/vswitch-idl.ann
300 lib
/vswitch-idl.ovsidl
: $(VSWITCH_IDL_FILES
)
301 $(OVSDB_IDLC
) -C
$(srcdir) annotate
$(VSWITCH_IDL_FILES
) > $@.tmp
304 lib
/dirs.c
: lib
/dirs.c.in Makefile
305 ($(ro_c
) && sed
< $(srcdir)/lib
/dirs.c.in \
306 -e
's,[@]srcdir[@],$(srcdir),g' \
307 -e
's,[@]LOGDIR[@],"$(LOGDIR)",g' \
308 -e
's,[@]RUNDIR[@],"$(RUNDIR)",g' \
309 -e
's,[@]bindir[@],"$(bindir)",g' \
310 -e
's,[@]sysconfdir[@],"$(sysconfdir)",g' \
311 -e
's,[@]pkgdatadir[@],"$(pkgdatadir)",g') \
313 mv lib
/dirs.c.tmp lib
/dirs.c
315 $(srcdir)/lib
/ofp-errors.inc
: \
316 lib
/ofp-errors.h
$(srcdir)/build-aux
/extract-ofp-errors
317 $(run_python
) $(srcdir)/build-aux
/extract-ofp-errors \
318 $(srcdir)/lib
/ofp-errors.h
> $@.tmp
&& mv
$@.tmp
$@
319 $(srcdir)/lib
/ofp-errors.c
: $(srcdir)/lib
/ofp-errors.inc
320 EXTRA_DIST
+= build-aux
/extract-ofp-errors lib
/ofp-errors.inc
322 INSTALL_DATA_LOCAL
+= lib-install-data-local
323 lib-install-data-local
:
324 $(MKDIR_P
) $(DESTDIR
)$(RUNDIR
)
325 $(MKDIR_P
) $(DESTDIR
)$(PKIDIR
)
326 $(MKDIR_P
) $(DESTDIR
)$(LOGDIR
)
328 if
!USE_LINKER_SECTIONS
329 # All distributed sources, with names adjust properly for referencing
332 `for file in $(DIST_SOURCES); do \
333 if test -f $$file; then \
336 echo $(VPATH)/$$file; \
340 lib
/coverage.
$(OBJEXT
): lib
/coverage.def
341 lib
/coverage.def
: $(DIST_SOURCES
)
342 sed
-n
's|^COVERAGE_DEFINE(\([_a-zA-Z0-9]\{1,\}\)).*$$|COVERAGE_COUNTER(\1)|p' $(all_sources
) | LC_ALL
=C
sort -u
> $@
343 CLEANFILES
+= lib
/coverage.def
345 lib
/stress.
$(OBJEXT
): lib
/stress.def
346 lib
/stress.def
: $(DIST_SOURCES
)
347 sed
-n
'/^STRESS_OPTION(/,/);$$/{s/);$$/)/;p}' $(all_sources
) > $@
348 CLEANFILES
+= lib
/stress.def
350 lib
/vlog.
$(OBJEXT
): lib
/vlog-modules.def
351 lib
/vlog-modules.def
: $(DIST_SOURCES
)
352 sed
-n
's|^VLOG_DEFINE_\(THIS_\)\{0,1\}MODULE(\([_a-zA-Z0-9]\{1,\}\)).*$$|VLOG_MODULE(\2)|p' $(all_sources
) | LC_ALL
=C
sort -u
> $@
353 CLEANFILES
+= lib
/vlog-modules.def