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
|
|
|
|
if BUILD_BRCOMPAT
|
|
|
|
man_MANS += vswitchd/ovs-brcompatd.8
|
|
|
|
endif
|
2009-07-08 13:19:16 -07:00
|
|
|
DISTCLEANFILES += \
|
|
|
|
vswitchd/ovs-vswitchd.8 \
|
|
|
|
vswitchd/ovs-brcompatd.8
|
|
|
|
|
|
|
|
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-12-02 11:26:15 -08:00
|
|
|
vswitchd/vswitch-idl.c \
|
2009-11-23 16:07:36 -08:00
|
|
|
vswitchd/vswitch-idl.h \
|
2009-07-08 13:19:16 -07:00
|
|
|
vswitchd/xenserver.c \
|
|
|
|
vswitchd/xenserver.h
|
|
|
|
vswitchd_ovs_vswitchd_LDADD = \
|
2009-07-08 10:30:42 -07:00
|
|
|
ofproto/libofproto.a \
|
2010-01-04 13:08:37 -08:00
|
|
|
lib/libsflow.a \
|
2009-07-08 13:19:16 -07:00
|
|
|
lib/libopenvswitch.a \
|
2010-02-23 15:48:28 -08:00
|
|
|
$(SSL_LIBS)
|
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
|
|
|
|
2012-03-13 16:21:55 -07:00
|
|
|
if BUILD_BRCOMPAT
|
2010-05-26 10:35:20 -07:00
|
|
|
if HAVE_NETLINK
|
|
|
|
sbin_PROGRAMS += vswitchd/ovs-brcompatd
|
2009-07-08 13:19:16 -07:00
|
|
|
vswitchd_ovs_brcompatd_SOURCES = \
|
2009-12-10 00:08:39 -08:00
|
|
|
vswitchd/ovs-brcompatd.c \
|
|
|
|
vswitchd/vswitch-idl.c \
|
|
|
|
vswitchd/vswitch-idl.h
|
2010-02-23 15:48:28 -08:00
|
|
|
vswitchd_ovs_brcompatd_LDADD = lib/libopenvswitch.a $(SSL_LIBS)
|
2010-05-26 10:35:20 -07:00
|
|
|
endif
|
2011-10-26 16:06:37 -07:00
|
|
|
MAN_ROOTS += vswitchd/ovs-brcompatd.8.in
|
2012-03-13 16:21:55 -07:00
|
|
|
endif
|
2009-11-23 16:07:36 -08:00
|
|
|
|
2010-01-07 15:52:58 -08:00
|
|
|
# vswitch schema and IDL
|
|
|
|
OVSIDL_BUILT += \
|
2009-12-11 14:12:50 -08:00
|
|
|
vswitchd/vswitch-idl.c \
|
|
|
|
vswitchd/vswitch-idl.h \
|
2010-01-07 15:52:58 -08:00
|
|
|
vswitchd/vswitch-idl.ovsidl
|
|
|
|
VSWITCH_IDL_FILES = vswitchd/vswitch.ovsschema vswitchd/vswitch-idl.ann
|
2010-03-03 14:47:46 -08:00
|
|
|
EXTRA_DIST += $(VSWITCH_IDL_FILES)
|
2011-06-17 12:51:18 -07:00
|
|
|
pkgdata_DATA += vswitchd/vswitch.ovsschema
|
2010-01-07 15:52:58 -08:00
|
|
|
vswitchd/vswitch-idl.ovsidl: $(VSWITCH_IDL_FILES)
|
|
|
|
$(OVSDB_IDLC) -C $(srcdir) annotate $(VSWITCH_IDL_FILES) > $@.tmp
|
|
|
|
mv $@.tmp $@
|
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
|
|
|
#
|
|
|
|
# There are two complications here. First, if "python" or "dot" is not
|
|
|
|
# available, then we have to just use the existing diagram. Second, different
|
|
|
|
# "dot" versions produce slightly different output for the same input, but we
|
|
|
|
# don't want to gratuitously change vswitch.pic if someone tweaks the schema in
|
|
|
|
# some minor way that doesn't affect the table structure. To avoid that we
|
|
|
|
# store a checksum of vswitch.gv in vswitch.pic and only regenerate vswitch.pic
|
|
|
|
# if vswitch.gv actually changes.
|
|
|
|
$(srcdir)/vswitchd/vswitch.gv: ovsdb/ovsdb-dot.in vswitchd/vswitch.ovsschema
|
|
|
|
if HAVE_PYTHON
|
|
|
|
$(OVSDB_DOT) $(srcdir)/vswitchd/vswitch.ovsschema > $@
|
|
|
|
else
|
|
|
|
touch $@
|
|
|
|
endif
|
|
|
|
$(srcdir)/vswitchd/vswitch.pic: $(srcdir)/vswitchd/vswitch.gv ovsdb/dot2pic
|
|
|
|
if HAVE_DOT
|
|
|
|
sum=`cksum < $(srcdir)/vswitchd/vswitch.gv`; \
|
|
|
|
if grep "$$sum" $@ >/dev/null 2>&1; then \
|
|
|
|
echo "vswitch.gv unchanged, not regenerating vswitch.pic"; \
|
|
|
|
touch $@; \
|
|
|
|
else \
|
|
|
|
echo "regenerating vswitch.pic"; \
|
|
|
|
(echo ".\\\" Generated from vswitch.gv with cksum \"$$sum\""; \
|
|
|
|
dot -T plain < $(srcdir)/vswitchd/vswitch.gv \
|
|
|
|
| $(srcdir)/ovsdb/dot2pic) > $@; \
|
|
|
|
fi
|
2010-06-23 09:41:09 -07:00
|
|
|
else
|
|
|
|
touch $@
|
|
|
|
endif
|
2010-12-06 09:56:38 -08:00
|
|
|
EXTRA_DIST += vswitchd/vswitch.gv vswitchd/vswitch.pic
|
2010-06-23 09:41:09 -07:00
|
|
|
|
2010-03-03 14:47:46 -08:00
|
|
|
# vswitch schema documentation
|
|
|
|
EXTRA_DIST += vswitchd/vswitch.xml
|
|
|
|
dist_man_MANS += vswitchd/ovs-vswitchd.conf.db.5
|
2011-11-11 15:10:55 -08:00
|
|
|
$(srcdir)/vswitchd/ovs-vswitchd.conf.db.5: \
|
2010-06-23 09:41:09 -07:00
|
|
|
ovsdb/ovsdb-doc.in vswitchd/vswitch.xml vswitchd/vswitch.ovsschema \
|
|
|
|
$(srcdir)/vswitchd/vswitch.pic
|
2010-03-03 14:47:46 -08:00
|
|
|
$(OVSDB_DOC) \
|
|
|
|
--title="ovs-vswitchd.conf.db" \
|
2010-06-23 09:41:09 -07:00
|
|
|
--er-diagram=$(srcdir)/vswitchd/vswitch.pic \
|
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
|