]> git.proxmox.com Git - mirror_ovs.git/blame - ovsdb/automake.mk
Add documentation for the vswitch database schema.
[mirror_ovs.git] / ovsdb / automake.mk
CommitLineData
f85f8ebb
BP
1# libovsdb
2noinst_LIBRARIES += ovsdb/libovsdb.a
3ovsdb_libovsdb_a_SOURCES = \
4 ovsdb/column.c \
5 ovsdb/column.h \
6 ovsdb/condition.c \
7 ovsdb/condition.h \
8 ovsdb/execution.c \
bd06962a
BP
9 ovsdb/file.c \
10 ovsdb/file.h \
f85f8ebb
BP
11 ovsdb/jsonrpc-server.c \
12 ovsdb/jsonrpc-server.h \
41709ccc
BP
13 ovsdb/log.c \
14 ovsdb/log.h \
e9f8f936
BP
15 ovsdb/mutation.c \
16 ovsdb/mutation.h \
f85f8ebb
BP
17 ovsdb/ovsdb-server.c \
18 ovsdb/ovsdb.c \
19 ovsdb/ovsdb.h \
20 ovsdb/query.c \
21 ovsdb/query.h \
22 ovsdb/row.c \
23 ovsdb/row.h \
24 ovsdb/table.c \
25 ovsdb/table.h \
26 ovsdb/trigger.c \
27 ovsdb/trigger.h \
28 ovsdb/transaction.c \
29 ovsdb/transaction.h
9467fe62
BP
30EXTRA_DIST += \
31 ovsdb/remote-active.man \
32 ovsdb/remote-passive.man
f85f8ebb
BP
33
34# ovsdb-tool
35bin_PROGRAMS += ovsdb/ovsdb-tool
36ovsdb_ovsdb_tool_SOURCES = ovsdb/ovsdb-tool.c
a26cc67c 37ovsdb_ovsdb_tool_LDADD = ovsdb/libovsdb.a lib/libopenvswitch.a
f7f62235
BP
38# ovsdb-tool.1
39man_MANS += ovsdb/ovsdb-tool.1
40DISTCLEANFILES += ovsdb/ovsdb-tool.1
41EXTRA_DIST += ovsdb/ovsdb-tool.1.in
f85f8ebb 42
d0632593
BP
43# ovsdb-client
44bin_PROGRAMS += ovsdb/ovsdb-client
45ovsdb_ovsdb_client_SOURCES = ovsdb/ovsdb-client.c
a26cc67c 46ovsdb_ovsdb_client_LDADD = ovsdb/libovsdb.a lib/libopenvswitch.a $(SSL_LIBS)
d0632593
BP
47# ovsdb-client.1
48man_MANS += ovsdb/ovsdb-client.1
49DISTCLEANFILES += ovsdb/ovsdb-client.1
50EXTRA_DIST += ovsdb/ovsdb-client.1.in
51
f85f8ebb
BP
52# ovsdb-server
53sbin_PROGRAMS += ovsdb/ovsdb-server
54ovsdb_ovsdb_server_SOURCES = ovsdb/ovsdb-server.c
a26cc67c 55ovsdb_ovsdb_server_LDADD = ovsdb/libovsdb.a lib/libopenvswitch.a $(SSL_LIBS)
f7f62235
BP
56# ovsdb-server.1
57man_MANS += ovsdb/ovsdb-server.1
58DISTCLEANFILES += ovsdb/ovsdb-server.1
59EXTRA_DIST += ovsdb/ovsdb-server.1.in
d879a707
BP
60
61# ovsdb-idlc
62EXTRA_DIST += \
63 ovsdb/simplejson/__init__.py \
64 ovsdb/simplejson/_speedups.c \
65 ovsdb/simplejson/decoder.py \
66 ovsdb/simplejson/encoder.py \
67 ovsdb/simplejson/scanner.py \
68 ovsdb/simplejson/tests/__init__.py \
69 ovsdb/simplejson/tests/test_check_circular.py \
70 ovsdb/simplejson/tests/test_decode.py \
71 ovsdb/simplejson/tests/test_default.py \
72 ovsdb/simplejson/tests/test_dump.py \
73 ovsdb/simplejson/tests/test_encode_basestring_ascii.py \
74 ovsdb/simplejson/tests/test_fail.py \
75 ovsdb/simplejson/tests/test_float.py \
76 ovsdb/simplejson/tests/test_indent.py \
77 ovsdb/simplejson/tests/test_pass1.py \
78 ovsdb/simplejson/tests/test_pass2.py \
79 ovsdb/simplejson/tests/test_pass3.py \
80 ovsdb/simplejson/tests/test_recursion.py \
81 ovsdb/simplejson/tests/test_scanstring.py \
82 ovsdb/simplejson/tests/test_separators.py \
83 ovsdb/simplejson/tests/test_unicode.py \
84 ovsdb/simplejson/tool.py
89365653 85noinst_SCRIPTS += ovsdb/ovsdb-idlc
d879a707
BP
86EXTRA_DIST += \
87 ovsdb/ovsdb-idlc.in \
88 ovsdb/ovsdb-idlc.1
89DISTCLEANFILES += ovsdb/ovsdb-idlc
89365653 90SUFFIXES += .ovsidl
00732bf5 91OVSDB_IDLC = $(PYTHON) $(srcdir)/ovsdb/ovsdb-idlc.in
c3bb4bd7 92.ovsidl.c:
00732bf5 93 $(OVSDB_IDLC) c-idl-source $< > $@.tmp
c3bb4bd7
BP
94 mv $@.tmp $@
95.ovsidl.h:
00732bf5 96 $(OVSDB_IDLC) c-idl-header $< > $@.tmp
c3bb4bd7 97 mv $@.tmp $@
00732bf5
BP
98
99EXTRA_DIST += $(OVSIDL_BUILT)
100BUILT_SOURCES += $(OVSIDL_BUILT)
101
102# This must be done late: macros in targets are expanded when the
103# target line is read, so if this file were to be included before some
104# other file that added to OVSIDL_BUILT, then those files wouldn't get
105# the dependency.
106#
107# However, current versions of Automake seem to output all variable
108# assignments before any targets, so it doesn't seem to be a problem,
109# at least for now.
110$(OVSIDL_BUILT): ovsdb/ovsdb-idlc.in
89365653
BP
111
112# ovsdb-doc
113EXTRA_DIST += ovsdb/ovsdb-doc.in
114noinst_SCRIPTS += ovsdb/ovsdb-doc
115DISTCLEANFILES += ovsdb/ovsdb-doc
116OVSDB_DOC = $(PYTHON) $(srcdir)/ovsdb/ovsdb-doc.in