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 \
111 lib/stream-provider.h \
132 lib/vconn-provider.h \
140 lib/vlog-modules.def \
144 nodist_lib_libopenvswitch_a_SOURCES = \
145 lib/coverage-counters.c \
147 CLEANFILES += $(nodist_lib_libopenvswitch_a_SOURCES)
150 lib_libopenvswitch_a_SOURCES += \
151 lib/netlink-protocol.h \
157 lib_libopenvswitch_a_SOURCES += \
159 nodist_lib_libopenvswitch_a_SOURCES += lib/dhparams.c
160 lib/dhparams.c: lib/dh1024.pem lib/dh2048.pem lib/dh4096.pem
161 (echo '#include "lib/dhparams.h"' && \
162 openssl dhparam -C -in $(srcdir)/lib/dh1024.pem -noout && \
163 openssl dhparam -C -in $(srcdir)/lib/dh2048.pem -noout && \
164 openssl dhparam -C -in $(srcdir)/lib/dh4096.pem -noout) \
165 | sed 's/\(get_dh[0-9]*\)()/\1(void)/' > lib/dhparams.c.tmp
166 mv lib/dhparams.c.tmp lib/dhparams.c
179 lib/leak-checker.man \
180 lib/vlog-unixctl.man \
186 echo 'const char ovs_pkgdatadir[] = "$(pkgdatadir)";' && \
187 echo 'const char ovs_rundir[] = "@RUNDIR@";' && \
188 echo 'const char ovs_logdir[] = "@LOGDIR@";' && \
189 echo 'const char ovs_bindir[] = "$(bindir)";') > lib/dirs.c.tmp
190 mv lib/dirs.c.tmp lib/dirs.c
193 $(MKDIR_P) $(DESTDIR)$(RUNDIR)
194 $(MKDIR_P) $(DESTDIR)$(PKIDIR)
195 $(MKDIR_P) $(DESTDIR)$(LOGDIR)
197 # All the source files that have coverage counters.
221 vswitchd/ovs-brcompatd.c
222 lib/coverage-counters.c: $(COVERAGE_FILES) lib/coverage-scan.pl
223 (cd $(srcdir) && $(PERL) lib/coverage-scan.pl $(COVERAGE_FILES)) > $@.tmp
225 EXTRA_DIST += lib/coverage-scan.pl