debian: Synchronize debian/changelog with downstream Debian changelog.
[openvswitch] / 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 $(SSL_LIBS)
40 # ovsdb-tool.1
41 man_MANS += ovsdb/ovsdb-tool.1
42 DISTCLEANFILES += ovsdb/ovsdb-tool.1
43 MAN_ROOTS += 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 MAN_ROOTS += 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 MAN_ROOTS += ovsdb/ovsdb-server.1.in
62
63 # ovsdb-idlc
64 EXTRA_DIST += ovsdb/SPECS
65 noinst_SCRIPTS += ovsdb/ovsdb-idlc
66 EXTRA_DIST += ovsdb/ovsdb-idlc.in
67 MAN_ROOTS += ovsdb/ovsdb-idlc.1
68 DISTCLEANFILES += ovsdb/ovsdb-idlc
69 SUFFIXES += .ovsidl .ovsschema
70 OVSDB_IDLC = $(run_python) $(srcdir)/ovsdb/ovsdb-idlc.in
71 .ovsidl.c:
72         $(OVSDB_IDLC) c-idl-source $< > $@.tmp
73         mv $@.tmp $@
74 .ovsidl.h:
75         $(OVSDB_IDLC) c-idl-header $< > $@.tmp
76         mv $@.tmp $@
77
78 EXTRA_DIST += $(OVSIDL_BUILT)
79 BUILT_SOURCES += $(OVSIDL_BUILT)
80
81 # This must be done late: macros in targets are expanded when the
82 # target line is read, so if this file were to be included before some
83 # other file that added to OVSIDL_BUILT, then those files wouldn't get
84 # the dependency.
85 #
86 # However, current versions of Automake seem to output all variable
87 # assignments before any targets, so it doesn't seem to be a problem,
88 # at least for now.
89 $(OVSIDL_BUILT): ovsdb/ovsdb-idlc.in
90
91 # ovsdb-doc
92 EXTRA_DIST += ovsdb/ovsdb-doc.in
93 noinst_SCRIPTS += ovsdb/ovsdb-doc
94 DISTCLEANFILES += ovsdb/ovsdb-doc
95 OVSDB_DOC = $(run_python) $(srcdir)/ovsdb/ovsdb-doc.in
96
97 # ovsdb-dot
98 EXTRA_DIST += ovsdb/ovsdb-dot.in ovsdb/dot2pic
99 noinst_SCRIPTS += ovsdb/ovsdb-dot
100 DISTCLEANFILES += ovsdb/ovsdb-dot
101 OVSDB_DOT = $(run_python) $(srcdir)/ovsdb/ovsdb-dot.in
102
103 include ovsdb/ovsdbmonitor/automake.mk