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 \
122 lib/stream-provider.h \
143 lib/vconn-provider.h \
151 lib/vlog-modules.def \
155 nodist_lib_libopenvswitch_a_SOURCES = \
156 lib/coverage-counters.c \
158 CLEANFILES += $(nodist_lib_libopenvswitch_a_SOURCES)
161 lib_libopenvswitch_a_SOURCES += \
162 lib/netlink-protocol.h \
168 lib_libopenvswitch_a_SOURCES += \
170 nodist_lib_libopenvswitch_a_SOURCES += lib/dhparams.c
171 lib/dhparams.c: lib/dh1024.pem lib/dh2048.pem lib/dh4096.pem
172 (echo '#include "lib/dhparams.h"' && \
173 openssl dhparam -C -in $(srcdir)/lib/dh1024.pem -noout && \
174 openssl dhparam -C -in $(srcdir)/lib/dh2048.pem -noout && \
175 openssl dhparam -C -in $(srcdir)/lib/dh4096.pem -noout) \
176 | sed 's/\(get_dh[0-9]*\)()/\1(void)/' > lib/dhparams.c.tmp
177 mv lib/dhparams.c.tmp lib/dhparams.c
190 lib/leak-checker.man \
191 lib/vlog-unixctl.man \
197 echo 'const char ovs_pkgdatadir[] = "$(pkgdatadir)";' && \
198 echo 'const char ovs_rundir[] = "@RUNDIR@";' && \
199 echo 'const char ovs_logdir[] = "@LOGDIR@";' && \
200 echo 'const char ovs_bindir[] = "$(bindir)";') > lib/dirs.c.tmp
201 mv lib/dirs.c.tmp lib/dirs.c
204 $(MKDIR_P) $(DESTDIR)$(RUNDIR)
205 $(MKDIR_P) $(DESTDIR)$(PKIDIR)
206 $(MKDIR_P) $(DESTDIR)$(LOGDIR)
208 # All the source files that have coverage counters.
232 vswitchd/ovs-brcompatd.c
233 lib/coverage-counters.c: $(COVERAGE_FILES) lib/coverage-scan.pl
234 (cd $(srcdir) && $(PERL) lib/coverage-scan.pl $(COVERAGE_FILES)) > $@.tmp
236 EXTRA_DIST += lib/coverage-scan.pl