command-line: Add function to print all options.
[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         $(AM_V_GEN)$(OVSDB_IDLC) c-idl-source $< > $@.tmp && mv $@.tmp $@
75 .ovsidl.h:
76         $(AM_V_GEN)$(OVSDB_IDLC) c-idl-header $< > $@.tmp && 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
93 OVSDB_DOC = $(run_python) $(srcdir)/ovsdb/ovsdb-doc
94
95 # ovsdb-dot
96 EXTRA_DIST += ovsdb/ovsdb-dot.in ovsdb/dot2pic
97 noinst_SCRIPTS += ovsdb/ovsdb-dot
98 DISTCLEANFILES += ovsdb/ovsdb-dot
99 OVSDB_DOT = $(run_python) $(srcdir)/ovsdb/ovsdb-dot.in