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
= \
45 lib
/dynamic-string.c \
46 lib
/dynamic-string.h \
63 lib
/learning-switch.c \
64 lib
/learning-switch.h \
74 lib
/netdev-provider.h \
98 lib
/ovsdb-idl-provider.h \
132 lib
/stream-provider.h \
158 lib
/vconn-provider.h \
164 nodist_lib_libopenvswitch_a_SOURCES
= \
166 CLEANFILES
+= $(nodist_lib_libopenvswitch_a_SOURCES
)
168 noinst_LIBRARIES
+= lib
/libsflow.a
169 lib_libsflow_a_SOURCES
= \
173 lib
/sflow_sampler.c \
176 lib_libsflow_a_CFLAGS
= $(AM_CFLAGS
)
178 lib_libsflow_a_CFLAGS
+= -Wno-unused
180 if HAVE_WNO_UNUSED_PARAMETER
181 lib_libsflow_a_CFLAGS
+= -Wno-unused-parameter
185 lib_libopenvswitch_a_SOURCES
+= \
190 lib
/netlink-protocol.h \
191 lib
/netlink-socket.c \
192 lib
/netlink-socket.h \
195 lib
/rtnetlink-link.c \
196 lib
/rtnetlink-link.h \
197 lib
/rtnetlink-route.c \
198 lib
/rtnetlink-route.h
202 lib_libopenvswitch_a_SOURCES
+= lib
/stream-ssl.c
203 nodist_lib_libopenvswitch_a_SOURCES
+= lib
/dhparams.c
204 lib
/dhparams.c
: lib
/dh1024.pem lib
/dh2048.pem lib
/dh4096.pem
205 (echo
'#include "lib/dhparams.h"' && \
206 openssl dhparam
-C
-in
$(srcdir)/lib
/dh1024.pem
-noout
&& \
207 openssl dhparam
-C
-in
$(srcdir)/lib
/dh2048.pem
-noout
&& \
208 openssl dhparam
-C
-in
$(srcdir)/lib
/dh4096.pem
-noout
) \
209 | sed
's/\(get_dh[0-9]*\)()/\1(void)/' > lib
/dhparams.c.tmp
210 mv lib
/dhparams.c.tmp lib
/dhparams.c
225 lib
/leak-checker.man \
226 lib
/ssl-bootstrap.man \
227 lib
/ssl-bootstrap-syn.man \
228 lib
/ssl-peer-ca-cert.man \
231 lib
/stress-unixctl.man \
233 lib
/unixctl-syn.man \
234 lib
/vconn-active.man \
235 lib
/vconn-passive.man \
236 lib
/vlog-unixctl.man \
240 lib
/dirs.c
: lib
/dirs.c.in Makefile
241 ($(ro_c
) && sed
< $(srcdir)/lib
/dirs.c.in \
242 -e
's,[@]srcdir[@],$(srcdir),g' \
243 -e
's,[@]LOGDIR[@],"$(LOGDIR)",g' \
244 -e
's,[@]RUNDIR[@],"$(RUNDIR)",g' \
245 -e
's,[@]bindir[@],"$(bindir)",g' \
246 -e
's,[@]pkgdatadir[@],"$(pkgdatadir)",g') \
248 mv lib
/dirs.c.tmp lib
/dirs.c
250 $(srcdir)/lib
/ofp-errors.c
: \
251 include/openflow
/openflow.h
include/openflow
/nicira-ext.h \
252 build-aux
/extract-ofp-errors
253 cd
$(srcdir)/include && \
254 $(PYTHON
) ..
/build-aux
/extract-ofp-errors \
255 openflow
/openflow.h openflow
/nicira-ext.h
> ..
/lib
/ofp-errors.c
256 EXTRA_DIST
+= build-aux
/extract-ofp-errors
258 install-data-local
: lib-install-data-local
259 lib-install-data-local
:
260 $(MKDIR_P
) $(DESTDIR
)$(RUNDIR
)
261 $(MKDIR_P
) $(DESTDIR
)$(PKIDIR
)
262 $(MKDIR_P
) $(DESTDIR
)$(LOGDIR
)
264 if
!USE_LINKER_SECTIONS
265 # All distributed sources, with names adjust properly for referencing
268 `for file in $(DIST_SOURCES); do \
269 if test -f $$file; then \
272 echo $(VPATH)/$$file; \
276 lib
/coverage.
$(OBJEXT
): lib
/coverage.def
277 lib
/coverage.def
: $(DIST_SOURCES
)
278 sed
-n
's|^COVERAGE_DEFINE(\([_a-zA-Z0-9]\{1,\}\)).*$$|COVERAGE_COUNTER(\1)|p' $(all_sources
) | LC_ALL
=C
sort -u
> $@
279 CLEANFILES
+= lib
/coverage.def
281 lib
/stress.
$(OBJEXT
): lib
/stress.def
282 lib
/stress.def
: $(DIST_SOURCES
)
283 sed
-n
'/^STRESS_OPTION(/,/);$$/{s/);$$/)/;p}' $(all_sources
) > $@
284 CLEANFILES
+= lib
/stress.def
286 lib
/vlog.
$(OBJEXT
): lib
/vlog-modules.def
287 lib
/vlog-modules.def
: $(DIST_SOURCES
)
288 sed
-n
's|^VLOG_DEFINE_\(THIS_\)\{0,1\}MODULE(\([_a-zA-Z0-9]\{1,\}\)).*$$|VLOG_MODULE(\2)|p' $(all_sources
) | LC_ALL
=C
sort -u
> $@
289 CLEANFILES
+= lib
/vlog-modules.def