5745697ae1d865f7cbe3a7d54f2cc8336210e39c
[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/table.c \
25         ovsdb/table.h \
26         ovsdb/trigger.c \
27         ovsdb/trigger.h \
28         ovsdb/transaction.c \
29         ovsdb/transaction.h
30 EXTRA_DIST += \
31         ovsdb/remote-active.man \
32         ovsdb/remote-passive.man
33
34 # ovsdb-tool
35 bin_PROGRAMS += ovsdb/ovsdb-tool
36 ovsdb_ovsdb_tool_SOURCES = ovsdb/ovsdb-tool.c
37 ovsdb_ovsdb_tool_LDADD = ovsdb/libovsdb.a lib/libopenvswitch.a
38 # ovsdb-tool.1
39 man_MANS += ovsdb/ovsdb-tool.1
40 DISTCLEANFILES += ovsdb/ovsdb-tool.1
41 EXTRA_DIST += ovsdb/ovsdb-tool.1.in
42
43 # ovsdb-client
44 bin_PROGRAMS += ovsdb/ovsdb-client
45 ovsdb_ovsdb_client_SOURCES = ovsdb/ovsdb-client.c
46 ovsdb_ovsdb_client_LDADD = ovsdb/libovsdb.a lib/libopenvswitch.a $(SSL_LIBS)
47 # ovsdb-client.1
48 man_MANS += ovsdb/ovsdb-client.1
49 DISTCLEANFILES += ovsdb/ovsdb-client.1
50 EXTRA_DIST += ovsdb/ovsdb-client.1.in
51
52 # ovsdb-server
53 sbin_PROGRAMS += ovsdb/ovsdb-server
54 ovsdb_ovsdb_server_SOURCES = ovsdb/ovsdb-server.c
55 ovsdb_ovsdb_server_LDADD = ovsdb/libovsdb.a lib/libopenvswitch.a $(SSL_LIBS)
56 # ovsdb-server.1
57 man_MANS += ovsdb/ovsdb-server.1
58 DISTCLEANFILES += ovsdb/ovsdb-server.1
59 EXTRA_DIST += ovsdb/ovsdb-server.1.in
60
61 # ovsdb-idlc
62 EXTRA_DIST += \
63         ovsdb/OVSDB.py \
64         ovsdb/SPECS \
65         ovsdb/simplejson/__init__.py \
66         ovsdb/simplejson/_speedups.c                            \
67         ovsdb/simplejson/decoder.py                             \
68         ovsdb/simplejson/encoder.py                             \
69         ovsdb/simplejson/scanner.py                             \
70         ovsdb/simplejson/tests/__init__.py                      \
71         ovsdb/simplejson/tests/test_check_circular.py           \
72         ovsdb/simplejson/tests/test_decode.py                   \
73         ovsdb/simplejson/tests/test_default.py                  \
74         ovsdb/simplejson/tests/test_dump.py                     \
75         ovsdb/simplejson/tests/test_encode_basestring_ascii.py  \
76         ovsdb/simplejson/tests/test_fail.py                     \
77         ovsdb/simplejson/tests/test_float.py                    \
78         ovsdb/simplejson/tests/test_indent.py                   \
79         ovsdb/simplejson/tests/test_pass1.py                    \
80         ovsdb/simplejson/tests/test_pass2.py                    \
81         ovsdb/simplejson/tests/test_pass3.py                    \
82         ovsdb/simplejson/tests/test_recursion.py                \
83         ovsdb/simplejson/tests/test_scanstring.py               \
84         ovsdb/simplejson/tests/test_separators.py               \
85         ovsdb/simplejson/tests/test_unicode.py                  \
86         ovsdb/simplejson/tool.py
87 noinst_SCRIPTS += ovsdb/ovsdb-idlc 
88 EXTRA_DIST += \
89         ovsdb/ovsdb-idlc.in \
90         ovsdb/ovsdb-idlc.1
91 DISTCLEANFILES += ovsdb/ovsdb-idlc
92 SUFFIXES += .ovsidl
93 OVSDB_IDLC = $(PYTHON) $(srcdir)/ovsdb/ovsdb-idlc.in
94 .ovsidl.c:
95         $(OVSDB_IDLC) c-idl-source $< > $@.tmp
96         mv $@.tmp $@
97 .ovsidl.h:
98         $(OVSDB_IDLC) c-idl-header $< > $@.tmp
99         mv $@.tmp $@
100
101 EXTRA_DIST += $(OVSIDL_BUILT)
102 BUILT_SOURCES += $(OVSIDL_BUILT)
103
104 # This must be done late: macros in targets are expanded when the
105 # target line is read, so if this file were to be included before some
106 # other file that added to OVSIDL_BUILT, then those files wouldn't get
107 # the dependency.
108 #
109 # However, current versions of Automake seem to output all variable
110 # assignments before any targets, so it doesn't seem to be a problem,
111 # at least for now.
112 $(OVSIDL_BUILT): ovsdb/ovsdb-idlc.in
113
114 # ovsdb-doc
115 EXTRA_DIST += ovsdb/ovsdb-doc.in
116 noinst_SCRIPTS += ovsdb/ovsdb-doc
117 DISTCLEANFILES += ovsdb/ovsdb-doc
118 OVSDB_DOC = $(PYTHON) $(srcdir)/ovsdb/ovsdb-doc.in
119
120 # ovsdb-dot
121 EXTRA_DIST += ovsdb/ovsdb-dot.in
122 noinst_SCRIPTS += ovsdb/ovsdb-dot
123 DISTCLEANFILES += ovsdb/ovsdb-dot
124 OVSDB_DOT = $(PYTHON) $(srcdir)/ovsdb/ovsdb-dot.in
125
126 include ovsdb/ovsdbmonitor/automake.mk