2 lib_LTLIBRARIES += ovsdb/libovsdb.la
3 ovsdb_libovsdb_la_LDFLAGS = \
4 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
5 -Wl,--version-script=$(top_builddir)/ovsdb/libovsdb.sym \
7 ovsdb_libovsdb_la_SOURCES = \
15 ovsdb/jsonrpc-server.c \
16 ovsdb/jsonrpc-server.h \
37 ovsdb_libovsdb_la_CFLAGS = $(AM_CFLAGS)
38 ovsdb_libovsdb_la_CPPFLAGS = $(AM_CPPFLAGS)
41 $(srcdir)/ovsdb/libovsdb.pc
44 ovsdb/remote-active.man \
45 ovsdb/remote-passive.man
48 bin_PROGRAMS += ovsdb/ovsdb-tool
49 ovsdb_ovsdb_tool_SOURCES = ovsdb/ovsdb-tool.c
50 ovsdb_ovsdb_tool_LDADD = ovsdb/libovsdb.la lib/libopenvswitch.la
52 man_MANS += ovsdb/ovsdb-tool.1
53 DISTCLEANFILES += ovsdb/ovsdb-tool.1
54 MAN_ROOTS += ovsdb/ovsdb-tool.1.in
57 bin_PROGRAMS += ovsdb/ovsdb-client
58 ovsdb_ovsdb_client_SOURCES = ovsdb/ovsdb-client.c
59 ovsdb_ovsdb_client_LDADD = ovsdb/libovsdb.la lib/libopenvswitch.la
61 man_MANS += ovsdb/ovsdb-client.1
62 DISTCLEANFILES += ovsdb/ovsdb-client.1
63 MAN_ROOTS += ovsdb/ovsdb-client.1.in
66 sbin_PROGRAMS += ovsdb/ovsdb-server
67 ovsdb_ovsdb_server_SOURCES = ovsdb/ovsdb-server.c
68 ovsdb_ovsdb_server_LDADD = ovsdb/libovsdb.la lib/libopenvswitch.la
70 man_MANS += ovsdb/ovsdb-server.1
71 DISTCLEANFILES += ovsdb/ovsdb-server.1
72 MAN_ROOTS += ovsdb/ovsdb-server.1.in
75 noinst_SCRIPTS += ovsdb/ovsdb-idlc
76 EXTRA_DIST += ovsdb/ovsdb-idlc.in
77 MAN_ROOTS += ovsdb/ovsdb-idlc.1
78 DISTCLEANFILES += ovsdb/ovsdb-idlc
79 SUFFIXES += .ovsidl .ovsschema
80 OVSDB_IDLC = $(run_python) $(srcdir)/ovsdb/ovsdb-idlc.in
82 $(AM_V_GEN)$(OVSDB_IDLC) c-idl-source $< > $@.tmp && mv $@.tmp $@
84 $(AM_V_GEN)$(OVSDB_IDLC) c-idl-header $< > $@.tmp && mv $@.tmp $@
86 BUILT_SOURCES += $(OVSIDL_BUILT)
87 CLEANFILES += $(OVSIDL_BUILT)
89 # This must be done late: macros in targets are expanded when the
90 # target line is read, so if this file were to be included before some
91 # other file that added to OVSIDL_BUILT, then those files wouldn't get
94 # However, current versions of Automake seem to output all variable
95 # assignments before any targets, so it doesn't seem to be a problem,
97 $(OVSIDL_BUILT): ovsdb/ovsdb-idlc.in
100 EXTRA_DIST += ovsdb/ovsdb-doc
101 OVSDB_DOC = $(run_python) $(srcdir)/ovsdb/ovsdb-doc
104 EXTRA_DIST += ovsdb/ovsdb-dot.in ovsdb/dot2pic
105 noinst_SCRIPTS += ovsdb/ovsdb-dot
106 DISTCLEANFILES += ovsdb/ovsdb-dot
107 OVSDB_DOT = $(run_python) $(srcdir)/ovsdb/ovsdb-dot.in