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
= \
26 lib
/coverage-counters.h \
41 lib
/dynamic-string.c \
42 lib
/dynamic-string.h \
59 lib
/learning-switch.c \
60 lib
/learning-switch.h \
67 lib
/netdev-provider.h \
84 lib
/ovsdb-idl-provider.h \
122 lib
/stream-provider.h \
146 lib
/vconn-provider.h \
150 lib
/vlog-modules.def \
154 nodist_lib_libopenvswitch_a_SOURCES
= \
155 lib
/coverage-counters.c \
157 CLEANFILES
+= $(nodist_lib_libopenvswitch_a_SOURCES
)
159 noinst_LIBRARIES
+= lib
/libsflow.a
160 lib_libsflow_a_SOURCES
= \
164 lib
/sflow_sampler.c \
167 lib_libsflow_a_CFLAGS
= $(AM_CFLAGS
)
169 lib_libsflow_a_CFLAGS
+= -Wno-unused
171 if HAVE_WNO_UNUSED_PARAMETER
172 lib_libsflow_a_CFLAGS
+= -Wno-unused-parameter
176 lib_libopenvswitch_a_SOURCES
+= \
181 lib
/netlink-protocol.h \
189 lib_libopenvswitch_a_SOURCES
+= lib
/stream-ssl.c
190 nodist_lib_libopenvswitch_a_SOURCES
+= lib
/dhparams.c
191 lib
/dhparams.c
: lib
/dh1024.pem lib
/dh2048.pem lib
/dh4096.pem
192 (echo
'#include "lib/dhparams.h"' && \
193 openssl dhparam
-C
-in
$(srcdir)/lib
/dh1024.pem
-noout
&& \
194 openssl dhparam
-C
-in
$(srcdir)/lib
/dh2048.pem
-noout
&& \
195 openssl dhparam
-C
-in
$(srcdir)/lib
/dh4096.pem
-noout
) \
196 | sed
's/\(get_dh[0-9]*\)()/\1(void)/' > lib
/dhparams.c.tmp
197 mv lib
/dhparams.c.tmp lib
/dhparams.c
212 lib
/leak-checker.man \
213 lib
/ssl-bootstrap.man \
214 lib
/ssl-bootstrap-syn.man \
215 lib
/ssl-peer-ca-cert.man \
219 lib
/unixctl-syn.man \
220 lib
/vconn-active.man \
221 lib
/vconn-passive.man \
222 lib
/vlog-unixctl.man \
229 echo
'const char ovs_pkgdatadir[] = "$(pkgdatadir)";' && \
230 echo
'const char ovs_rundir[] = "@RUNDIR@";' && \
231 echo
'const char ovs_logdir[] = "@LOGDIR@";' && \
232 echo
'const char ovs_bindir[] = "$(bindir)";') > lib
/dirs.c.tmp
233 mv lib
/dirs.c.tmp lib
/dirs.c
235 install-data-local
: lib-install-data-local
236 lib-install-data-local
:
237 $(MKDIR_P
) $(DESTDIR
)$(RUNDIR
)
238 $(MKDIR_P
) $(DESTDIR
)$(PKIDIR
)
239 $(MKDIR_P
) $(DESTDIR
)$(LOGDIR
)
241 # All the source files that have coverage counters.
265 vswitchd
/ovs-brcompatd.c
266 lib
/coverage-counters.c
: $(COVERAGE_FILES
) lib
/coverage-scan.pl
267 (cd
$(srcdir) && $(PERL
) lib
/coverage-scan.pl
$(COVERAGE_FILES
)) > $@.tmp
269 EXTRA_DIST
+= lib
/coverage-scan.pl
271 ALL_LOCAL
+= check-vlog-modules
273 cd
$(srcdir) && build-aux
/check-vlog-modules
274 .PHONY
: check-vlog-modules
275 EXTRA_DIST
+= build-aux
/check-vlog-modules