2009-11-04 15:11:44 -08:00
|
|
|
# libovsdb
|
2013-12-13 18:54:28 +01:00
|
|
|
lib_LTLIBRARIES += ovsdb/libovsdb.la
|
2014-11-07 19:02:09 -08:00
|
|
|
ovsdb_libovsdb_la_LDFLAGS = \
|
2017-01-16 14:06:27 -05:00
|
|
|
$(OVS_LTINFO) \
|
2014-11-12 15:05:59 +01:00
|
|
|
-Wl,--version-script=$(top_builddir)/ovsdb/libovsdb.sym \
|
|
|
|
$(AM_LDFLAGS)
|
2013-12-13 18:54:28 +01:00
|
|
|
ovsdb_libovsdb_la_SOURCES = \
|
2009-11-04 15:11:44 -08:00
|
|
|
ovsdb/column.c \
|
|
|
|
ovsdb/column.h \
|
|
|
|
ovsdb/condition.c \
|
|
|
|
ovsdb/condition.h \
|
|
|
|
ovsdb/execution.c \
|
2009-11-13 13:37:55 -08:00
|
|
|
ovsdb/file.c \
|
|
|
|
ovsdb/file.h \
|
2009-11-04 15:11:44 -08:00
|
|
|
ovsdb/jsonrpc-server.c \
|
|
|
|
ovsdb/jsonrpc-server.h \
|
2009-11-13 13:23:35 -08:00
|
|
|
ovsdb/log.c \
|
|
|
|
ovsdb/log.h \
|
2009-12-16 10:49:31 -08:00
|
|
|
ovsdb/mutation.c \
|
|
|
|
ovsdb/mutation.h \
|
2009-11-04 15:11:44 -08:00
|
|
|
ovsdb/ovsdb.c \
|
|
|
|
ovsdb/ovsdb.h \
|
2015-03-11 21:20:44 -07:00
|
|
|
ovsdb/monitor.c \
|
|
|
|
ovsdb/monitor.h \
|
2009-11-04 15:11:44 -08:00
|
|
|
ovsdb/query.c \
|
|
|
|
ovsdb/query.h \
|
2017-12-31 21:15:58 -08:00
|
|
|
ovsdb/raft.c \
|
|
|
|
ovsdb/raft.h \
|
|
|
|
ovsdb/raft-private.c \
|
|
|
|
ovsdb/raft-private.h \
|
|
|
|
ovsdb/raft-rpc.c \
|
|
|
|
ovsdb/raft-rpc.h \
|
2017-05-31 19:04:32 -04:00
|
|
|
ovsdb/rbac.c \
|
|
|
|
ovsdb/rbac.h \
|
2016-06-24 17:13:06 -07:00
|
|
|
ovsdb/replication.c \
|
|
|
|
ovsdb/replication.h \
|
2009-11-04 15:11:44 -08:00
|
|
|
ovsdb/row.c \
|
|
|
|
ovsdb/row.h \
|
2011-07-26 10:17:36 -07:00
|
|
|
ovsdb/server.c \
|
|
|
|
ovsdb/server.h \
|
2017-12-31 21:15:58 -08:00
|
|
|
ovsdb/storage.c \
|
|
|
|
ovsdb/storage.h \
|
2009-11-04 15:11:44 -08:00
|
|
|
ovsdb/table.c \
|
|
|
|
ovsdb/table.h \
|
|
|
|
ovsdb/trigger.c \
|
|
|
|
ovsdb/trigger.h \
|
|
|
|
ovsdb/transaction.c \
|
2017-05-01 10:13:11 -04:00
|
|
|
ovsdb/transaction.h \
|
|
|
|
ovsdb/ovsdb-util.c \
|
|
|
|
ovsdb/ovsdb-util.h
|
2013-12-13 18:54:28 +01:00
|
|
|
ovsdb_libovsdb_la_CFLAGS = $(AM_CFLAGS)
|
|
|
|
ovsdb_libovsdb_la_CPPFLAGS = $(AM_CPPFLAGS)
|
|
|
|
|
2014-11-13 12:28:43 +01:00
|
|
|
pkgconfig_DATA += \
|
2017-01-26 14:07:00 -05:00
|
|
|
ovsdb/libovsdb.pc
|
2014-11-13 12:28:43 +01:00
|
|
|
|
2017-12-14 11:17:23 -08:00
|
|
|
MAN_FRAGMENTS += ovsdb/ovsdb-schemas.man
|
2017-04-24 14:57:11 -04:00
|
|
|
|
2009-11-04 15:11:44 -08:00
|
|
|
# ovsdb-tool
|
|
|
|
bin_PROGRAMS += ovsdb/ovsdb-tool
|
|
|
|
ovsdb_ovsdb_tool_SOURCES = ovsdb/ovsdb-tool.c
|
2014-03-04 13:23:53 -08:00
|
|
|
ovsdb_ovsdb_tool_LDADD = ovsdb/libovsdb.la lib/libopenvswitch.la
|
2009-11-06 15:35:10 -08:00
|
|
|
# ovsdb-tool.1
|
|
|
|
man_MANS += ovsdb/ovsdb-tool.1
|
2017-02-13 17:20:56 -08:00
|
|
|
CLEANFILES += ovsdb/ovsdb-tool.1
|
2011-10-26 16:06:37 -07:00
|
|
|
MAN_ROOTS += ovsdb/ovsdb-tool.1.in
|
2009-11-04 15:11:44 -08:00
|
|
|
|
2009-11-06 15:35:34 -08:00
|
|
|
# ovsdb-client
|
|
|
|
bin_PROGRAMS += ovsdb/ovsdb-client
|
|
|
|
ovsdb_ovsdb_client_SOURCES = ovsdb/ovsdb-client.c
|
2014-03-04 13:23:53 -08:00
|
|
|
ovsdb_ovsdb_client_LDADD = ovsdb/libovsdb.la lib/libopenvswitch.la
|
2009-11-06 15:35:34 -08:00
|
|
|
# ovsdb-client.1
|
|
|
|
man_MANS += ovsdb/ovsdb-client.1
|
2017-02-13 17:20:56 -08:00
|
|
|
CLEANFILES += ovsdb/ovsdb-client.1
|
2011-10-26 16:06:37 -07:00
|
|
|
MAN_ROOTS += ovsdb/ovsdb-client.1.in
|
2009-11-06 15:35:34 -08:00
|
|
|
|
2009-11-04 15:11:44 -08:00
|
|
|
# ovsdb-server
|
|
|
|
sbin_PROGRAMS += ovsdb/ovsdb-server
|
|
|
|
ovsdb_ovsdb_server_SOURCES = ovsdb/ovsdb-server.c
|
2014-03-04 13:23:53 -08:00
|
|
|
ovsdb_ovsdb_server_LDADD = ovsdb/libovsdb.la lib/libopenvswitch.la
|
2009-11-06 15:35:10 -08:00
|
|
|
# ovsdb-server.1
|
|
|
|
man_MANS += ovsdb/ovsdb-server.1
|
2017-02-13 17:20:56 -08:00
|
|
|
CLEANFILES += ovsdb/ovsdb-server.1
|
2011-10-26 16:06:37 -07:00
|
|
|
MAN_ROOTS += ovsdb/ovsdb-server.1.in
|
2009-11-23 16:07:36 -08:00
|
|
|
|
|
|
|
# ovsdb-idlc
|
2010-11-24 01:57:45 -08:00
|
|
|
noinst_SCRIPTS += ovsdb/ovsdb-idlc
|
2011-10-26 16:06:37 -07:00
|
|
|
EXTRA_DIST += ovsdb/ovsdb-idlc.in
|
|
|
|
MAN_ROOTS += ovsdb/ovsdb-idlc.1
|
2017-02-13 17:20:56 -08:00
|
|
|
CLEANFILES += ovsdb/ovsdb-idlc
|
2011-10-18 09:29:54 -07:00
|
|
|
SUFFIXES += .ovsidl .ovsschema
|
2010-08-25 10:26:40 -07:00
|
|
|
OVSDB_IDLC = $(run_python) $(srcdir)/ovsdb/ovsdb-idlc.in
|
2009-12-02 11:26:15 -08:00
|
|
|
.ovsidl.c:
|
2014-09-29 14:34:11 -07:00
|
|
|
$(AM_V_GEN)$(OVSDB_IDLC) c-idl-source $< > $@.tmp && mv $@.tmp $@
|
2009-12-02 11:26:15 -08:00
|
|
|
.ovsidl.h:
|
2014-09-29 14:34:11 -07:00
|
|
|
$(AM_V_GEN)$(OVSDB_IDLC) c-idl-header $< > $@.tmp && mv $@.tmp $@
|
2010-01-07 15:52:58 -08:00
|
|
|
|
|
|
|
BUILT_SOURCES += $(OVSIDL_BUILT)
|
2015-07-21 11:15:06 -07:00
|
|
|
CLEANFILES += $(OVSIDL_BUILT)
|
2010-01-07 15:52:58 -08:00
|
|
|
|
|
|
|
# This must be done late: macros in targets are expanded when the
|
|
|
|
# target line is read, so if this file were to be included before some
|
|
|
|
# other file that added to OVSIDL_BUILT, then those files wouldn't get
|
|
|
|
# the dependency.
|
|
|
|
#
|
|
|
|
# However, current versions of Automake seem to output all variable
|
|
|
|
# assignments before any targets, so it doesn't seem to be a problem,
|
|
|
|
# at least for now.
|
2020-11-19 03:44:34 -05:00
|
|
|
$(OVSIDL_BUILT): ovsdb/ovsdb-idlc.in python/ovs/dirs.py
|
2010-03-03 14:47:46 -08:00
|
|
|
|
|
|
|
# ovsdb-doc
|
2013-07-31 09:24:46 -07:00
|
|
|
EXTRA_DIST += ovsdb/ovsdb-doc
|
|
|
|
OVSDB_DOC = $(run_python) $(srcdir)/ovsdb/ovsdb-doc
|
ovsdb-doc: Add build dependency on dirs.py.
ovsdb-doc includes python code that requires dirs.py to exist.
This change fixes broken 'make manpage-check' target:
# make manpage-check
Traceback (most recent call last):
File "./ovsdb/ovsdb-doc", line 25, in <module>
import ovs.db.schema
File "/root/ovs/python/ovs/db/schema.py", line 19, in <module>
import ovs.db.types
File "/root/ovs/python/ovs/db/types.py", line 18, in <module>
import ovs.db.data
File "/root/ovs/python/ovs/db/data.py", line 22, in <module>
import ovs.jsonrpc
File "/root/ovs/python/ovs/jsonrpc.py", line 21, in <module>
import ovs.poller
File "/root/ovs/python/ovs/poller.py", line 23, in <module>
import ovs.vlog
File "/root/ovs/python/ovs/vlog.py", line 25, in <module>
import ovs.dirs
ModuleNotFoundError: No module named 'ovs.dirs'
Fixes: 943c4a325045 ("python: set ovs.dirs variables with build system values")
Acked-by: Mark Gray <mark.d.gray@redhat.com>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
2021-01-29 13:44:36 +01:00
|
|
|
ovsdb/ovsdb-doc: python/ovs/dirs.py
|
2010-05-11 11:46:52 -07:00
|
|
|
|
2010-06-23 09:41:09 -07:00
|
|
|
# ovsdb-dot
|
2010-11-09 10:33:17 -08:00
|
|
|
EXTRA_DIST += ovsdb/ovsdb-dot.in ovsdb/dot2pic
|
2010-06-23 09:41:09 -07:00
|
|
|
noinst_SCRIPTS += ovsdb/ovsdb-dot
|
2017-02-13 17:20:56 -08:00
|
|
|
CLEANFILES += ovsdb/ovsdb-dot
|
2010-08-25 10:26:40 -07:00
|
|
|
OVSDB_DOT = $(run_python) $(srcdir)/ovsdb/ovsdb-dot.in
|
2017-12-15 11:14:55 -08:00
|
|
|
|
|
|
|
EXTRA_DIST += ovsdb/_server.ovsschema
|
|
|
|
CLEANFILES += ovsdb/_server.ovsschema.inc
|
2018-03-27 20:29:49 +03:00
|
|
|
ovsdb/ovsdb-server.$(OBJEXT): ovsdb/_server.ovsschema.inc
|
2017-12-15 11:14:55 -08:00
|
|
|
ovsdb/_server.ovsschema.inc: ovsdb/_server.ovsschema $(srcdir)/build-aux/text2c
|
|
|
|
$(AM_V_GEN)$(run_python) $(srcdir)/build-aux/text2c < $< > $@.tmp
|
|
|
|
$(AM_V_at)mv $@.tmp $@
|
|
|
|
|
|
|
|
# Version checking for _server.ovsschema.
|
|
|
|
ALL_LOCAL += ovsdb/_server.ovsschema.stamp
|
|
|
|
ovsdb/_server.ovsschema.stamp: ovsdb/_server.ovsschema
|
|
|
|
$(srcdir)/build-aux/cksum-schema-check $? $@
|
|
|
|
CLEANFILES += ovsdb/_server.ovsschema.stamp
|
|
|
|
|
|
|
|
# _Server schema documentation
|
|
|
|
EXTRA_DIST += ovsdb/_server.xml
|
|
|
|
CLEANFILES += ovsdb/ovsdb-server.5
|
|
|
|
man_MANS += ovsdb/ovsdb-server.5
|
|
|
|
ovsdb/ovsdb-server.5: \
|
|
|
|
ovsdb/ovsdb-doc ovsdb/_server.xml ovsdb/_server.ovsschema
|
|
|
|
$(AM_V_GEN)$(OVSDB_DOC) \
|
|
|
|
--version=$(VERSION) \
|
|
|
|
$(srcdir)/ovsdb/_server.ovsschema \
|
|
|
|
$(srcdir)/ovsdb/_server.xml > $@.tmp && \
|
|
|
|
mv $@.tmp $@
|
2017-12-31 21:15:58 -08:00
|
|
|
|
|
|
|
EXTRA_DIST += ovsdb/TODO.rst
|