1 # Copyright (C) 2009 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 \
144 lib/vconn-provider.h \
148 lib/vlog-modules.def \
152 nodist_lib_libopenvswitch_a_SOURCES = \
153 lib/coverage-counters.c \
155 CLEANFILES += $(nodist_lib_libopenvswitch_a_SOURCES)
158 lib_libopenvswitch_a_SOURCES += \
159 lib/netlink-protocol.h \
165 lib_libopenvswitch_a_SOURCES += lib/stream-ssl.c
166 nodist_lib_libopenvswitch_a_SOURCES += lib/dhparams.c
167 lib/dhparams.c: lib/dh1024.pem lib/dh2048.pem lib/dh4096.pem
168 (echo '#include "lib/dhparams.h"' && \
169 openssl dhparam -C -in $(srcdir)/lib/dh1024.pem -noout && \
170 openssl dhparam -C -in $(srcdir)/lib/dh2048.pem -noout && \
171 openssl dhparam -C -in $(srcdir)/lib/dh4096.pem -noout) \
172 | sed 's/\(get_dh[0-9]*\)()/\1(void)/' > lib/dhparams.c.tmp
173 mv lib/dhparams.c.tmp lib/dhparams.c
188 lib/leak-checker.man \
189 lib/ssl-bootstrap.man \
190 lib/ssl-bootstrap-syn.man \
191 lib/ssl-peer-ca-cert.man \
194 lib/vconn-active.man \
195 lib/vconn-passive.man \
196 lib/vlog-unixctl.man \
203 echo 'const char ovs_pkgdatadir[] = "$(pkgdatadir)";' && \
204 echo 'const char ovs_rundir[] = "@RUNDIR@";' && \
205 echo 'const char ovs_logdir[] = "@LOGDIR@";' && \
206 echo 'const char ovs_bindir[] = "$(bindir)";') > lib/dirs.c.tmp
207 mv lib/dirs.c.tmp lib/dirs.c
210 $(MKDIR_P) $(DESTDIR)$(RUNDIR)
211 $(MKDIR_P) $(DESTDIR)$(PKIDIR)
212 $(MKDIR_P) $(DESTDIR)$(LOGDIR)
214 # All the source files that have coverage counters.
237 vswitchd/ovs-brcompatd.c
238 lib/coverage-counters.c: $(COVERAGE_FILES) lib/coverage-scan.pl
239 (cd $(srcdir) && $(PERL) lib/coverage-scan.pl $(COVERAGE_FILES)) > $@.tmp
241 EXTRA_DIST += lib/coverage-scan.pl