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 \
121 lib/vconn-provider.h \
129 lib/vlog-modules.def \
133 nodist_lib_libopenvswitch_a_SOURCES = \
134 lib/coverage-counters.c \
136 CLEANFILES += $(nodist_lib_libopenvswitch_a_SOURCES)
139 lib_libopenvswitch_a_SOURCES += \
140 lib/netlink-protocol.h \
146 lib_libopenvswitch_a_SOURCES += \
148 nodist_lib_libopenvswitch_a_SOURCES += lib/dhparams.c
149 lib/dhparams.c: lib/dh1024.pem lib/dh2048.pem lib/dh4096.pem
150 (echo '#include "lib/dhparams.h"' && \
151 openssl dhparam -C -in $(srcdir)/lib/dh1024.pem -noout && \
152 openssl dhparam -C -in $(srcdir)/lib/dh2048.pem -noout && \
153 openssl dhparam -C -in $(srcdir)/lib/dh4096.pem -noout) \
154 | sed 's/\(get_dh[0-9]*\)()/\1(void)/' > lib/dhparams.c.tmp
155 mv lib/dhparams.c.tmp lib/dhparams.c
168 lib/leak-checker.man \
169 lib/vlog-unixctl.man \
175 echo 'const char ovs_pkgdatadir[] = "$(pkgdatadir)";' && \
176 echo 'const char ovs_rundir[] = "@RUNDIR@";' && \
177 echo 'const char ovs_logdir[] = "@LOGDIR@";' && \
178 echo 'const char ovs_bindir[] = "$(bindir)";') > lib/dirs.c.tmp
179 mv lib/dirs.c.tmp lib/dirs.c
182 $(MKDIR_P) $(DESTDIR)$(RUNDIR)
183 $(MKDIR_P) $(DESTDIR)$(PKIDIR)
184 $(MKDIR_P) $(DESTDIR)$(LOGDIR)
186 # All the source files that have coverage counters.
209 vswitchd/ovs-brcompatd.c
210 lib/coverage-counters.c: $(COVERAGE_FILES) lib/coverage-scan.pl
211 (cd $(srcdir) && $(PERL) lib/coverage-scan.pl $(COVERAGE_FILES)) > $@.tmp
213 EXTRA_DIST += lib/coverage-scan.pl