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