summaryrefslogtreecommitdiff
path: root/ovsdb/automake.mk
blob: 1596a4b5add9cfe5722994574df229b8d735071f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# libovsdb
noinst_LIBRARIES += ovsdb/libovsdb.a
ovsdb_libovsdb_a_SOURCES = \
	ovsdb/column.c \
	ovsdb/column.h \
	ovsdb/condition.c \
	ovsdb/condition.h \
	ovsdb/execution.c \
	ovsdb/file.c \
	ovsdb/file.h \
	ovsdb/jsonrpc-server.c \
	ovsdb/jsonrpc-server.h \
	ovsdb/log.c \
	ovsdb/log.h \
	ovsdb/mutation.c \
	ovsdb/mutation.h \
	ovsdb/ovsdb-server.c \
	ovsdb/ovsdb.c \
	ovsdb/ovsdb.h \
	ovsdb/query.c \
	ovsdb/query.h \
	ovsdb/row.c \
	ovsdb/row.h \
	ovsdb/table.c \
	ovsdb/table.h \
	ovsdb/trigger.c \
	ovsdb/trigger.h \
	ovsdb/transaction.c \
	ovsdb/transaction.h
EXTRA_DIST += \
	ovsdb/remote-active.man \
	ovsdb/remote-passive.man

# ovsdb-tool
bin_PROGRAMS += ovsdb/ovsdb-tool
ovsdb_ovsdb_tool_SOURCES = ovsdb/ovsdb-tool.c
ovsdb_ovsdb_tool_LDADD = ovsdb/libovsdb.a lib/libopenvswitch.a
# ovsdb-tool.1
man_MANS += ovsdb/ovsdb-tool.1
DISTCLEANFILES += ovsdb/ovsdb-tool.1
EXTRA_DIST += ovsdb/ovsdb-tool.1.in

# ovsdb-client
bin_PROGRAMS += ovsdb/ovsdb-client
ovsdb_ovsdb_client_SOURCES = ovsdb/ovsdb-client.c
ovsdb_ovsdb_client_LDADD = ovsdb/libovsdb.a lib/libopenvswitch.a $(SSL_LIBS)
# ovsdb-client.1
man_MANS += ovsdb/ovsdb-client.1
DISTCLEANFILES += ovsdb/ovsdb-client.1
EXTRA_DIST += ovsdb/ovsdb-client.1.in

# ovsdb-server
sbin_PROGRAMS += ovsdb/ovsdb-server
ovsdb_ovsdb_server_SOURCES = ovsdb/ovsdb-server.c
ovsdb_ovsdb_server_LDADD = ovsdb/libovsdb.a lib/libopenvswitch.a $(SSL_LIBS)
# ovsdb-server.1
man_MANS += ovsdb/ovsdb-server.1
DISTCLEANFILES += ovsdb/ovsdb-server.1
EXTRA_DIST += ovsdb/ovsdb-server.1.in

# ovsdb-idlc
EXTRA_DIST += \
	ovsdb/simplejson/__init__.py \
	ovsdb/simplejson/_speedups.c				\
	ovsdb/simplejson/decoder.py				\
	ovsdb/simplejson/encoder.py				\
	ovsdb/simplejson/scanner.py				\
	ovsdb/simplejson/tests/__init__.py			\
	ovsdb/simplejson/tests/test_check_circular.py		\
	ovsdb/simplejson/tests/test_decode.py			\
	ovsdb/simplejson/tests/test_default.py			\
	ovsdb/simplejson/tests/test_dump.py			\
	ovsdb/simplejson/tests/test_encode_basestring_ascii.py	\
	ovsdb/simplejson/tests/test_fail.py			\
	ovsdb/simplejson/tests/test_float.py			\
	ovsdb/simplejson/tests/test_indent.py			\
	ovsdb/simplejson/tests/test_pass1.py			\
	ovsdb/simplejson/tests/test_pass2.py			\
	ovsdb/simplejson/tests/test_pass3.py			\
	ovsdb/simplejson/tests/test_recursion.py		\
	ovsdb/simplejson/tests/test_scanstring.py		\
	ovsdb/simplejson/tests/test_separators.py		\
	ovsdb/simplejson/tests/test_unicode.py			\
	ovsdb/simplejson/tool.py
noinst_SCRIPTS += ovsdb/ovsdb-idlc
EXTRA_DIST += \
	ovsdb/ovsdb-idlc.in \
	ovsdb/ovsdb-idlc.1
DISTCLEANFILES += ovsdb/ovsdb-idlc
SUFFIXES += .ovsidl .txt
.ovsidl.c:
	$(PYTHON) $(srcdir)/ovsdb/ovsdb-idlc.in c-idl-source $< > $@.tmp
	mv $@.tmp $@
.ovsidl.h:
	$(PYTHON) $(srcdir)/ovsdb/ovsdb-idlc.in c-idl-header $< > $@.tmp
	mv $@.tmp $@
.ovsidl.ovsschema:
	$(PYTHON) $(srcdir)/ovsdb/ovsdb-idlc.in ovsdb-schema $< > $@.tmp
	mv $@.tmp $@
.ovsidl.txt:
	$(PYTHON) $(srcdir)/ovsdb/ovsdb-idlc.in doc $< | fmt -s > $@.tmp
	mv $@.tmp $@