2010-05-26 10:35:20 -07:00
|
|
|
sbin_PROGRAMS += vswitchd/ovs-vswitchd
|
2012-03-13 16:21:55 -07:00
|
|
|
man_MANS += vswitchd/ovs-vswitchd.8
|
2009-07-08 13:19:16 -07:00
|
|
|
DISTCLEANFILES += \
|
2012-12-27 13:48:51 -08:00
|
|
|
vswitchd/ovs-vswitchd.8
|
2009-07-08 13:19:16 -07:00
|
|
|
|
|
|
|
vswitchd_ovs_vswitchd_SOURCES = \
|
|
|
|
vswitchd/bridge.c \
|
|
|
|
vswitchd/bridge.h \
|
|
|
|
vswitchd/ovs-vswitchd.c \
|
2010-09-22 16:45:30 -07:00
|
|
|
vswitchd/system-stats.c \
|
2010-09-23 11:56:36 -07:00
|
|
|
vswitchd/system-stats.h \
|
2009-07-08 13:19:16 -07:00
|
|
|
vswitchd/xenserver.c \
|
|
|
|
vswitchd/xenserver.h
|
|
|
|
vswitchd_ovs_vswitchd_LDADD = \
|
2013-12-13 18:54:28 +01:00
|
|
|
ofproto/libofproto.la \
|
|
|
|
lib/libsflow.la \
|
2014-03-04 13:23:53 -08:00
|
|
|
lib/libopenvswitch.la
|
2011-10-26 16:06:37 -07:00
|
|
|
EXTRA_DIST += vswitchd/INTERNALS
|
|
|
|
MAN_ROOTS += vswitchd/ovs-vswitchd.8.in
|
2009-07-08 13:19:16 -07:00
|
|
|
|
2010-01-07 15:52:58 -08:00
|
|
|
# vswitch schema and IDL
|
2012-03-15 17:10:41 -07:00
|
|
|
EXTRA_DIST += vswitchd/vswitch.ovsschema
|
2011-06-17 12:51:18 -07:00
|
|
|
pkgdata_DATA += vswitchd/vswitch.ovsschema
|
2010-03-03 14:47:46 -08:00
|
|
|
|
2010-06-23 09:41:09 -07:00
|
|
|
# vswitch E-R diagram
|
2010-12-06 09:56:38 -08:00
|
|
|
#
|
2013-10-11 13:17:07 -07:00
|
|
|
# If "python" or "dot" is not available, then we do not add graphical diagram
|
|
|
|
# to the documentation.
|
2010-12-06 09:56:38 -08:00
|
|
|
if HAVE_PYTHON
|
2013-10-11 13:17:07 -07:00
|
|
|
if HAVE_DOT
|
|
|
|
vswitchd/vswitch.gv: ovsdb/ovsdb-dot.in vswitchd/vswitch.ovsschema
|
2012-12-20 11:02:32 -08:00
|
|
|
$(OVSDB_DOT) --no-arrows $(srcdir)/vswitchd/vswitch.ovsschema > $@
|
2014-05-05 09:31:28 +09:00
|
|
|
vswitchd/vswitch.pic: vswitchd/vswitch.gv $(srcdir)/ovsdb/dot2pic
|
2013-10-11 13:17:07 -07:00
|
|
|
(dot -T plain < vswitchd/vswitch.gv | $(srcdir)/ovsdb/dot2pic -f 3) > $@;
|
|
|
|
VSWITCH_PIC = vswitchd/vswitch.pic
|
2013-10-17 14:58:17 -07:00
|
|
|
VSWITCH_DOT_DIAGRAM_ARG = --er-diagram=$(VSWITCH_PIC)
|
2013-10-11 13:17:07 -07:00
|
|
|
DISTCLEANFILES += vswitchd/vswitch.gv vswitchd/vswitch.pic
|
2010-12-06 09:56:38 -08:00
|
|
|
endif
|
2010-06-23 09:41:09 -07:00
|
|
|
endif
|
|
|
|
|
2010-03-03 14:47:46 -08:00
|
|
|
# vswitch schema documentation
|
|
|
|
EXTRA_DIST += vswitchd/vswitch.xml
|
2013-10-11 13:17:07 -07:00
|
|
|
DISTCLEANFILES += vswitchd/ovs-vswitchd.conf.db.5
|
|
|
|
man_MANS += vswitchd/ovs-vswitchd.conf.db.5
|
|
|
|
vswitchd/ovs-vswitchd.conf.db.5: \
|
2013-07-30 10:53:02 -07:00
|
|
|
ovsdb/ovsdb-doc vswitchd/vswitch.xml vswitchd/vswitch.ovsschema \
|
2013-10-11 13:17:07 -07:00
|
|
|
$(VSWITCH_PIC)
|
2010-03-03 14:47:46 -08:00
|
|
|
$(OVSDB_DOC) \
|
|
|
|
--title="ovs-vswitchd.conf.db" \
|
2013-10-17 14:58:17 -07:00
|
|
|
$(VSWITCH_DOT_DIAGRAM_ARG) \
|
2013-07-31 09:24:46 -07:00
|
|
|
--version=$(VERSION) \
|
2010-03-03 14:47:46 -08:00
|
|
|
$(srcdir)/vswitchd/vswitch.ovsschema \
|
|
|
|
$(srcdir)/vswitchd/vswitch.xml > $@.tmp
|
|
|
|
mv $@.tmp $@
|
2010-12-27 14:26:47 -08:00
|
|
|
|
|
|
|
# Version checking for vswitch.ovsschema.
|
|
|
|
ALL_LOCAL += vswitchd/vswitch.ovsschema.stamp
|
|
|
|
vswitchd/vswitch.ovsschema.stamp: vswitchd/vswitch.ovsschema
|
|
|
|
@sum=`sed '/cksum/d' $? | cksum`; \
|
|
|
|
expected=`sed -n 's/.*"cksum": "\(.*\)".*/\1/p' $?`; \
|
|
|
|
if test "X$$sum" = "X$$expected"; then \
|
|
|
|
touch $@; \
|
|
|
|
else \
|
|
|
|
ln=`sed -n '/"cksum":/=' $?`; \
|
2011-01-25 12:33:56 -08:00
|
|
|
echo >&2 "$?:$$ln: checksum \"$$sum\" does not match (you should probably update the version number and fix the checksum)"; \
|
2011-01-24 12:05:23 -08:00
|
|
|
exit 1; \
|
2010-12-27 14:26:47 -08:00
|
|
|
fi
|
2011-01-10 12:46:26 -08:00
|
|
|
CLEANFILES += vswitchd/vswitch.ovsschema.stamp
|
2012-03-27 15:57:52 -07:00
|
|
|
|
|
|
|
# Clean up generated files from older OVS versions. (This is important so that
|
|
|
|
# #include "vswitch-idl.h" doesn't get the wrong copy.)
|
|
|
|
CLEANFILES += vswitchd/vswitch-idl.c vswitchd/vswitch-idl.h
|