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 = \
24 lib/coverage-counters.h \
40 lib/dynamic-string.c \
41 lib/dynamic-string.h \
56 lib/learning-switch.c \
57 lib/learning-switch.h \
65 lib/netdev-provider.h \
117 lib/vconn-provider.h \
125 lib/vlog-modules.def \
129 nodist_lib_libopenvswitch_a_SOURCES = \
130 lib/coverage-counters.c \
132 CLEANFILES += $(nodist_lib_libopenvswitch_a_SOURCES)
135 lib_libopenvswitch_a_SOURCES += \
136 lib/netlink-protocol.h \
142 lib_libopenvswitch_a_SOURCES += \
144 nodist_lib_libopenvswitch_a_SOURCES += lib/dhparams.c
145 lib/dhparams.c: lib/dh1024.pem lib/dh2048.pem lib/dh4096.pem
146 (echo '#include "lib/dhparams.h"' && \
147 openssl dhparam -C -in $(srcdir)/lib/dh1024.pem -noout && \
148 openssl dhparam -C -in $(srcdir)/lib/dh2048.pem -noout && \
149 openssl dhparam -C -in $(srcdir)/lib/dh4096.pem -noout) \
150 | sed 's/\(get_dh[0-9]*\)()/\1(void)/' > lib/dhparams.c.tmp
151 mv lib/dhparams.c.tmp lib/dhparams.c
164 lib/leak-checker.man \
165 lib/vlog-unixctl.man \
171 echo 'const char ovs_pkgdatadir[] = "$(pkgdatadir)";' && \
172 echo 'const char ovs_rundir[] = "@RUNDIR@";' && \
173 echo 'const char ovs_logdir[] = "@LOGDIR@";' && \
174 echo 'const char ovs_bindir[] = "$(bindir)";') > lib/dirs.c.tmp
175 mv lib/dirs.c.tmp lib/dirs.c
178 $(MKDIR_P) $(DESTDIR)$(RUNDIR)
179 $(MKDIR_P) $(DESTDIR)$(PKIDIR)
180 $(MKDIR_P) $(DESTDIR)$(LOGDIR)
182 # All the source files that have coverage counters.
205 vswitchd/ovs-brcompatd.c
206 lib/coverage-counters.c: $(COVERAGE_FILES) lib/coverage-scan.pl
207 (cd $(srcdir) && $(PERL) lib/coverage-scan.pl $(COVERAGE_FILES)) > $@.tmp
209 EXTRA_DIST += lib/coverage-scan.pl