1 # Copyright (C) 2009, 2010 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
= \
45 lib
/dynamic-string.c \
46 lib
/dynamic-string.h \
63 lib
/learning-switch.c \
64 lib
/learning-switch.h \
74 lib
/netdev-provider.h \
96 lib
/ovsdb-idl-provider.h \
130 lib
/stream-provider.h \
156 lib
/vconn-provider.h \
162 nodist_lib_libopenvswitch_a_SOURCES
= \
164 CLEANFILES
+= $(nodist_lib_libopenvswitch_a_SOURCES
)
166 noinst_LIBRARIES
+= lib
/libsflow.a
167 lib_libsflow_a_SOURCES
= \
171 lib
/sflow_sampler.c \
174 lib_libsflow_a_CFLAGS
= $(AM_CFLAGS
)
176 lib_libsflow_a_CFLAGS
+= -Wno-unused
178 if HAVE_WNO_UNUSED_PARAMETER
179 lib_libsflow_a_CFLAGS
+= -Wno-unused-parameter
183 lib_libopenvswitch_a_SOURCES
+= \
188 lib
/netlink-protocol.h \
189 lib
/netlink-socket.c \
190 lib
/netlink-socket.h \
196 lib_libopenvswitch_a_SOURCES
+= lib
/stream-ssl.c
197 nodist_lib_libopenvswitch_a_SOURCES
+= lib
/dhparams.c
198 lib
/dhparams.c
: lib
/dh1024.pem lib
/dh2048.pem lib
/dh4096.pem
199 (echo
'#include "lib/dhparams.h"' && \
200 openssl dhparam
-C
-in
$(srcdir)/lib
/dh1024.pem
-noout
&& \
201 openssl dhparam
-C
-in
$(srcdir)/lib
/dh2048.pem
-noout
&& \
202 openssl dhparam
-C
-in
$(srcdir)/lib
/dh4096.pem
-noout
) \
203 | sed
's/\(get_dh[0-9]*\)()/\1(void)/' > lib
/dhparams.c.tmp
204 mv lib
/dhparams.c.tmp lib
/dhparams.c
219 lib
/leak-checker.man \
220 lib
/ssl-bootstrap.man \
221 lib
/ssl-bootstrap-syn.man \
222 lib
/ssl-peer-ca-cert.man \
225 lib
/stress-unixctl.man \
227 lib
/unixctl-syn.man \
228 lib
/vconn-active.man \
229 lib
/vconn-passive.man \
230 lib
/vlog-unixctl.man \
234 lib
/dirs.c
: lib
/dirs.c.in Makefile
235 ($(ro_c
) && sed
< $(srcdir)/lib
/dirs.c.in \
236 -e
's,[@]srcdir[@],$(srcdir),g' \
237 -e
's,[@]LOGDIR[@],"$(LOGDIR)",g' \
238 -e
's,[@]RUNDIR[@],"$(RUNDIR)",g' \
239 -e
's,[@]bindir[@],"$(bindir)",g' \
240 -e
's,[@]pkgdatadir[@],"$(pkgdatadir)",g') \
242 mv lib
/dirs.c.tmp lib
/dirs.c
244 install-data-local
: lib-install-data-local
245 lib-install-data-local
:
246 $(MKDIR_P
) $(DESTDIR
)$(RUNDIR
)
247 $(MKDIR_P
) $(DESTDIR
)$(PKIDIR
)
248 $(MKDIR_P
) $(DESTDIR
)$(LOGDIR
)
250 if
!USE_LINKER_SECTIONS
251 # All distributed sources, with names adjust properly for referencing
254 `for file in $(DIST_SOURCES); do \
255 if test -f $$file; then \
258 echo $(VPATH)/$$file; \
262 lib
/coverage.
$(OBJEXT
): lib
/coverage.def
263 lib
/coverage.def
: $(DIST_SOURCES
)
264 sed
-n
's|^COVERAGE_DEFINE(\([_a-zA-Z0-9]\{1,\}\)).*$$|COVERAGE_COUNTER(\1)|p' $(all_sources
) | LC_ALL
=C
sort -u
> $@
265 CLEANFILES
+= lib
/coverage.def
267 lib
/stress.
$(OBJEXT
): lib
/stress.def
268 lib
/stress.def
: $(DIST_SOURCES
)
269 sed
-n
'/^STRESS_OPTION(/,/);$$/{s/);$$/)/;p}' $(all_sources
) > $@
270 CLEANFILES
+= lib
/stress.def
272 lib
/vlog.
$(OBJEXT
): lib
/vlog-modules.def
273 lib
/vlog-modules.def
: $(DIST_SOURCES
)
274 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
> $@
275 CLEANFILES
+= lib
/vlog-modules.def