1 # Copyright (C) 2009, 2010 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
= \
29 lib
/coverage-counters.h \
44 lib
/dynamic-string.c \
45 lib
/dynamic-string.h \
62 lib
/learning-switch.c \
63 lib
/learning-switch.h \
70 lib
/netdev-provider.h \
90 lib
/ovsdb-idl-provider.h \
128 lib
/stream-provider.h \
152 lib
/vconn-provider.h \
156 lib
/vlog-modules.def \
159 nodist_lib_libopenvswitch_a_SOURCES
= \
160 lib
/coverage-counters.c \
162 CLEANFILES
+= $(nodist_lib_libopenvswitch_a_SOURCES
)
164 noinst_LIBRARIES
+= lib
/libsflow.a
165 lib_libsflow_a_SOURCES
= \
169 lib
/sflow_sampler.c \
172 lib_libsflow_a_CFLAGS
= $(AM_CFLAGS
)
174 lib_libsflow_a_CFLAGS
+= -Wno-unused
176 if HAVE_WNO_UNUSED_PARAMETER
177 lib_libsflow_a_CFLAGS
+= -Wno-unused-parameter
181 lib_libopenvswitch_a_SOURCES
+= \
186 lib
/netlink-protocol.h \
194 lib_libopenvswitch_a_SOURCES
+= lib
/stream-ssl.c
195 nodist_lib_libopenvswitch_a_SOURCES
+= lib
/dhparams.c
196 lib
/dhparams.c
: lib
/dh1024.pem lib
/dh2048.pem lib
/dh4096.pem
197 (echo
'#include "lib/dhparams.h"' && \
198 openssl dhparam
-C
-in
$(srcdir)/lib
/dh1024.pem
-noout
&& \
199 openssl dhparam
-C
-in
$(srcdir)/lib
/dh2048.pem
-noout
&& \
200 openssl dhparam
-C
-in
$(srcdir)/lib
/dh4096.pem
-noout
) \
201 | sed
's/\(get_dh[0-9]*\)()/\1(void)/' > lib
/dhparams.c.tmp
202 mv lib
/dhparams.c.tmp lib
/dhparams.c
216 lib
/leak-checker.man \
217 lib
/ssl-bootstrap.man \
218 lib
/ssl-bootstrap-syn.man \
219 lib
/ssl-peer-ca-cert.man \
223 lib
/unixctl-syn.man \
224 lib
/vconn-active.man \
225 lib
/vconn-passive.man \
226 lib
/vlog-unixctl.man \
232 echo
'const char ovs_pkgdatadir[] = "$(pkgdatadir)";' && \
233 echo
'const char ovs_rundir[] = "@RUNDIR@";' && \
234 echo
'const char ovs_logdir[] = "@LOGDIR@";' && \
235 echo
'const char ovs_bindir[] = "$(bindir)";') > lib
/dirs.c.tmp
236 mv lib
/dirs.c.tmp lib
/dirs.c
238 install-data-local
: lib-install-data-local
239 lib-install-data-local
:
240 $(MKDIR_P
) $(DESTDIR
)$(RUNDIR
)
241 $(MKDIR_P
) $(DESTDIR
)$(PKIDIR
)
242 $(MKDIR_P
) $(DESTDIR
)$(LOGDIR
)
244 # All the source files that have coverage counters.
268 vswitchd
/ovs-brcompatd.c
269 lib
/coverage-counters.c
: $(COVERAGE_FILES
) lib
/coverage-scan.pl
270 (cd
$(srcdir) && $(PERL
) lib
/coverage-scan.pl
$(COVERAGE_FILES
)) > $@.tmp
272 EXTRA_DIST
+= lib
/coverage-scan.pl
274 ALL_LOCAL
+= check-vlog-modules
276 cd
$(srcdir) && build-aux
/check-vlog-modules
277 .PHONY
: check-vlog-modules
278 EXTRA_DIST
+= build-aux
/check-vlog-modules