python: Implement write support in Python IDL for OVSDB.
[sliver-openvswitch.git] / ovsdb / automake.mk
1 # libovsdb
2 noinst_LIBRARIES += ovsdb/libovsdb.a
3 ovsdb_libovsdb_a_SOURCES = \
4         ovsdb/column.c \
5         ovsdb/column.h \
6         ovsdb/condition.c \
7         ovsdb/condition.h \
8         ovsdb/execution.c \
9         ovsdb/file.c \
10         ovsdb/file.h \
11         ovsdb/jsonrpc-server.c \
12         ovsdb/jsonrpc-server.h \
13         ovsdb/log.c \
14         ovsdb/log.h \
15         ovsdb/mutation.c \
16         ovsdb/mutation.h \
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/server.c \
25         ovsdb/server.h \
26         ovsdb/table.c \
27         ovsdb/table.h \
28         ovsdb/trigger.c \
29         ovsdb/trigger.h \
30         ovsdb/transaction.c \
31         ovsdb/transaction.h
32 MAN_FRAGMENTS += \
33         ovsdb/remote-active.man \
34         ovsdb/remote-passive.man
35
36 # ovsdb-tool
37 bin_PROGRAMS += ovsdb/ovsdb-tool
38 ovsdb_ovsdb_tool_SOURCES = ovsdb/ovsdb-tool.c
39 ovsdb_ovsdb_tool_LDADD = ovsdb/libovsdb.a lib/libopenvswitch.a
40 # ovsdb-tool.1
41 man_MANS += ovsdb/ovsdb-tool.1
42 DISTCLEANFILES += ovsdb/ovsdb-tool.1
43 EXTRA_DIST += ovsdb/ovsdb-tool.1.in
44
45 # ovsdb-client
46 bin_PROGRAMS += ovsdb/ovsdb-client
47 ovsdb_ovsdb_client_SOURCES = ovsdb/ovsdb-client.c
48 ovsdb_ovsdb_client_LDADD = ovsdb/libovsdb.a lib/libopenvswitch.a $(SSL_LIBS)
49 # ovsdb-client.1
50 man_MANS += ovsdb/ovsdb-client.1
51 DISTCLEANFILES += ovsdb/ovsdb-client.1
52 EXTRA_DIST += ovsdb/ovsdb-client.1.in
53
54 # ovsdb-server
55 sbin_PROGRAMS += ovsdb/ovsdb-server
56 ovsdb_ovsdb_server_SOURCES = ovsdb/ovsdb-server.c
57 ovsdb_ovsdb_server_LDADD = ovsdb/libovsdb.a lib/libopenvswitch.a $(SSL_LIBS)
58 # ovsdb-server.1
59 man_MANS += ovsdb/ovsdb-server.1
60 DISTCLEANFILES += ovsdb/ovsdb-server.1
61 EXTRA_DIST += ovsdb/ovsdb-server.1.in
62
63 # ovsdb-idlc
64 EXTRA_DIST += ovsdb/SPECS
65 noinst_SCRIPTS += ovsdb/ovsdb-idlc
66 EXTRA_DIST += \
67         ovsdb/ovsdb-idlc.in \
68         ovsdb/ovsdb-idlc.1
69 DISTCLEANFILES += ovsdb/ovsdb-idlc
70 SUFFIXES += .ovsidl .ovsschema .py
71 OVSDB_IDLC = $(run_python) $(srcdir)/ovsdb/ovsdb-idlc.in
72 .ovsidl.c:
73         $(OVSDB_IDLC) c-idl-source $< > $@.tmp
74         mv $@.tmp $@
75 .ovsidl.h:
76         $(OVSDB_IDLC) c-idl-header $< > $@.tmp
77         mv $@.tmp $@
78 .ovsschema.py:
79         $(OVSDB_IDLC) python-module $< > $@.tmp
80         mv $@.tmp $@
81
82 EXTRA_DIST += $(OVSIDL_BUILT)
83 BUILT_SOURCES += $(OVSIDL_BUILT)
84
85 # This must be done late: macros in targets are expanded when the
86 # target line is read, so if this file were to be included before some
87 # other file that added to OVSIDL_BUILT, then those files wouldn't get
88 # the dependency.
89 #
90 # However, current versions of Automake seem to output all variable
91 # assignments before any targets, so it doesn't seem to be a problem,
92 # at least for now.
93 $(OVSIDL_BUILT): ovsdb/ovsdb-idlc.in
94
95 # ovsdb-doc
96 EXTRA_DIST += ovsdb/ovsdb-doc.in
97 noinst_SCRIPTS += ovsdb/ovsdb-doc
98 DISTCLEANFILES += ovsdb/ovsdb-doc
99 OVSDB_DOC = $(run_python) $(srcdir)/ovsdb/ovsdb-doc.in
100
101 # ovsdb-dot
102 EXTRA_DIST += ovsdb/ovsdb-dot.in ovsdb/dot2pic
103 noinst_SCRIPTS += ovsdb/ovsdb-dot
104 DISTCLEANFILES += ovsdb/ovsdb-dot
105 OVSDB_DOT = $(run_python) $(srcdir)/ovsdb/ovsdb-dot.in
106
107 include ovsdb/ovsdbmonitor/automake.mk