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 \
54 lib/learning-switch.c \
55 lib/learning-switch.h \
61 lib/netdev-provider.h \
111 lib/vconn-provider.h \
119 lib/vlog-modules.def \
123 nodist_lib_libopenvswitch_a_SOURCES = \
124 lib/coverage-counters.c \
126 CLEANFILES += $(nodist_lib_libopenvswitch_a_SOURCES)
129 lib_libopenvswitch_a_SOURCES += \
130 lib/netlink-protocol.h \
136 lib_libopenvswitch_a_SOURCES += \
138 nodist_lib_libopenvswitch_a_SOURCES += lib/dhparams.c
139 lib/dhparams.c: lib/dh1024.pem lib/dh2048.pem lib/dh4096.pem
140 (echo '#include "lib/dhparams.h"' && \
141 openssl dhparam -C -in $(srcdir)/lib/dh1024.pem -noout && \
142 openssl dhparam -C -in $(srcdir)/lib/dh2048.pem -noout && \
143 openssl dhparam -C -in $(srcdir)/lib/dh4096.pem -noout) \
144 | sed 's/\(get_dh[0-9]*\)()/\1(void)/' > lib/dhparams.c.tmp
145 mv lib/dhparams.c.tmp lib/dhparams.c
158 lib/leak-checker.man \
159 lib/vlog-unixctl.man \
165 echo 'const char ovs_pkgdatadir[] = "$(pkgdatadir)";' && \
166 echo 'const char ovs_rundir[] = "@RUNDIR@";' && \
167 echo 'const char ovs_logdir[] = "@LOGDIR@";' && \
168 echo 'const char ovs_bindir[] = "$(bindir)";') > lib/dirs.c.tmp
169 mv lib/dirs.c.tmp lib/dirs.c
172 $(MKDIR_P) $(DESTDIR)$(RUNDIR)
173 $(MKDIR_P) $(DESTDIR)$(PKIDIR)
174 $(MKDIR_P) $(DESTDIR)$(LOGDIR)
176 # All the source files that have coverage counters.
199 vswitchd/ovs-brcompatd.c
200 lib/coverage-counters.c: $(COVERAGE_FILES) lib/coverage-scan.pl
201 (cd $(srcdir) && $(PERL) lib/coverage-scan.pl $(COVERAGE_FILES)) > $@.tmp
203 EXTRA_DIST += lib/coverage-scan.pl