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 \
69 lib/netdev-provider.h \
84 lib/ovsdb-idl-provider.h \
126 lib/stream-provider.h \
150 lib/vconn-provider.h \
154 lib/vlog-modules.def \
158 nodist_lib_libopenvswitch_a_SOURCES = \
159 lib/coverage-counters.c \
161 CLEANFILES += $(nodist_lib_libopenvswitch_a_SOURCES)
163 noinst_LIBRARIES += lib/libsflow.a
164 lib_libsflow_a_SOURCES = \
168 lib/sflow_sampler.c \
171 lib_libsflow_a_CFLAGS = $(AM_CFLAGS)
173 lib_libsflow_a_CFLAGS += -Wno-unused
177 lib_libopenvswitch_a_SOURCES += \
178 lib/netlink-protocol.h \
184 lib_libopenvswitch_a_SOURCES += lib/stream-ssl.c
185 nodist_lib_libopenvswitch_a_SOURCES += lib/dhparams.c
186 lib/dhparams.c: lib/dh1024.pem lib/dh2048.pem lib/dh4096.pem
187 (echo '#include "lib/dhparams.h"' && \
188 openssl dhparam -C -in $(srcdir)/lib/dh1024.pem -noout && \
189 openssl dhparam -C -in $(srcdir)/lib/dh2048.pem -noout && \
190 openssl dhparam -C -in $(srcdir)/lib/dh4096.pem -noout) \
191 | sed 's/\(get_dh[0-9]*\)()/\1(void)/' > lib/dhparams.c.tmp
192 mv lib/dhparams.c.tmp lib/dhparams.c
207 lib/leak-checker.man \
208 lib/ssl-bootstrap.man \
209 lib/ssl-bootstrap-syn.man \
210 lib/ssl-peer-ca-cert.man \
214 lib/unixctl-syn.man \
215 lib/vconn-active.man \
216 lib/vconn-passive.man \
217 lib/vlog-unixctl.man \
224 echo 'const char ovs_pkgdatadir[] = "$(pkgdatadir)";' && \
225 echo 'const char ovs_rundir[] = "@RUNDIR@";' && \
226 echo 'const char ovs_logdir[] = "@LOGDIR@";' && \
227 echo 'const char ovs_bindir[] = "$(bindir)";') > lib/dirs.c.tmp
228 mv lib/dirs.c.tmp lib/dirs.c
231 $(MKDIR_P) $(DESTDIR)$(RUNDIR)
232 $(MKDIR_P) $(DESTDIR)$(PKIDIR)
233 $(MKDIR_P) $(DESTDIR)$(LOGDIR)
235 # All the source files that have coverage counters.
258 vswitchd/ovs-brcompatd.c
259 lib/coverage-counters.c: $(COVERAGE_FILES) lib/coverage-scan.pl
260 (cd $(srcdir) && $(PERL) lib/coverage-scan.pl $(COVERAGE_FILES)) > $@.tmp
262 EXTRA_DIST += lib/coverage-scan.pl