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 \
107 lib/stream-provider.h \
128 lib/vconn-provider.h \
136 lib/vlog-modules.def \
140 nodist_lib_libopenvswitch_a_SOURCES = \
141 lib/coverage-counters.c \
143 CLEANFILES += $(nodist_lib_libopenvswitch_a_SOURCES)
146 lib_libopenvswitch_a_SOURCES += \
147 lib/netlink-protocol.h \
153 lib_libopenvswitch_a_SOURCES += \
155 nodist_lib_libopenvswitch_a_SOURCES += lib/dhparams.c
156 lib/dhparams.c: lib/dh1024.pem lib/dh2048.pem lib/dh4096.pem
157 (echo '#include "lib/dhparams.h"' && \
158 openssl dhparam -C -in $(srcdir)/lib/dh1024.pem -noout && \
159 openssl dhparam -C -in $(srcdir)/lib/dh2048.pem -noout && \
160 openssl dhparam -C -in $(srcdir)/lib/dh4096.pem -noout) \
161 | sed 's/\(get_dh[0-9]*\)()/\1(void)/' > lib/dhparams.c.tmp
162 mv lib/dhparams.c.tmp lib/dhparams.c
175 lib/leak-checker.man \
176 lib/vlog-unixctl.man \
182 echo 'const char ovs_pkgdatadir[] = "$(pkgdatadir)";' && \
183 echo 'const char ovs_rundir[] = "@RUNDIR@";' && \
184 echo 'const char ovs_logdir[] = "@LOGDIR@";' && \
185 echo 'const char ovs_bindir[] = "$(bindir)";') > lib/dirs.c.tmp
186 mv lib/dirs.c.tmp lib/dirs.c
189 $(MKDIR_P) $(DESTDIR)$(RUNDIR)
190 $(MKDIR_P) $(DESTDIR)$(PKIDIR)
191 $(MKDIR_P) $(DESTDIR)$(LOGDIR)
193 # All the source files that have coverage counters.
217 vswitchd/ovs-brcompatd.c
218 lib/coverage-counters.c: $(COVERAGE_FILES) lib/coverage-scan.pl
219 (cd $(srcdir) && $(PERL) lib/coverage-scan.pl $(COVERAGE_FILES)) > $@.tmp
221 EXTRA_DIST += lib/coverage-scan.pl