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 \
83 lib/ovsdb-idl-provider.h \
125 lib/stream-provider.h \
149 lib/vconn-provider.h \
153 lib/vlog-modules.def \
157 nodist_lib_libopenvswitch_a_SOURCES = \
158 lib/coverage-counters.c \
160 CLEANFILES += $(nodist_lib_libopenvswitch_a_SOURCES)
162 noinst_LIBRARIES += lib/libsflow.a
163 lib_libsflow_a_SOURCES = \
167 lib/sflow_sampler.c \
170 lib_libsflow_a_CFLAGS = $(AM_CFLAGS)
172 lib_libsflow_a_CFLAGS += -Wno-unused
176 lib_libopenvswitch_a_SOURCES += \
177 lib/netlink-protocol.h \
183 lib_libopenvswitch_a_SOURCES += lib/stream-ssl.c
184 nodist_lib_libopenvswitch_a_SOURCES += lib/dhparams.c
185 lib/dhparams.c: lib/dh1024.pem lib/dh2048.pem lib/dh4096.pem
186 (echo '#include "lib/dhparams.h"' && \
187 openssl dhparam -C -in $(srcdir)/lib/dh1024.pem -noout && \
188 openssl dhparam -C -in $(srcdir)/lib/dh2048.pem -noout && \
189 openssl dhparam -C -in $(srcdir)/lib/dh4096.pem -noout) \
190 | sed 's/\(get_dh[0-9]*\)()/\1(void)/' > lib/dhparams.c.tmp
191 mv lib/dhparams.c.tmp lib/dhparams.c
206 lib/leak-checker.man \
207 lib/ssl-bootstrap.man \
208 lib/ssl-bootstrap-syn.man \
209 lib/ssl-peer-ca-cert.man \
213 lib/unixctl-syn.man \
214 lib/vconn-active.man \
215 lib/vconn-passive.man \
216 lib/vlog-unixctl.man \
223 echo 'const char ovs_pkgdatadir[] = "$(pkgdatadir)";' && \
224 echo 'const char ovs_rundir[] = "@RUNDIR@";' && \
225 echo 'const char ovs_logdir[] = "@LOGDIR@";' && \
226 echo 'const char ovs_bindir[] = "$(bindir)";') > lib/dirs.c.tmp
227 mv lib/dirs.c.tmp lib/dirs.c
230 $(MKDIR_P) $(DESTDIR)$(RUNDIR)
231 $(MKDIR_P) $(DESTDIR)$(PKIDIR)
232 $(MKDIR_P) $(DESTDIR)$(LOGDIR)
234 # All the source files that have coverage counters.
257 vswitchd/ovs-brcompatd.c
258 lib/coverage-counters.c: $(COVERAGE_FILES) lib/coverage-scan.pl
259 (cd $(srcdir) && $(PERL) lib/coverage-scan.pl $(COVERAGE_FILES)) > $@.tmp
261 EXTRA_DIST += lib/coverage-scan.pl