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 \
114 lib
/ovsdb-idl-provider.h \
156 lib
/stream-provider.h \
189 lib
/vconn-provider.h \
202 nodist_lib_libopenvswitch_a_SOURCES
= \
204 CLEANFILES
+= $(nodist_lib_libopenvswitch_a_SOURCES
)
206 noinst_LIBRARIES
+= lib
/libsflow.a
207 lib_libsflow_a_SOURCES
= \
211 lib
/sflow_sampler.c \
214 lib_libsflow_a_CFLAGS
= $(AM_CFLAGS
)
216 lib_libsflow_a_CFLAGS
+= -Wno-unused
218 if HAVE_WNO_UNUSED_PARAMETER
219 lib_libsflow_a_CFLAGS
+= -Wno-unused-parameter
223 lib_libopenvswitch_a_SOURCES
+= \
230 lib
/netlink-notifier.c \
231 lib
/netlink-notifier.h \
232 lib
/netlink-protocol.h \
233 lib
/netlink-socket.c \
234 lib
/netlink-socket.h \
235 lib
/rtnetlink-link.c \
236 lib
/rtnetlink-link.h \
242 lib_libopenvswitch_a_SOURCES
+= lib
/stream-ssl.c
243 nodist_lib_libopenvswitch_a_SOURCES
+= lib
/dhparams.c
244 lib
/dhparams.c
: lib
/dh1024.pem lib
/dh2048.pem lib
/dh4096.pem
245 (echo
'#include "lib/dhparams.h"' && \
246 openssl dhparam
-C
-in
$(srcdir)/lib
/dh1024.pem
-noout
&& \
247 openssl dhparam
-C
-in
$(srcdir)/lib
/dh2048.pem
-noout
&& \
248 openssl dhparam
-C
-in
$(srcdir)/lib
/dh4096.pem
-noout
) \
249 | sed
's/\(get_dh[0-9]*\)()/\1(void)/' > lib
/dhparams.c.tmp
250 mv lib
/dhparams.c.tmp lib
/dhparams.c
252 lib_libopenvswitch_a_SOURCES
+= lib
/stream-nossl.c
264 lib
/coverage-unixctl.man \
267 lib
/leak-checker.man \
269 lib
/ssl-bootstrap.man \
270 lib
/ssl-bootstrap-syn.man \
271 lib
/ssl-peer-ca-cert.man \
274 lib
/stress-unixctl.man \
277 lib
/unixctl-syn.man \
278 lib
/vconn-active.man \
279 lib
/vconn-passive.man \
280 lib
/vlog-unixctl.man \
288 lib
/vswitch-idl.ovsidl
290 EXTRA_DIST
+= lib
/vswitch-idl.ann
291 VSWITCH_IDL_FILES
= vswitchd
/vswitch.ovsschema lib
/vswitch-idl.ann
292 lib
/vswitch-idl.ovsidl
: $(VSWITCH_IDL_FILES
)
293 $(OVSDB_IDLC
) -C
$(srcdir) annotate
$(VSWITCH_IDL_FILES
) > $@.tmp
296 lib
/dirs.c
: lib
/dirs.c.in Makefile
297 ($(ro_c
) && sed
< $(srcdir)/lib
/dirs.c.in \
298 -e
's,[@]srcdir[@],$(srcdir),g' \
299 -e
's,[@]LOGDIR[@],"$(LOGDIR)",g' \
300 -e
's,[@]RUNDIR[@],"$(RUNDIR)",g' \
301 -e
's,[@]bindir[@],"$(bindir)",g' \
302 -e
's,[@]sysconfdir[@],"$(sysconfdir)",g' \
303 -e
's,[@]pkgdatadir[@],"$(pkgdatadir)",g') \
305 mv lib
/dirs.c.tmp lib
/dirs.c
307 $(srcdir)/lib
/ofp-errors.inc
: \
308 lib
/ofp-errors.h
$(srcdir)/build-aux
/extract-ofp-errors
309 $(run_python
) $(srcdir)/build-aux
/extract-ofp-errors \
310 $(srcdir)/lib
/ofp-errors.h
> $@.tmp
&& mv
$@.tmp
$@
311 $(srcdir)/lib
/ofp-errors.c
: $(srcdir)/lib
/ofp-errors.inc
312 EXTRA_DIST
+= build-aux
/extract-ofp-errors lib
/ofp-errors.inc
314 INSTALL_DATA_LOCAL
+= lib-install-data-local
315 lib-install-data-local
:
316 $(MKDIR_P
) $(DESTDIR
)$(RUNDIR
)
317 $(MKDIR_P
) $(DESTDIR
)$(PKIDIR
)
318 $(MKDIR_P
) $(DESTDIR
)$(LOGDIR
)
320 if
!USE_LINKER_SECTIONS
321 # All distributed sources, with names adjust properly for referencing
324 `for file in $(DIST_SOURCES); do \
325 if test -f $$file; then \
328 echo $(VPATH)/$$file; \
332 lib
/coverage.
$(OBJEXT
): lib
/coverage.def
333 lib
/coverage.def
: $(DIST_SOURCES
)
334 sed
-n
's|^COVERAGE_DEFINE(\([_a-zA-Z0-9]\{1,\}\)).*$$|COVERAGE_COUNTER(\1)|p' $(all_sources
) | LC_ALL
=C
sort -u
> $@
335 CLEANFILES
+= lib
/coverage.def
337 lib
/stress.
$(OBJEXT
): lib
/stress.def
338 lib
/stress.def
: $(DIST_SOURCES
)
339 sed
-n
'/^STRESS_OPTION(/,/);$$/{s/);$$/)/;p}' $(all_sources
) > $@
340 CLEANFILES
+= lib
/stress.def
342 lib
/vlog.
$(OBJEXT
): lib
/vlog-modules.def
343 lib
/vlog-modules.def
: $(DIST_SOURCES
)
344 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
> $@
345 CLEANFILES
+= lib
/vlog-modules.def