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
= \
46 lib
/dynamic-string.c \
47 lib
/dynamic-string.h \
68 lib
/learning-switch.c \
69 lib
/learning-switch.h \
79 lib
/netdev-provider.h \
103 lib
/ovsdb-idl-provider.h \
139 lib
/stream-provider.h \
170 lib
/vconn-provider.h \
178 nodist_lib_libopenvswitch_a_SOURCES
= \
180 CLEANFILES
+= $(nodist_lib_libopenvswitch_a_SOURCES
)
182 noinst_LIBRARIES
+= lib
/libsflow.a
183 lib_libsflow_a_SOURCES
= \
187 lib
/sflow_sampler.c \
190 lib_libsflow_a_CFLAGS
= $(AM_CFLAGS
)
192 lib_libsflow_a_CFLAGS
+= -Wno-unused
194 if HAVE_WNO_UNUSED_PARAMETER
195 lib_libsflow_a_CFLAGS
+= -Wno-unused-parameter
199 lib_libopenvswitch_a_SOURCES
+= \
205 lib
/netlink-protocol.h \
206 lib
/netlink-socket.c \
207 lib
/netlink-socket.h \
210 lib
/rtnetlink-link.c \
211 lib
/rtnetlink-link.h \
217 lib_libopenvswitch_a_SOURCES
+= lib
/stream-ssl.c
218 nodist_lib_libopenvswitch_a_SOURCES
+= lib
/dhparams.c
219 lib
/dhparams.c
: lib
/dh1024.pem lib
/dh2048.pem lib
/dh4096.pem
220 (echo
'#include "lib/dhparams.h"' && \
221 openssl dhparam
-C
-in
$(srcdir)/lib
/dh1024.pem
-noout
&& \
222 openssl dhparam
-C
-in
$(srcdir)/lib
/dh2048.pem
-noout
&& \
223 openssl dhparam
-C
-in
$(srcdir)/lib
/dh4096.pem
-noout
) \
224 | sed
's/\(get_dh[0-9]*\)()/\1(void)/' > lib
/dhparams.c.tmp
225 mv lib
/dhparams.c.tmp lib
/dhparams.c
239 lib
/leak-checker.man \
240 lib
/ssl-bootstrap.man \
241 lib
/ssl-bootstrap-syn.man \
242 lib
/ssl-peer-ca-cert.man \
245 lib
/stress-unixctl.man \
248 lib
/unixctl-syn.man \
249 lib
/vconn-active.man \
250 lib
/vconn-passive.man \
251 lib
/vlog-unixctl.man \
255 lib
/dirs.c
: lib
/dirs.c.in Makefile
256 ($(ro_c
) && sed
< $(srcdir)/lib
/dirs.c.in \
257 -e
's,[@]srcdir[@],$(srcdir),g' \
258 -e
's,[@]LOGDIR[@],"$(LOGDIR)",g' \
259 -e
's,[@]RUNDIR[@],"$(RUNDIR)",g' \
260 -e
's,[@]bindir[@],"$(bindir)",g' \
261 -e
's,[@]pkgdatadir[@],"$(pkgdatadir)",g') \
263 mv lib
/dirs.c.tmp lib
/dirs.c
265 $(srcdir)/lib
/ofp-errors.c
: \
266 include/openflow
/openflow.h
include/openflow
/nicira-ext.h \
267 build-aux
/extract-ofp-errors
268 cd
$(srcdir)/include && \
269 $(PYTHON
) ..
/build-aux
/extract-ofp-errors \
270 openflow
/openflow.h openflow
/nicira-ext.h
> ..
/lib
/ofp-errors.c
271 EXTRA_DIST
+= build-aux
/extract-ofp-errors
273 install-data-local
: lib-install-data-local
274 lib-install-data-local
:
275 $(MKDIR_P
) $(DESTDIR
)$(RUNDIR
)
276 $(MKDIR_P
) $(DESTDIR
)$(PKIDIR
)
277 $(MKDIR_P
) $(DESTDIR
)$(LOGDIR
)
279 if
!USE_LINKER_SECTIONS
280 # All distributed sources, with names adjust properly for referencing
283 `for file in $(DIST_SOURCES); do \
284 if test -f $$file; then \
287 echo $(VPATH)/$$file; \
291 lib
/coverage.
$(OBJEXT
): lib
/coverage.def
292 lib
/coverage.def
: $(DIST_SOURCES
)
293 sed
-n
's|^COVERAGE_DEFINE(\([_a-zA-Z0-9]\{1,\}\)).*$$|COVERAGE_COUNTER(\1)|p' $(all_sources
) | LC_ALL
=C
sort -u
> $@
294 CLEANFILES
+= lib
/coverage.def
296 lib
/stress.
$(OBJEXT
): lib
/stress.def
297 lib
/stress.def
: $(DIST_SOURCES
)
298 sed
-n
'/^STRESS_OPTION(/,/);$$/{s/);$$/)/;p}' $(all_sources
) > $@
299 CLEANFILES
+= lib
/stress.def
301 lib
/vlog.
$(OBJEXT
): lib
/vlog-modules.def
302 lib
/vlog-modules.def
: $(DIST_SOURCES
)
303 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
> $@
304 CLEANFILES
+= lib
/vlog-modules.def