ovsdb-server: Remove the 'enable-dummy' option.
[cascardo/ovs.git] / ovsdb / automake.mk
1 # libovsdb
2 lib_LTLIBRARIES += ovsdb/libovsdb.la
3 ovsdb_libovsdb_la_LDFLAGS = -release $(VERSION)
4 ovsdb_libovsdb_la_SOURCES = \
5         ovsdb/column.c \
6         ovsdb/column.h \
7         ovsdb/condition.c \
8         ovsdb/condition.h \
9         ovsdb/execution.c \
10         ovsdb/file.c \
11         ovsdb/file.h \
12         ovsdb/jsonrpc-server.c \
13         ovsdb/jsonrpc-server.h \
14         ovsdb/log.c \
15         ovsdb/log.h \
16         ovsdb/mutation.c \
17         ovsdb/mutation.h \
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 ovsdb_libovsdb_la_CFLAGS = $(AM_CFLAGS)
33 ovsdb_libovsdb_la_CPPFLAGS = $(AM_CPPFLAGS)
34
35 MAN_FRAGMENTS += \
36         ovsdb/remote-active.man \
37         ovsdb/remote-passive.man
38
39 # ovsdb-tool
40 bin_PROGRAMS += ovsdb/ovsdb-tool
41 ovsdb_ovsdb_tool_SOURCES = ovsdb/ovsdb-tool.c
42 ovsdb_ovsdb_tool_LDADD = ovsdb/libovsdb.la lib/libopenvswitch.la
43 # ovsdb-tool.1
44 man_MANS += ovsdb/ovsdb-tool.1
45 DISTCLEANFILES += ovsdb/ovsdb-tool.1
46 MAN_ROOTS += ovsdb/ovsdb-tool.1.in
47
48 # ovsdb-client
49 bin_PROGRAMS += ovsdb/ovsdb-client
50 ovsdb_ovsdb_client_SOURCES = ovsdb/ovsdb-client.c
51 ovsdb_ovsdb_client_LDADD = ovsdb/libovsdb.la lib/libopenvswitch.la
52 # ovsdb-client.1
53 man_MANS += ovsdb/ovsdb-client.1
54 DISTCLEANFILES += ovsdb/ovsdb-client.1
55 MAN_ROOTS += ovsdb/ovsdb-client.1.in
56
57 # ovsdb-server
58 sbin_PROGRAMS += ovsdb/ovsdb-server
59 ovsdb_ovsdb_server_SOURCES = ovsdb/ovsdb-server.c
60 ovsdb_ovsdb_server_LDADD = ovsdb/libovsdb.la lib/libopenvswitch.la
61 # ovsdb-server.1
62 man_MANS += ovsdb/ovsdb-server.1
63 DISTCLEANFILES += ovsdb/ovsdb-server.1
64 MAN_ROOTS += ovsdb/ovsdb-server.1.in
65
66 # ovsdb-idlc
67 noinst_SCRIPTS += ovsdb/ovsdb-idlc
68 EXTRA_DIST += ovsdb/ovsdb-idlc.in
69 MAN_ROOTS += ovsdb/ovsdb-idlc.1
70 DISTCLEANFILES += ovsdb/ovsdb-idlc
71 SUFFIXES += .ovsidl .ovsschema
72 OVSDB_IDLC = $(run_python) $(srcdir)/ovsdb/ovsdb-idlc.in
73 .ovsidl.c:
74         $(OVSDB_IDLC) c-idl-source $< > $@.tmp
75         mv $@.tmp $@
76 .ovsidl.h:
77         $(OVSDB_IDLC) c-idl-header $< > $@.tmp
78         mv $@.tmp $@
79
80 EXTRA_DIST += $(OVSIDL_BUILT)
81 BUILT_SOURCES += $(OVSIDL_BUILT)
82
83 # This must be done late: macros in targets are expanded when the
84 # target line is read, so if this file were to be included before some
85 # other file that added to OVSIDL_BUILT, then those files wouldn't get
86 # the dependency.
87 #
88 # However, current versions of Automake seem to output all variable
89 # assignments before any targets, so it doesn't seem to be a problem,
90 # at least for now.
91 $(OVSIDL_BUILT): ovsdb/ovsdb-idlc.in
92
93 # ovsdb-doc
94 EXTRA_DIST += ovsdb/ovsdb-doc
95 OVSDB_DOC = $(run_python) $(srcdir)/ovsdb/ovsdb-doc
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