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
+= \
206 lib
/netlink-protocol.h \
207 lib
/netlink-socket.c \
208 lib
/netlink-socket.h \
211 lib
/rtnetlink-link.c \
212 lib
/rtnetlink-link.h \
218 lib_libopenvswitch_a_SOURCES
+= lib
/stream-ssl.c
219 nodist_lib_libopenvswitch_a_SOURCES
+= lib
/dhparams.c
220 lib
/dhparams.c
: lib
/dh1024.pem lib
/dh2048.pem lib
/dh4096.pem
221 (echo
'#include "lib/dhparams.h"' && \
222 openssl dhparam
-C
-in
$(srcdir)/lib
/dh1024.pem
-noout
&& \
223 openssl dhparam
-C
-in
$(srcdir)/lib
/dh2048.pem
-noout
&& \
224 openssl dhparam
-C
-in
$(srcdir)/lib
/dh4096.pem
-noout
) \
225 | sed
's/\(get_dh[0-9]*\)()/\1(void)/' > lib
/dhparams.c.tmp
226 mv lib
/dhparams.c.tmp lib
/dhparams.c
228 lib_libopenvswitch_a_SOURCES
+= lib
/stream-nossl.c
242 lib
/leak-checker.man \
243 lib
/ssl-bootstrap.man \
244 lib
/ssl-bootstrap-syn.man \
245 lib
/ssl-peer-ca-cert.man \
248 lib
/stress-unixctl.man \
251 lib
/unixctl-syn.man \
252 lib
/vconn-active.man \
253 lib
/vconn-passive.man \
254 lib
/vlog-unixctl.man \
258 lib
/dirs.c
: lib
/dirs.c.in Makefile
259 ($(ro_c
) && sed
< $(srcdir)/lib
/dirs.c.in \
260 -e
's,[@]srcdir[@],$(srcdir),g' \
261 -e
's,[@]LOGDIR[@],"$(LOGDIR)",g' \
262 -e
's,[@]RUNDIR[@],"$(RUNDIR)",g' \
263 -e
's,[@]bindir[@],"$(bindir)",g' \
264 -e
's,[@]pkgdatadir[@],"$(pkgdatadir)",g') \
266 mv lib
/dirs.c.tmp lib
/dirs.c
268 $(srcdir)/lib
/ofp-errors.c
: \
269 include/openflow
/openflow.h
include/openflow
/nicira-ext.h \
270 build-aux
/extract-ofp-errors
271 cd
$(srcdir)/include && \
272 $(PYTHON
) ..
/build-aux
/extract-ofp-errors \
273 openflow
/openflow.h openflow
/nicira-ext.h
> ..
/lib
/ofp-errors.c
274 EXTRA_DIST
+= build-aux
/extract-ofp-errors
276 install-data-local
: lib-install-data-local
277 lib-install-data-local
:
278 $(MKDIR_P
) $(DESTDIR
)$(RUNDIR
)
279 $(MKDIR_P
) $(DESTDIR
)$(PKIDIR
)
280 $(MKDIR_P
) $(DESTDIR
)$(LOGDIR
)
282 if
!USE_LINKER_SECTIONS
283 # All distributed sources, with names adjust properly for referencing
286 `for file in $(DIST_SOURCES); do \
287 if test -f $$file; then \
290 echo $(VPATH)/$$file; \
294 lib
/coverage.
$(OBJEXT
): lib
/coverage.def
295 lib
/coverage.def
: $(DIST_SOURCES
)
296 sed
-n
's|^COVERAGE_DEFINE(\([_a-zA-Z0-9]\{1,\}\)).*$$|COVERAGE_COUNTER(\1)|p' $(all_sources
) | LC_ALL
=C
sort -u
> $@
297 CLEANFILES
+= lib
/coverage.def
299 lib
/stress.
$(OBJEXT
): lib
/stress.def
300 lib
/stress.def
: $(DIST_SOURCES
)
301 sed
-n
'/^STRESS_OPTION(/,/);$$/{s/);$$/)/;p}' $(all_sources
) > $@
302 CLEANFILES
+= lib
/stress.def
304 lib
/vlog.
$(OBJEXT
): lib
/vlog-modules.def
305 lib
/vlog-modules.def
: $(DIST_SOURCES
)
306 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
> $@
307 CLEANFILES
+= lib
/vlog-modules.def