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 \
109 lib/vconn-provider.h \
117 lib/vlog-modules.def \
121 nodist_lib_libopenvswitch_a_SOURCES = \
122 lib/coverage-counters.c \
124 CLEANFILES += $(nodist_lib_libopenvswitch_a_SOURCES)
127 lib_libopenvswitch_a_SOURCES += \
128 lib/netlink-protocol.h \
134 lib_libopenvswitch_a_SOURCES += \
136 nodist_lib_libopenvswitch_a_SOURCES += lib/dhparams.c
137 lib/dhparams.c: lib/dh1024.pem lib/dh2048.pem lib/dh4096.pem
138 (echo '#include "lib/dhparams.h"' && \
139 openssl dhparam -C -in $(srcdir)/lib/dh1024.pem -noout && \
140 openssl dhparam -C -in $(srcdir)/lib/dh2048.pem -noout && \
141 openssl dhparam -C -in $(srcdir)/lib/dh4096.pem -noout) \
142 | sed 's/\(get_dh[0-9]*\)()/\1(void)/' > lib/dhparams.c.tmp
143 mv lib/dhparams.c.tmp lib/dhparams.c
156 lib/leak-checker.man \
162 echo 'const char ovs_pkgdatadir[] = "$(pkgdatadir)";' && \
163 echo 'const char ovs_rundir[] = "@RUNDIR@";' && \
164 echo 'const char ovs_logdir[] = "@LOGDIR@";' && \
165 echo 'const char ovs_bindir[] = "$(bindir)";') > lib/dirs.c.tmp
166 mv lib/dirs.c.tmp lib/dirs.c
169 $(MKDIR_P) $(DESTDIR)$(RUNDIR)
170 $(MKDIR_P) $(DESTDIR)$(PKIDIR)
171 $(MKDIR_P) $(DESTDIR)$(LOGDIR)
173 # All the source files that have coverage counters.
196 vswitchd/ovs-brcompatd.c
197 lib/coverage-counters.c: $(COVERAGE_FILES) lib/coverage-scan.pl
198 (cd $(srcdir) && $(PERL) lib/coverage-scan.pl $(COVERAGE_FILES)) > $@.tmp
200 EXTRA_DIST += lib/coverage-scan.pl