util: Fix non-ANSI function declaration.
[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 EXTRA_DIST += \
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
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
79 EXTRA_DIST += $(OVSIDL_BUILT)
80 BUILT_SOURCES += $(OVSIDL_BUILT)
81
82 # This must be done late: macros in targets are expanded when the
83 # target line is read, so if this file were to be included before some
84 # other file that added to OVSIDL_BUILT, then those files wouldn't get
85 # the dependency.
86 #
87 # However, current versions of Automake seem to output all variable
88 # assignments before any targets, so it doesn't seem to be a problem,
89 # at least for now.
90 $(OVSIDL_BUILT): ovsdb/ovsdb-idlc.in
91
92 # ovsdb-doc
93 EXTRA_DIST += ovsdb/ovsdb-doc.in
94 noinst_SCRIPTS += ovsdb/ovsdb-doc
95 DISTCLEANFILES += ovsdb/ovsdb-doc
96 OVSDB_DOC = $(run_python) $(srcdir)/ovsdb/ovsdb-doc.in
97
98 # ovsdb-dot
99 EXTRA_DIST += ovsdb/ovsdb-dot.in ovsdb/dot2pic
100 noinst_SCRIPTS += ovsdb/ovsdb-dot
101 DISTCLEANFILES += ovsdb/ovsdb-dot
102 OVSDB_DOT = $(run_python) $(srcdir)/ovsdb/ovsdb-dot.in
103
104 include ovsdb/ovsdbmonitor/automake.mk