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 \
42 lib/dynamic-string.c \
43 lib/dynamic-string.h \
58 lib/learning-switch.c \
59 lib/learning-switch.h \
68 lib/netdev-provider.h \
81 lib/ovsdb-idl-provider.h \
123 lib/stream-provider.h \
147 lib/vconn-provider.h \
151 lib/vlog-modules.def \
155 nodist_lib_libopenvswitch_a_SOURCES = \
156 lib/coverage-counters.c \
158 CLEANFILES += $(nodist_lib_libopenvswitch_a_SOURCES)
160 noinst_LIBRARIES += lib/libsflow.a
161 lib_libsflow_a_SOURCES = \
165 lib/sflow_sampler.c \
168 lib_libsflow_a_CFLAGS = $(AM_CFLAGS)
170 lib_libsflow_a_CFLAGS += -Wno-unused
174 lib_libopenvswitch_a_SOURCES += \
175 lib/netlink-protocol.h \
181 lib_libopenvswitch_a_SOURCES += lib/stream-ssl.c
182 nodist_lib_libopenvswitch_a_SOURCES += lib/dhparams.c
183 lib/dhparams.c: lib/dh1024.pem lib/dh2048.pem lib/dh4096.pem
184 (echo '#include "lib/dhparams.h"' && \
185 openssl dhparam -C -in $(srcdir)/lib/dh1024.pem -noout && \
186 openssl dhparam -C -in $(srcdir)/lib/dh2048.pem -noout && \
187 openssl dhparam -C -in $(srcdir)/lib/dh4096.pem -noout) \
188 | sed 's/\(get_dh[0-9]*\)()/\1(void)/' > lib/dhparams.c.tmp
189 mv lib/dhparams.c.tmp lib/dhparams.c
204 lib/leak-checker.man \
205 lib/ssl-bootstrap.man \
206 lib/ssl-bootstrap-syn.man \
207 lib/ssl-peer-ca-cert.man \
211 lib/unixctl-syn.man \
212 lib/vconn-active.man \
213 lib/vconn-passive.man \
214 lib/vlog-unixctl.man \
221 echo 'const char ovs_pkgdatadir[] = "$(pkgdatadir)";' && \
222 echo 'const char ovs_rundir[] = "@RUNDIR@";' && \
223 echo 'const char ovs_logdir[] = "@LOGDIR@";' && \
224 echo 'const char ovs_bindir[] = "$(bindir)";') > lib/dirs.c.tmp
225 mv lib/dirs.c.tmp lib/dirs.c
228 $(MKDIR_P) $(DESTDIR)$(RUNDIR)
229 $(MKDIR_P) $(DESTDIR)$(PKIDIR)
230 $(MKDIR_P) $(DESTDIR)$(LOGDIR)
232 # All the source files that have coverage counters.
255 vswitchd/ovs-brcompatd.c
256 lib/coverage-counters.c: $(COVERAGE_FILES) lib/coverage-scan.pl
257 (cd $(srcdir) && $(PERL) lib/coverage-scan.pl $(COVERAGE_FILES)) > $@.tmp
259 EXTRA_DIST += lib/coverage-scan.pl