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 = \
28 lib/coverage-counters.h \
44 lib/dynamic-string.c \
45 lib/dynamic-string.h \
62 lib/learning-switch.c \
63 lib/learning-switch.h \
71 lib/netdev-provider.h \
123 lib/stream-provider.h \
144 lib/vconn-provider.h \
152 lib/vlog-modules.def \
156 nodist_lib_libopenvswitch_a_SOURCES = \
157 lib/coverage-counters.c \
159 CLEANFILES += $(nodist_lib_libopenvswitch_a_SOURCES)
162 lib_libopenvswitch_a_SOURCES += \
163 lib/netlink-protocol.h \
169 lib_libopenvswitch_a_SOURCES += \
171 nodist_lib_libopenvswitch_a_SOURCES += lib/dhparams.c
172 lib/dhparams.c: lib/dh1024.pem lib/dh2048.pem lib/dh4096.pem
173 (echo '#include "lib/dhparams.h"' && \
174 openssl dhparam -C -in $(srcdir)/lib/dh1024.pem -noout && \
175 openssl dhparam -C -in $(srcdir)/lib/dh2048.pem -noout && \
176 openssl dhparam -C -in $(srcdir)/lib/dh4096.pem -noout) \
177 | sed 's/\(get_dh[0-9]*\)()/\1(void)/' > lib/dhparams.c.tmp
178 mv lib/dhparams.c.tmp lib/dhparams.c
193 lib/leak-checker.man \
194 lib/vlog-unixctl.man \
201 echo 'const char ovs_pkgdatadir[] = "$(pkgdatadir)";' && \
202 echo 'const char ovs_rundir[] = "@RUNDIR@";' && \
203 echo 'const char ovs_logdir[] = "@LOGDIR@";' && \
204 echo 'const char ovs_bindir[] = "$(bindir)";') > lib/dirs.c.tmp
205 mv lib/dirs.c.tmp lib/dirs.c
208 $(MKDIR_P) $(DESTDIR)$(RUNDIR)
209 $(MKDIR_P) $(DESTDIR)$(PKIDIR)
210 $(MKDIR_P) $(DESTDIR)$(LOGDIR)
212 # 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