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 \
60 lib/learning-switch.c \
61 lib/learning-switch.h \
69 lib/netdev-provider.h \
82 lib/ovsdb-idl-provider.h \
124 lib/stream-provider.h \
145 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)
163 lib_libopenvswitch_a_SOURCES += \
164 lib/netlink-protocol.h \
170 lib_libopenvswitch_a_SOURCES += \
172 nodist_lib_libopenvswitch_a_SOURCES += lib/dhparams.c
173 lib/dhparams.c: lib/dh1024.pem lib/dh2048.pem lib/dh4096.pem
174 (echo '#include "lib/dhparams.h"' && \
175 openssl dhparam -C -in $(srcdir)/lib/dh1024.pem -noout && \
176 openssl dhparam -C -in $(srcdir)/lib/dh2048.pem -noout && \
177 openssl dhparam -C -in $(srcdir)/lib/dh4096.pem -noout) \
178 | sed 's/\(get_dh[0-9]*\)()/\1(void)/' > lib/dhparams.c.tmp
179 mv lib/dhparams.c.tmp lib/dhparams.c
194 lib/leak-checker.man \
195 lib/vlog-unixctl.man \
202 echo 'const char ovs_pkgdatadir[] = "$(pkgdatadir)";' && \
203 echo 'const char ovs_rundir[] = "@RUNDIR@";' && \
204 echo 'const char ovs_logdir[] = "@LOGDIR@";' && \
205 echo 'const char ovs_bindir[] = "$(bindir)";') > lib/dirs.c.tmp
206 mv lib/dirs.c.tmp lib/dirs.c
209 $(MKDIR_P) $(DESTDIR)$(RUNDIR)
210 $(MKDIR_P) $(DESTDIR)$(PKIDIR)
211 $(MKDIR_P) $(DESTDIR)$(LOGDIR)
213 # All the source files that have coverage counters.
236 vswitchd/ovs-brcompatd.c
237 lib/coverage-counters.c: $(COVERAGE_FILES) lib/coverage-scan.pl
238 (cd $(srcdir) && $(PERL) lib/coverage-scan.pl $(COVERAGE_FILES)) > $@.tmp
240 EXTRA_DIST += lib/coverage-scan.pl