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 \
67 lib/netdev-provider.h \
80 lib/ovsdb-idl-provider.h \
122 lib/stream-provider.h \
145 lib/vconn-provider.h \
149 lib/vlog-modules.def \
153 nodist_lib_libopenvswitch_a_SOURCES = \
154 lib/coverage-counters.c \
156 CLEANFILES += $(nodist_lib_libopenvswitch_a_SOURCES)
158 noinst_LIBRARIES += lib/libsflow.a
159 lib_libsflow_a_SOURCES = \
163 lib/sflow_sampler.c \
166 lib_libsflow_a_CFLAGS = $(AM_CFLAGS)
168 lib_libsflow_a_CFLAGS += -Wno-unused
172 lib_libopenvswitch_a_SOURCES += \
173 lib/netlink-protocol.h \
179 lib_libopenvswitch_a_SOURCES += lib/stream-ssl.c
180 nodist_lib_libopenvswitch_a_SOURCES += lib/dhparams.c
181 lib/dhparams.c: lib/dh1024.pem lib/dh2048.pem lib/dh4096.pem
182 (echo '#include "lib/dhparams.h"' && \
183 openssl dhparam -C -in $(srcdir)/lib/dh1024.pem -noout && \
184 openssl dhparam -C -in $(srcdir)/lib/dh2048.pem -noout && \
185 openssl dhparam -C -in $(srcdir)/lib/dh4096.pem -noout) \
186 | sed 's/\(get_dh[0-9]*\)()/\1(void)/' > lib/dhparams.c.tmp
187 mv lib/dhparams.c.tmp lib/dhparams.c
202 lib/leak-checker.man \
203 lib/ssl-bootstrap.man \
204 lib/ssl-bootstrap-syn.man \
205 lib/ssl-peer-ca-cert.man \
208 lib/vconn-active.man \
209 lib/vconn-passive.man \
210 lib/vlog-unixctl.man \
217 echo 'const char ovs_pkgdatadir[] = "$(pkgdatadir)";' && \
218 echo 'const char ovs_rundir[] = "@RUNDIR@";' && \
219 echo 'const char ovs_logdir[] = "@LOGDIR@";' && \
220 echo 'const char ovs_bindir[] = "$(bindir)";') > lib/dirs.c.tmp
221 mv lib/dirs.c.tmp lib/dirs.c
224 $(MKDIR_P) $(DESTDIR)$(RUNDIR)
225 $(MKDIR_P) $(DESTDIR)$(PKIDIR)
226 $(MKDIR_P) $(DESTDIR)$(LOGDIR)
228 # All the source files that have coverage counters.
251 vswitchd/ovs-brcompatd.c
252 lib/coverage-counters.c: $(COVERAGE_FILES) lib/coverage-scan.pl
253 (cd $(srcdir) && $(PERL) lib/coverage-scan.pl $(COVERAGE_FILES)) > $@.tmp
255 EXTRA_DIST += lib/coverage-scan.pl