]> git.proxmox.com Git - mirror_ovs.git/blob - ovsdb/automake.mk
ovsdb_monitor: Fix style of prototypes.
[mirror_ovs.git] / ovsdb / automake.mk
1 # libovsdb
2 lib_LTLIBRARIES += ovsdb/libovsdb.la
3 ovsdb_libovsdb_la_LDFLAGS = \
4 $(OVS_LTINFO) \
5 -Wl,--version-script=$(top_builddir)/ovsdb/libovsdb.sym \
6 $(AM_LDFLAGS)
7 ovsdb_libovsdb_la_SOURCES = \
8 ovsdb/column.c \
9 ovsdb/column.h \
10 ovsdb/condition.c \
11 ovsdb/condition.h \
12 ovsdb/execution.c \
13 ovsdb/file.c \
14 ovsdb/file.h \
15 ovsdb/jsonrpc-server.c \
16 ovsdb/jsonrpc-server.h \
17 ovsdb/log.c \
18 ovsdb/log.h \
19 ovsdb/mutation.c \
20 ovsdb/mutation.h \
21 ovsdb/ovsdb.c \
22 ovsdb/ovsdb.h \
23 ovsdb/monitor.c \
24 ovsdb/monitor.h \
25 ovsdb/query.c \
26 ovsdb/query.h \
27 ovsdb/raft.c \
28 ovsdb/raft.h \
29 ovsdb/raft-private.c \
30 ovsdb/raft-private.h \
31 ovsdb/raft-rpc.c \
32 ovsdb/raft-rpc.h \
33 ovsdb/rbac.c \
34 ovsdb/rbac.h \
35 ovsdb/replication.c \
36 ovsdb/replication.h \
37 ovsdb/row.c \
38 ovsdb/row.h \
39 ovsdb/server.c \
40 ovsdb/server.h \
41 ovsdb/storage.c \
42 ovsdb/storage.h \
43 ovsdb/table.c \
44 ovsdb/table.h \
45 ovsdb/trigger.c \
46 ovsdb/trigger.h \
47 ovsdb/transaction.c \
48 ovsdb/transaction.h \
49 ovsdb/ovsdb-util.c \
50 ovsdb/ovsdb-util.h
51 ovsdb_libovsdb_la_CFLAGS = $(AM_CFLAGS)
52 ovsdb_libovsdb_la_CPPFLAGS = $(AM_CPPFLAGS)
53
54 pkgconfig_DATA += \
55 ovsdb/libovsdb.pc
56
57 MAN_FRAGMENTS += ovsdb/ovsdb-schemas.man
58
59 # ovsdb-tool
60 bin_PROGRAMS += ovsdb/ovsdb-tool
61 ovsdb_ovsdb_tool_SOURCES = ovsdb/ovsdb-tool.c
62 ovsdb_ovsdb_tool_LDADD = ovsdb/libovsdb.la lib/libopenvswitch.la
63 # ovsdb-tool.1
64 man_MANS += ovsdb/ovsdb-tool.1
65 CLEANFILES += ovsdb/ovsdb-tool.1
66 MAN_ROOTS += ovsdb/ovsdb-tool.1.in
67
68 # ovsdb-client
69 bin_PROGRAMS += ovsdb/ovsdb-client
70 ovsdb_ovsdb_client_SOURCES = ovsdb/ovsdb-client.c
71 ovsdb_ovsdb_client_LDADD = ovsdb/libovsdb.la lib/libopenvswitch.la
72 # ovsdb-client.1
73 man_MANS += ovsdb/ovsdb-client.1
74 CLEANFILES += ovsdb/ovsdb-client.1
75 MAN_ROOTS += ovsdb/ovsdb-client.1.in
76
77 # ovsdb-server
78 sbin_PROGRAMS += ovsdb/ovsdb-server
79 ovsdb_ovsdb_server_SOURCES = ovsdb/ovsdb-server.c
80 ovsdb_ovsdb_server_LDADD = ovsdb/libovsdb.la lib/libopenvswitch.la
81 # ovsdb-server.1
82 man_MANS += ovsdb/ovsdb-server.1
83 CLEANFILES += ovsdb/ovsdb-server.1
84 MAN_ROOTS += ovsdb/ovsdb-server.1.in
85
86 # ovsdb-idlc
87 noinst_SCRIPTS += ovsdb/ovsdb-idlc
88 EXTRA_DIST += ovsdb/ovsdb-idlc.in
89 MAN_ROOTS += ovsdb/ovsdb-idlc.1
90 CLEANFILES += ovsdb/ovsdb-idlc
91 SUFFIXES += .ovsidl .ovsschema
92 OVSDB_IDLC = $(run_python) $(srcdir)/ovsdb/ovsdb-idlc.in
93 .ovsidl.c:
94 $(AM_V_GEN)$(OVSDB_IDLC) c-idl-source $< > $@.tmp && mv $@.tmp $@
95 .ovsidl.h:
96 $(AM_V_GEN)$(OVSDB_IDLC) c-idl-header $< > $@.tmp && mv $@.tmp $@
97
98 BUILT_SOURCES += $(OVSIDL_BUILT)
99 CLEANFILES += $(OVSIDL_BUILT)
100
101 # This must be done late: macros in targets are expanded when the
102 # target line is read, so if this file were to be included before some
103 # other file that added to OVSIDL_BUILT, then those files wouldn't get
104 # the dependency.
105 #
106 # However, current versions of Automake seem to output all variable
107 # assignments before any targets, so it doesn't seem to be a problem,
108 # at least for now.
109 $(OVSIDL_BUILT): ovsdb/ovsdb-idlc.in
110
111 # ovsdb-doc
112 EXTRA_DIST += ovsdb/ovsdb-doc
113 OVSDB_DOC = $(run_python) $(srcdir)/ovsdb/ovsdb-doc
114
115 # ovsdb-dot
116 EXTRA_DIST += ovsdb/ovsdb-dot.in ovsdb/dot2pic
117 noinst_SCRIPTS += ovsdb/ovsdb-dot
118 CLEANFILES += ovsdb/ovsdb-dot
119 OVSDB_DOT = $(run_python) $(srcdir)/ovsdb/ovsdb-dot.in
120
121 EXTRA_DIST += ovsdb/_server.ovsschema
122 CLEANFILES += ovsdb/_server.ovsschema.inc
123 ovsdb/ovsdb-server.$(OBJEXT): ovsdb/_server.ovsschema.inc
124 ovsdb/_server.ovsschema.inc: ovsdb/_server.ovsschema $(srcdir)/build-aux/text2c
125 $(AM_V_GEN)$(run_python) $(srcdir)/build-aux/text2c < $< > $@.tmp
126 $(AM_V_at)mv $@.tmp $@
127
128 # Version checking for _server.ovsschema.
129 ALL_LOCAL += ovsdb/_server.ovsschema.stamp
130 ovsdb/_server.ovsschema.stamp: ovsdb/_server.ovsschema
131 $(srcdir)/build-aux/cksum-schema-check $? $@
132 CLEANFILES += ovsdb/_server.ovsschema.stamp
133
134 # _Server schema documentation
135 EXTRA_DIST += ovsdb/_server.xml
136 CLEANFILES += ovsdb/ovsdb-server.5
137 man_MANS += ovsdb/ovsdb-server.5
138 ovsdb/ovsdb-server.5: \
139 ovsdb/ovsdb-doc ovsdb/_server.xml ovsdb/_server.ovsschema
140 $(AM_V_GEN)$(OVSDB_DOC) \
141 --version=$(VERSION) \
142 $(srcdir)/ovsdb/_server.ovsschema \
143 $(srcdir)/ovsdb/_server.xml > $@.tmp && \
144 mv $@.tmp $@
145
146 EXTRA_DIST += ovsdb/TODO.rst