1 # Copyright (C) 2009, 2010, 2011 Nicira Networks, 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
= \
48 lib
/dynamic-string.c \
49 lib
/dynamic-string.h \
72 lib
/learning-switch.c \
73 lib
/learning-switch.h \
85 lib
/netdev-provider.h \
110 lib
/ovsdb-idl-provider.h \
148 lib
/stream-provider.h \
179 lib
/vconn-provider.h \
189 nodist_lib_libopenvswitch_a_SOURCES
= \
191 CLEANFILES
+= $(nodist_lib_libopenvswitch_a_SOURCES
)
193 noinst_LIBRARIES
+= lib
/libsflow.a
194 lib_libsflow_a_SOURCES
= \
198 lib
/sflow_sampler.c \
201 lib_libsflow_a_CFLAGS
= $(AM_CFLAGS
)
203 lib_libsflow_a_CFLAGS
+= -Wno-unused
205 if HAVE_WNO_UNUSED_PARAMETER
206 lib_libsflow_a_CFLAGS
+= -Wno-unused-parameter
210 lib_libopenvswitch_a_SOURCES
+= \
217 lib
/netlink-notifier.c \
218 lib
/netlink-notifier.h \
219 lib
/netlink-protocol.h \
220 lib
/netlink-socket.c \
221 lib
/netlink-socket.h \
222 lib
/rtnetlink-link.c \
223 lib
/rtnetlink-link.h \
229 lib_libopenvswitch_a_SOURCES
+= lib
/stream-ssl.c
230 nodist_lib_libopenvswitch_a_SOURCES
+= lib
/dhparams.c
231 lib
/dhparams.c
: lib
/dh1024.pem lib
/dh2048.pem lib
/dh4096.pem
232 (echo
'#include "lib/dhparams.h"' && \
233 openssl dhparam
-C
-in
$(srcdir)/lib
/dh1024.pem
-noout
&& \
234 openssl dhparam
-C
-in
$(srcdir)/lib
/dh2048.pem
-noout
&& \
235 openssl dhparam
-C
-in
$(srcdir)/lib
/dh4096.pem
-noout
) \
236 | sed
's/\(get_dh[0-9]*\)()/\1(void)/' > lib
/dhparams.c.tmp
237 mv lib
/dhparams.c.tmp lib
/dhparams.c
239 lib_libopenvswitch_a_SOURCES
+= lib
/stream-nossl.c
253 lib
/leak-checker.man \
255 lib
/ssl-bootstrap.man \
256 lib
/ssl-bootstrap-syn.man \
257 lib
/ssl-peer-ca-cert.man \
260 lib
/stress-unixctl.man \
263 lib
/unixctl-syn.man \
264 lib
/vconn-active.man \
265 lib
/vconn-passive.man \
266 lib
/vlog-unixctl.man \
270 lib
/dirs.c
: lib
/dirs.c.in Makefile
271 ($(ro_c
) && sed
< $(srcdir)/lib
/dirs.c.in \
272 -e
's,[@]srcdir[@],$(srcdir),g' \
273 -e
's,[@]LOGDIR[@],"$(LOGDIR)",g' \
274 -e
's,[@]RUNDIR[@],"$(RUNDIR)",g' \
275 -e
's,[@]bindir[@],"$(bindir)",g' \
276 -e
's,[@]sysconfdir[@],"$(sysconfdir)",g' \
277 -e
's,[@]pkgdatadir[@],"$(pkgdatadir)",g') \
279 mv lib
/dirs.c.tmp lib
/dirs.c
281 $(srcdir)/lib
/ofp-errors.inc
: \
282 lib
/ofp-errors.h
$(srcdir)/build-aux
/extract-ofp-errors
283 $(PYTHON
) $(srcdir)/build-aux
/extract-ofp-errors \
284 $(srcdir)/lib
/ofp-errors.h
> $@.tmp
&& mv
$@.tmp
$@
285 lib
/ofp-errors.c
: lib
/ofp-errors.inc
286 EXTRA_DIST
+= build-aux
/extract-ofp-errors lib
/ofp-errors.inc
288 INSTALL_DATA_LOCAL
+= lib-install-data-local
289 lib-install-data-local
:
290 $(MKDIR_P
) $(DESTDIR
)$(RUNDIR
)
291 $(MKDIR_P
) $(DESTDIR
)$(PKIDIR
)
292 $(MKDIR_P
) $(DESTDIR
)$(LOGDIR
)
294 if
!USE_LINKER_SECTIONS
295 # All distributed sources, with names adjust properly for referencing
298 `for file in $(DIST_SOURCES); do \
299 if test -f $$file; then \
302 echo $(VPATH)/$$file; \
306 lib
/coverage.
$(OBJEXT
): lib
/coverage.def
307 lib
/coverage.def
: $(DIST_SOURCES
)
308 sed
-n
's|^COVERAGE_DEFINE(\([_a-zA-Z0-9]\{1,\}\)).*$$|COVERAGE_COUNTER(\1)|p' $(all_sources
) | LC_ALL
=C
sort -u
> $@
309 CLEANFILES
+= lib
/coverage.def
311 lib
/stress.
$(OBJEXT
): lib
/stress.def
312 lib
/stress.def
: $(DIST_SOURCES
)
313 sed
-n
'/^STRESS_OPTION(/,/);$$/{s/);$$/)/;p}' $(all_sources
) > $@
314 CLEANFILES
+= lib
/stress.def
316 lib
/vlog.
$(OBJEXT
): lib
/vlog-modules.def
317 lib
/vlog-modules.def
: $(DIST_SOURCES
)
318 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
> $@
319 CLEANFILES
+= lib
/vlog-modules.def