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 = \
26 lib/coverage-counters.h \
41 lib/dynamic-string.c \
42 lib/dynamic-string.h \
59 lib/learning-switch.c \
60 lib/learning-switch.h \
67 lib/netdev-provider.h \
84 lib/ovsdb-idl-provider.h \
124 lib/stream-provider.h \
148 lib/vconn-provider.h \
152 lib/vlog-modules.def \
156 nodist_lib_libopenvswitch_a_SOURCES = \
157 lib/coverage-counters.c \
159 CLEANFILES += $(nodist_lib_libopenvswitch_a_SOURCES)
161 noinst_LIBRARIES += lib/libsflow.a
162 lib_libsflow_a_SOURCES = \
166 lib/sflow_sampler.c \
169 lib_libsflow_a_CFLAGS = $(AM_CFLAGS)
171 lib_libsflow_a_CFLAGS += -Wno-unused
173 if HAVE_WNO_UNUSED_PARAMETER
174 lib_libsflow_a_CFLAGS += -Wno-unused-parameter
178 lib_libopenvswitch_a_SOURCES += \
185 lib/netlink-protocol.h \
193 lib_libopenvswitch_a_SOURCES += lib/stream-ssl.c
194 nodist_lib_libopenvswitch_a_SOURCES += lib/dhparams.c
195 lib/dhparams.c: lib/dh1024.pem lib/dh2048.pem lib/dh4096.pem
196 (echo '#include "lib/dhparams.h"' && \
197 openssl dhparam -C -in $(srcdir)/lib/dh1024.pem -noout && \
198 openssl dhparam -C -in $(srcdir)/lib/dh2048.pem -noout && \
199 openssl dhparam -C -in $(srcdir)/lib/dh4096.pem -noout) \
200 | sed 's/\(get_dh[0-9]*\)()/\1(void)/' > lib/dhparams.c.tmp
201 mv lib/dhparams.c.tmp lib/dhparams.c
216 lib/leak-checker.man \
217 lib/ssl-bootstrap.man \
218 lib/ssl-bootstrap-syn.man \
219 lib/ssl-peer-ca-cert.man \
223 lib/unixctl-syn.man \
224 lib/vconn-active.man \
225 lib/vconn-passive.man \
226 lib/vlog-unixctl.man \
233 echo 'const char ovs_pkgdatadir[] = "$(pkgdatadir)";' && \
234 echo 'const char ovs_rundir[] = "@RUNDIR@";' && \
235 echo 'const char ovs_logdir[] = "@LOGDIR@";' && \
236 echo 'const char ovs_bindir[] = "$(bindir)";') > lib/dirs.c.tmp
237 mv lib/dirs.c.tmp lib/dirs.c
240 $(MKDIR_P) $(DESTDIR)$(RUNDIR)
241 $(MKDIR_P) $(DESTDIR)$(PKIDIR)
242 $(MKDIR_P) $(DESTDIR)$(LOGDIR)
244 # All the source files that have coverage counters.
268 vswitchd/ovs-brcompatd.c
269 lib/coverage-counters.c: $(COVERAGE_FILES) lib/coverage-scan.pl
270 (cd $(srcdir) && $(PERL) lib/coverage-scan.pl $(COVERAGE_FILES)) > $@.tmp
272 EXTRA_DIST += lib/coverage-scan.pl
274 ALL_LOCAL += check-vlog-modules
276 cd $(srcdir) && build-aux/check-vlog-modules
277 .PHONY: check-vlog-modules
278 EXTRA_DIST += build-aux/check-vlog-modules