1 noinst_LIBRARIES += lib/libopenvswitch.a
3 lib_libopenvswitch_a_SOURCES = \
17 lib/coverage-counters.c \
18 lib/coverage-counters.h \
30 lib/dynamic-string.c \
31 lib/dynamic-string.h \
44 lib/learning-switch.c \
45 lib/learning-switch.h \
96 lib/vconn-provider.h \
104 lib/vlog-modules.def \
110 lib_libopenvswitch_a_SOURCES += \
113 lib/netlink-protocol.h \
119 lib_libopenvswitch_a_SOURCES += \
121 nodist_lib_libopenvswitch_a_SOURCES = lib/dhparams.c
122 lib/dhparams.c: lib/dh1024.pem lib/dh2048.pem lib/dh4096.pem
123 (echo '#include "lib/dhparams.h"' && \
124 openssl dhparam -C -in $(srcdir)/lib/dh1024.pem -noout && \
125 openssl dhparam -C -in $(srcdir)/lib/dh2048.pem -noout && \
126 openssl dhparam -C -in $(srcdir)/lib/dh4096.pem -noout) \
127 | sed 's/\(get_dh[0-9]*\)()/\1(void)/' > lib/dhparams.c.tmp
128 mv lib/dhparams.c.tmp lib/dhparams.c
141 lib/leak-checker.man \
145 CLEANFILES += lib/dirs.c
148 echo 'const char ovs_pkgdatadir[] = "$(pkgdatadir)";' && \
149 echo 'const char ovs_rundir[] = "@RUNDIR@";' && \
150 echo 'const char ovs_logdir[] = "@LOGDIR@";' && \
151 echo 'const char ovs_bindir[] = "$(bindir)";') > lib/dirs.c.tmp
152 mv lib/dirs.c.tmp lib/dirs.c
155 $(MKDIR_P) $(DESTDIR)$(RUNDIR)
156 $(MKDIR_P) $(DESTDIR)$(PKIDIR)
157 $(MKDIR_P) $(DESTDIR)$(LOGDIR)
159 # All the source files that have coverage counters.
180 vswitchd/ovs-brcompatd.c
181 lib/coverage-counters.c: $(COVERAGE_FILES) lib/coverage-scan.pl
182 (cd $(srcdir) && $(PERL) lib/coverage-scan.pl $(COVERAGE_FILES)) > $@.tmp
184 EXTRA_DIST += lib/coverage-scan.pl