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 \
121 lib/stream-provider.h \
142 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)
160 lib_libopenvswitch_a_SOURCES += \
161 lib/netlink-protocol.h \
167 lib_libopenvswitch_a_SOURCES += \
169 nodist_lib_libopenvswitch_a_SOURCES += lib/dhparams.c
170 lib/dhparams.c: lib/dh1024.pem lib/dh2048.pem lib/dh4096.pem
171 (echo '#include "lib/dhparams.h"' && \
172 openssl dhparam -C -in $(srcdir)/lib/dh1024.pem -noout && \
173 openssl dhparam -C -in $(srcdir)/lib/dh2048.pem -noout && \
174 openssl dhparam -C -in $(srcdir)/lib/dh4096.pem -noout) \
175 | sed 's/\(get_dh[0-9]*\)()/\1(void)/' > lib/dhparams.c.tmp
176 mv lib/dhparams.c.tmp lib/dhparams.c
189 lib/leak-checker.man \
190 lib/vlog-unixctl.man \
196 echo 'const char ovs_pkgdatadir[] = "$(pkgdatadir)";' && \
197 echo 'const char ovs_rundir[] = "@RUNDIR@";' && \
198 echo 'const char ovs_logdir[] = "@LOGDIR@";' && \
199 echo 'const char ovs_bindir[] = "$(bindir)";') > lib/dirs.c.tmp
200 mv lib/dirs.c.tmp lib/dirs.c
203 $(MKDIR_P) $(DESTDIR)$(RUNDIR)
204 $(MKDIR_P) $(DESTDIR)$(PKIDIR)
205 $(MKDIR_P) $(DESTDIR)$(LOGDIR)
207 # All the source files that have coverage counters.
231 vswitchd/ovs-brcompatd.c
232 lib/coverage-counters.c: $(COVERAGE_FILES) lib/coverage-scan.pl
233 (cd $(srcdir) && $(PERL) lib/coverage-scan.pl $(COVERAGE_FILES)) > $@.tmp
235 EXTRA_DIST += lib/coverage-scan.pl