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 \
39 lib/dynamic-string.c \
40 lib/dynamic-string.h \
53 lib/learning-switch.c \
54 lib/learning-switch.h \
105 lib/vconn-provider.h \
113 lib/vlog-modules.def \
117 nodist_lib_libopenvswitch_a_SOURCES = \
118 lib/coverage-counters.c \
120 CLEANFILES += $(nodist_lib_libopenvswitch_a_SOURCES)
123 lib_libopenvswitch_a_SOURCES += \
124 lib/netlink-protocol.h \
130 lib_libopenvswitch_a_SOURCES += \
132 nodist_lib_libopenvswitch_a_SOURCES += lib/dhparams.c
133 lib/dhparams.c: lib/dh1024.pem lib/dh2048.pem lib/dh4096.pem
134 (echo '#include "lib/dhparams.h"' && \
135 openssl dhparam -C -in $(srcdir)/lib/dh1024.pem -noout && \
136 openssl dhparam -C -in $(srcdir)/lib/dh2048.pem -noout && \
137 openssl dhparam -C -in $(srcdir)/lib/dh4096.pem -noout) \
138 | sed 's/\(get_dh[0-9]*\)()/\1(void)/' > lib/dhparams.c.tmp
139 mv lib/dhparams.c.tmp lib/dhparams.c
152 lib/leak-checker.man \
158 echo 'const char ovs_pkgdatadir[] = "$(pkgdatadir)";' && \
159 echo 'const char ovs_rundir[] = "@RUNDIR@";' && \
160 echo 'const char ovs_logdir[] = "@LOGDIR@";' && \
161 echo 'const char ovs_bindir[] = "$(bindir)";') > lib/dirs.c.tmp
162 mv lib/dirs.c.tmp lib/dirs.c
165 $(MKDIR_P) $(DESTDIR)$(RUNDIR)
166 $(MKDIR_P) $(DESTDIR)$(PKIDIR)
167 $(MKDIR_P) $(DESTDIR)$(LOGDIR)
169 # All the source files that have coverage counters.
190 vswitchd/ovs-brcompatd.c
191 lib/coverage-counters.c: $(COVERAGE_FILES) lib/coverage-scan.pl
192 (cd $(srcdir) && $(PERL) lib/coverage-scan.pl $(COVERAGE_FILES)) > $@.tmp
194 EXTRA_DIST += lib/coverage-scan.pl