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 \
122 lib/stream-provider.h \
146 lib/vconn-provider.h \
150 lib/vlog-modules.def \
154 nodist_lib_libopenvswitch_a_SOURCES = \
155 lib/coverage-counters.c \
157 CLEANFILES += $(nodist_lib_libopenvswitch_a_SOURCES)
159 noinst_LIBRARIES += lib/libsflow.a
160 lib_libsflow_a_SOURCES = \
164 lib/sflow_sampler.c \
167 lib_libsflow_a_CFLAGS = $(AM_CFLAGS)
169 lib_libsflow_a_CFLAGS += -Wno-unused
171 if HAVE_WNO_UNUSED_PARAMETER
172 lib_libsflow_a_CFLAGS += -Wno-unused-parameter
176 lib_libopenvswitch_a_SOURCES += \
180 lib/netdev-tunnel.c \
183 lib/netlink-protocol.h \
191 lib_libopenvswitch_a_SOURCES += lib/stream-ssl.c
192 nodist_lib_libopenvswitch_a_SOURCES += lib/dhparams.c
193 lib/dhparams.c: lib/dh1024.pem lib/dh2048.pem lib/dh4096.pem
194 (echo '#include "lib/dhparams.h"' && \
195 openssl dhparam -C -in $(srcdir)/lib/dh1024.pem -noout && \
196 openssl dhparam -C -in $(srcdir)/lib/dh2048.pem -noout && \
197 openssl dhparam -C -in $(srcdir)/lib/dh4096.pem -noout) \
198 | sed 's/\(get_dh[0-9]*\)()/\1(void)/' > lib/dhparams.c.tmp
199 mv lib/dhparams.c.tmp lib/dhparams.c
214 lib/leak-checker.man \
215 lib/ssl-bootstrap.man \
216 lib/ssl-bootstrap-syn.man \
217 lib/ssl-peer-ca-cert.man \
221 lib/unixctl-syn.man \
222 lib/vconn-active.man \
223 lib/vconn-passive.man \
224 lib/vlog-unixctl.man \
231 echo 'const char ovs_pkgdatadir[] = "$(pkgdatadir)";' && \
232 echo 'const char ovs_rundir[] = "@RUNDIR@";' && \
233 echo 'const char ovs_logdir[] = "@LOGDIR@";' && \
234 echo 'const char ovs_bindir[] = "$(bindir)";') > lib/dirs.c.tmp
235 mv lib/dirs.c.tmp lib/dirs.c
237 install-data-local: lib-install-data-local
238 lib-install-data-local:
239 $(MKDIR_P) $(DESTDIR)$(RUNDIR)
240 $(MKDIR_P) $(DESTDIR)$(PKIDIR)
241 $(MKDIR_P) $(DESTDIR)$(LOGDIR)
243 # All the source files that have coverage counters.
267 vswitchd/ovs-brcompatd.c
268 lib/coverage-counters.c: $(COVERAGE_FILES) lib/coverage-scan.pl
269 (cd $(srcdir) && $(PERL) lib/coverage-scan.pl $(COVERAGE_FILES)) > $@.tmp
271 EXTRA_DIST += lib/coverage-scan.pl
273 ALL_LOCAL += check-vlog-modules
275 cd $(srcdir) && build-aux/check-vlog-modules
276 .PHONY: check-vlog-modules
277 EXTRA_DIST += build-aux/check-vlog-modules