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 \
35 lib/dynamic-string.c \
36 lib/dynamic-string.h \
49 lib/learning-switch.c \
50 lib/learning-switch.h \
101 lib/vconn-provider.h \
109 lib/vlog-modules.def \
113 nodist_lib_libopenvswitch_a_SOURCES = \
114 lib/coverage-counters.c \
116 CLEANFILES += $(nodist_lib_libopenvswitch_a_SOURCES)
119 lib_libopenvswitch_a_SOURCES += \
122 lib/netlink-protocol.h \
128 lib_libopenvswitch_a_SOURCES += \
130 nodist_lib_libopenvswitch_a_SOURCES += lib/dhparams.c
131 lib/dhparams.c: lib/dh1024.pem lib/dh2048.pem lib/dh4096.pem
132 (echo '#include "lib/dhparams.h"' && \
133 openssl dhparam -C -in $(srcdir)/lib/dh1024.pem -noout && \
134 openssl dhparam -C -in $(srcdir)/lib/dh2048.pem -noout && \
135 openssl dhparam -C -in $(srcdir)/lib/dh4096.pem -noout) \
136 | sed 's/\(get_dh[0-9]*\)()/\1(void)/' > lib/dhparams.c.tmp
137 mv lib/dhparams.c.tmp lib/dhparams.c
150 lib/leak-checker.man \
156 echo 'const char ovs_pkgdatadir[] = "$(pkgdatadir)";' && \
157 echo 'const char ovs_rundir[] = "@RUNDIR@";' && \
158 echo 'const char ovs_logdir[] = "@LOGDIR@";' && \
159 echo 'const char ovs_bindir[] = "$(bindir)";') > lib/dirs.c.tmp
160 mv lib/dirs.c.tmp lib/dirs.c
163 $(MKDIR_P) $(DESTDIR)$(RUNDIR)
164 $(MKDIR_P) $(DESTDIR)$(PKIDIR)
165 $(MKDIR_P) $(DESTDIR)$(LOGDIR)
167 # All the source files that have coverage counters.
188 vswitchd/ovs-brcompatd.c
189 lib/coverage-counters.c: $(COVERAGE_FILES) lib/coverage-scan.pl
190 (cd $(srcdir) && $(PERL) lib/coverage-scan.pl $(COVERAGE_FILES)) > $@.tmp
192 EXTRA_DIST += lib/coverage-scan.pl